Drawing program

posted by: Ms. Martin 11 April 2010 No Comment

The goals of this exercise are to get you working with events that happen based on user key presses and to get you thinking about resetting the state of your sprites when your program starts.

Requirements

- Moving your sprite always makes it draw
- Up arrow makes your sprite go in the direction it is facing
- Down arrow makes your sprite go in the opposite direction from the one it is facing
- Right arrow makes your sprite turn right a bit
- Left arrow makes your sprite turn left a bit
- At least one other key has an effect (change color, make sound…)
- When the green flag is clicked, your sprite goes back to (0,0), the screen is cleared and the sprite faces towards the right

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>