Complete to win a piece of chocolate!
- Create an animal sprite for your project, let’s call it Character 1, this is your main character
- Code it so that you can control using your keyboard, this means:
- it should move left when you click on the left arrow key,
- right when you click on right arrow key,
- up when you click on up,
- down when you click on down
- Make sure your character is pointing in the direction you are heading in
BONUS: (complete this to win a Pokemon character)
- Create another character, let’s call it Character 2 and code it so that it moves randomly around on its own
- Make sure that Character 2 is bouncing when on edge so that it does not go off the screen
- Make a variable called Score
- When Character 1 touches Character 2, 2 things should happen:
- Character 2 disappears for a second and then displays itself at the top-left corner
- Score increases by 1