Homework
Homework Video
In this assignment, you are going to implement something that fulfills the following objectives. Be creative and have fun!
- Create a JSON file with at least five objects in it.
- Create a class for your objects in the JSON file.
- Add all objects to the array.
- Create an object for your player and make sure it can move with the arrow keys.
- Make sure the player cannot collide with any of the objects on the canvas.
- Create another JSON file with at least three objects in it.
- Create objects from each entry in the file.
- Create a new array for each of the objects.
- Make sure when the player collides with those objects, they are collected, and the collectibles disappear.
- Show an increase in the score when a picking up a collectible
Homework 11 Examples and Video
Homework 11 Example