Robot game
From WLCS
Objective:
- Design and implement a game where a player may move around the screen and a robot follows it
Competencies:
- 053 Write a program that uses variables and constants.
- 057 Write a program that uses conditional structures.
- 058 Write a program that uses looping structures.
- 061 Code a program to display graphics.
- 063 Code a program to animate objects.
Requirements:
- Colorful or non-default background image/drawing (optional)
- Player sprite must be able to move around the screen with the keyboard
- The screen must be wrap around (moving beyond the left screen will make the player appear on the right)
- There should be 5-10 items on the screen that the player must collect
- To "collect" an item, a collision should make it disappear
- The robot sprite must follow the player around the screen (see below)
- If the player collides with the robot, then the player loses
- If the player collects all the items, then the player wins
Making the Robot Follow:
- Repeat until the Robot touches the Player
- Make the Robot point in the direction of the Player
- Move the Robot a little
Advanced Features:
- Teleport
- If the player presses the 'T' key on the keyboard, then the player is randomly teleported to another location on the screen
- Warping
- Place several warps (e.g. Mario warp pipes) on the screen
- If the player reaches one of these warps, then it sends the player to the other warp location
- Special Freeze Item
- Place a special item on the screen
- If the player collects the item, then the robot is frozen for a period of time and does not follow
- Difficulty levels
- If the player wins, then increase the difficulty level some how