top of page
Writer's pictureKJ Ha

Nature of Code: 5th Assignment


For this week's assignment, I've created a simple game using autonomous agents.


The rules of the game are simple.


At first, five lives are given. The vehicle takes the red dot as a target, and as the vehicle touches the red dot, the player loses one life. All the player needs to do is to make the red dot run away from the vehicle using their mouse as represented by the blue dot.


There are two occasions to make the red dot move to a random location. The first occasion is when the player lost one life. This is the moment when the vehicle touches the red dot. The second occasion is when the blue dot approaches the red dot.


Therefore, the objective of this game is to make the blue dot reach the red dot faster than the vehicle so the red dot can stay alive longer as possible.



Live Demo:




Recent Posts

See All

Nature of Code: Final Proposal

Link to video recording: https://youtu.be/_n7wWtambYc For the final, I would like to continue working on the mid-semester exercise. (link...

Comments


bottom of page