Zmiany

Skocz do: nawigacji, wyszukiwania

Module 3 - The “Cat in a Maze” Project

Dodane 1008 bajtów, 08:59, 7 lip 2015
/* Preparation: recognition of the background colour by the sprite */
<br/>
Then we show the students how to select the colour in the '''is touching colour?''' block. For this purpose we click on the colour available on the sensor. The mouse pointer changes to an icon of a hand pointing an index finger. We click on the red colour in the stage area. The colour in the '''is touching colour?''' Block changes to match the colour of the stage. <br/>
 
'''We ask the following question:''' What should happen if the sprite touches the colour (it should go back). <br/>
<br/>
 
''We reach the conclusion that it must move. We ask by how many steps. By as many as it moved forward previously. We wonder about which block we should use for movement – we have only one. But in it we can enter the number of steps which the sprite is to add (i.e. move forward). How to put down that now it is to go back? We reach the conclusion that we should subtract the number steps by which the character moved forward. That’s why we enter them with a minus.'' <br/>
 
[[Plik:maze7.JPG|left]] <br/>
568
edycji