Information

You are a blue square controlled by the position of the mouse. The red squares are the enemies, and the game will end if they touch the player. A new one will spawn each second. Your goal is to survive for as long as possible.

Advice

The enemies will only ever spawn on the edges of the screen, therefore going near the edge is a gamble to be avoided. Try going in circles to get all of the enemies into one cluster.

Notes

I'm sorry there's not much halloween in this project. I can't for the life of me seem to get an image on the canvas. Please enjoy this supplementarry image of a pumpkin. I still learned a lot from this task, it was my first time using game loops, or even classes in any programming language. And I'm pretty happy with the final game. I hope you like it.

Jack o lantern