click on the image below to view the live page
This program is a simple click and point game created to demonstrate understanding of collision, key typed events, and mouse events. It takes a user's name, and then allows them to interact with a scene of a snowy forest. The user can control the speed of the snow, interact with the owl, and turn on the flashlight and move it with the arrow keys to see what lurks in the dark.
This project was created with JavaScript using p5.js libraries.
The biggest challenge was the collision between the hidden forest objects and the diameter of the flashlight, the outer edges of each object had to be calculated so conditionals could be written to make the forest objects visible only when the flashlight beam is on them
View Code