Robot game
From WLCS
Objective:
- Design and implement a game where a player may move around the screen and a robot follows it
Requirements:
- Colorful or non-default background image
- 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
- The robot sprite must follow the player around the screen
- If the player collides with the robot, then the player loses
- If the player collects all the items, then the player wins
Robot Following:
- When the player moves, the robot will also move
- You will add 4 new if statements to the same area as the player movement if statements
- If the robot is to the left of the player, then you should move the robot to the right
- Ex. If the robot.left < player.left, then increase robot.left by 1
- You must do the above for all combinations of where the robot will be in relation to the player