Zmiany

Skocz do: nawigacji, wyszukiwania

Module 3 - The “Cat in a Maze” Project

Dodane 861 bajtów, 08:25, 7 lip 2015
'''''* If the character collides with a wall, go back to where it was previously located, and then: '''''<br/>
'''''* Play a meow sound''.'''<br/>
 
'''Question:''' How can we rotate the character, so that it walks in a different direction? <br/>
''There will be various suggestions. We write down one of them on the board.
NOTE: At this point we discuss how the character is to move (up, down, left, right). We explain how it can rotate. We remind the students of how we drew a square in the first module and rotated the sprite by 90 degrees to the left or right. We guide the students towards a solution where the character is rotated left or right.'' <br/>
 
''After discussing which key should control the character, we write on the board what we have agreed on, for example:'' <br/>
'''''* When the right arrow key has been pressed, rotate the character by 90 degrees to the right.''''' <br/>
'''''* When the left arrow key has been pressed, rotate the character by 90 degrees to the left.''''' <br/>
568
edycji