Zmiany

Skocz do: nawigacji, wyszukiwania

Module 3 - The “Cat in a Maze” Project

Dodane 914 bajtów, 08:44, 7 lip 2015
/* Preparation: recognition of the background colour by the sprite */
'''Task:''' We ask the students to double click the stage or the stage icon located in the bottom left corner.
We remind them that the appearance of the screen changes, and in the top centre of the screen we can go to the Background tab to change the stage.<br/>
 
[[Plik:maze3.JPG|center]]
 
We ask then to choose a background and draw a red rectangle, as in the above picture (subsequent numbers indicate the suggested order of actions). <br/>
 
We then ask the students to double click the sprite located on the stage or to choose its icon in the lower left part of the window and go to the Scripts tab. <br/>
 
''We explain that this way we go back to creating sprite-related scripts. We explain that this way we can switch between defining the stage characteristics and the sprite.''<br/>
 
'''Task for self-completion:''' We ask students to build and test three sprite control scripts: <br/>
* The first should move the sprite by 10 steps when the '''up arrow key'' is pressed.
* The second should rotate the sprite right by 90 degrees when the ''right arrow key'' is pressed.
* The third should rotate the sprite left by 90 degrees when the ''left arrow key'' is pressed.
568
edycji