Zmiany

Skocz do: nawigacji, wyszukiwania

Module 3 - The “Cat in a Maze” Project

Dodane 67 bajtów, 09:41, 7 lip 2015
/* We programme and test the Cat in a Maze game */
::''It will be difficult to move the sprite around the maze. We have made the assumption that the character will move one square at a time, but that is not the case in our programme. We discuss with students what causes this. We ask how many times we have to go forward to get to an adjacent (green, i.e. allowed) square. Students should notice that we need to press the up arrow key four times. We ask them what should be changed in the script. Students should notice that the number of steps by which the character moves forward should be made four times larger, i.e. changed from 10 to 40 (i.e. the length of the side of a single square).'' <br/>
 
[[Plik:maze16.JPG|center]] <br/>
[[Plik:maze17.JPG|center]] <br/>
568
edycji