Zmiany

Skocz do: nawigacji, wyszukiwania

Module 3 - The “Cat in a Maze” Project

Dodane 112 bajtów, 19:39, 7 lip 2015
/* Files to download */
'''We explain''' that after the sprite has entered the red square we want it to go back by the same number of steps, i.e. return to where it was. <br/>
'''Task:''' We ask students to try and find a block (blocks) to check whether the sprite is touching a specified colour. If necessary, we help them (e.g. suggest that it is among sensors). <br/>
::''Students should find a few blocks. Among them, the is '''touching colour'''? Block. If necessary, we briefly discuss other blocks and explain why they are not going to work in this case.'' <br/>
[[Plik:maze5.JPG]] <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]] <br/>
'''We ask the following question:''' Where should we place these instructions? <br/>
::Together with the students we think about where the instructions should be placed. We should come to the conclusion that the script '''when <up arrow> key is pressed''', which causes the movement of the character, needs to be modified because only when the character moves can it enter a forbidden colour. <br/>
[[Plik:maze8.JPG|center]] <br/>
[[Plik:maze14.JPG|center]]<br/>
::''We discuss whether the word should be displayed continually or only for a moment. That is why we select the block with the display time – '''say... for 2 s'''.'' <br/>
'''Task for self-completion:''' We ask the students to add to the walk script instructions that cause a reaction to the sprite’s reaching the blue square, i.e. the exit. We discuss where to put them. We hint that the structure should be similar to the one used to check whether the sprite reached the colour red. <br/>
::''We allow some time to complete the task, then ask one of the students to show a solution on the interactive whiteboard, and check whether everyone has solved the task.'' <br/>
[[Plik:maze15.JPG]]
::– a background change has taken place (we can use the block '''change background to <background name>''' and select the '''next background''' from the dropdown list), <br/>
::– the sprite has returned to the starting point (NOTE: in the case of the new stage the starting point may be different than previously, but it is easier to keep the same one). If the starting point is always in the same place, the game can be played indefinitely without the need to add other modifications in the scripts (after passing all the boards the player will return to the first one). If the game is to end after the player has passed two or more boards, the last board should be identified as such (e.g. by the background name). <br/>
 
==Files to download==
 
 
[[Plik:maze_Plansza1.png|300px|file1]]
 
[[Plik:maze_Plansza2.png|300px|file2]]
568
edycji