# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2014-07-02 12:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: One-char language identifier #: train206.languagecode:1 #, no-wrap msgid "E" msgstr "P" #. type: Title-text #: train206/scene.txt:1 #, no-wrap msgid "train206:Wasp Hunter 1" msgstr "train206:Polowanie na osy 1" #. type: Resume-text #: train206/scene.txt:2 #, no-wrap msgid "train206:Shoot down the flying wasps." msgstr "train206:Zestrzel latające osy." #. type: ScriptName-text #: train206/scene.txt:3 #, no-wrap msgid "train206:Wasp1" msgstr "train206:Osa1" #. type: \b; header #: train206-help/twasp1.txt:1 #, no-wrap msgid "Objective" msgstr "Zadanie" #. type: Plain text #: train206-help/twasp1.txt:3 #, no-wrap msgid "Shoot down the flying wasps." msgstr "Zestrzel wszystkie latające osy." #. type: \t; header #: train206-help/twasp1.txt:4 #, no-wrap msgid "Program" msgstr "Program" #. type: Plain text #: train206-help/twasp1.txt:6 #, no-wrap msgid "Here is again the program of the previous exercise that shoots all ants and adapts to the terrain:" msgstr "Oto program z poprzedniego ćwiczenia, który zabija wszystkie mrówki, przystosowując się do rzeźby terenu:" #. type: \s; block (usually verbatim code) #: train206-help/twasp1.txt:36 #, no-wrap msgid "" "extern void object::JetFighter2()\n" "{\n" "\tobject item;\n" "\t\n" "\taim(-20);\n" "\t\n" "\twhile (true)\n" "\t{\n" "\t\twhile (radar(AlienAnt, 0, 360, 0, 20) == null)\n" "\t\t{\n" "\t\t\titem = radar(AlienAnt);\n" "\t\t\tturn(direction(item.position));\n" "\t\t\tmotor(1,1);\n" "\t\t\t\n" "\t\t\tjet(0);\n" "\t\t\tif (position.z-topo(position) < 6)\n" "\t\t\t{\n" "\t\t\t\tjet(1);\n" "\t\t\t}\n" "\t\t\t\n" "\t\t\tif (position.z-topo(position) > 9)\n" "\t\t\t{\n" "\t\t\t\tjet(-1);\n" "\t\t\t}\n" "\t\t\twait(0.2);\n" "\t\t}\n" "\t\tfire(1);\n" "\t}\n" "}" msgstr "" "extern void object::JetFighter2()\n" "{\n" "\tobject item;\n" "\t\n" "\taim(-20);\n" "\t\n" "\twhile (true)\n" "\t{\n" "\t\twhile (radar(AlienAnt, 0, 360, 0, 20) == null)\n" "\t\t{\n" "\t\t\titem = radar(AlienAnt);\n" "\t\t\tturn(direction(item.position));\n" "\t\t\tmotor(1,1);\n" "\t\t\t\n" "\t\t\tjet(0);\n" "\t\t\tif (position.z-topo(position) < 6)\n" "\t\t\t{\n" "\t\t\t\tjet(1);\n" "\t\t\t}\n" "\t\t\t\n" "\t\t\tif (position.z-topo(position) > 9)\n" "\t\t\t{\n" "\t\t\t\tjet(-1);\n" "\t\t\t}\n" "\t\t\twait(0.2);\n" "\t\t}\n" "\t\tfire(1);\n" "\t}\n" "}" #. type: Plain text #: train206-help/twasp1.txt:38 #, no-wrap msgid "In order to adapt the program to shooting wasps, you need to make a few changes. Replace all radar(AlienAnt) with radar(AlienWasp). The cannon must aim straight forward and not downward, replace aim(-20); with aim(0);. And the bot must fly at the same height as the wasp. For this, you must compare the altitude of the bot given by position.z with the altitude of the wasp given by item.position.z: if position.z > item.position.z, go down slowly with jet(-0.3);. If position.z < item.position.z-1, climb slowly with jet(0.3);. A winged shooter is higher than a wasp, therefore it is better if the altitude of the bot is a little lower than the altitude of the wasp. In this case, we admit that the altitude of the bot ranges between the altitude of the wasp and the altitude of the wasp minus 1." msgstr "Aby przystosować ten program do zestrzeliwania os, konieczne będzie wprowadzenie kilku poprawek. Zamień wszystkie wystąpienia radar(AlienAnt) na radar(AlienWasp). Działko musi celować prosto naprzód, a nie w dół, zamień więc również aim(-20); na aim(0);. Robot powinien lecieć na tej samej wysokości co osa. Musi więc porównywać wysokość robota podaną przez position.z z wysokością osy podaną przez item.position.z: jeśli position.z > item.position.z, powoli zmniejsz wysokość jet(-0.3);. Jeśli position.z < item.position.z-1, powoli zwiększ wysokość jet(0.3);. Działo latające jest nieco wyższe od osy, dlatego lepiej jeśli wysokość robota będzie trochę mniejsza od wysokości osy. W tym przypadku sugerujemy, aby wysokość robota była pomiędzy wysokością osy a wysokością osy minus 1." #. type: \t; header #: train206-help/twasp1.txt:39 #, no-wrap msgid "Further improvement" msgstr "Dalsze usprawnienia" #. type: Plain text #: train206-help/twasp1.txt:41 #, no-wrap msgid "Wasps move very fast. In order to increase your chances to get them, better to repeat just before the fire(1); a radar and a turn in order to perform a last readjustment of the direction before the shot." msgstr "Osy poruszają się bardzo szybko. Aby zwiększyć szanse ich trafienia, przed samym strzałem (fire(1);) można powtórzyć instrukcje radar i turn w celu ostatniej korekty kierunku." #. type: \t; header #: train206-help/twasp1.txt:42 #, no-wrap msgid "See also" msgstr "Zobacz również" #. type: Plain text #: train206-help/twasp1.txt:43 #, no-wrap msgid "Programming, types and categories." msgstr "Programowanie, typy i kategorie."