You play as the red circle (the apple). The snake is the white circle with the tail. Press space to move in the direction of the line sticking out of the apple, and to shoot a bullet in the opposite direction. Make the bullets hit the snake, without touching anything white or the edge of the screen.

You may need to click the game area after the game loads for inputs to be registered properly


ART:

Circles and arcs were made using ctx.beginPath, ctx.arc, ctx.stroke and ctx.fill

Lines were made using ctx.beginPath, ctx.moveTo, ctx.lineTo and ctx.stroke

Colours were selected using ctx.fillStyle and ctx.strokeStyle

Line width was set using ctx.lineWidth

Text was drawn using ctx.fillText

The background colour was set using canvas.style.background

Everything you see was made using something above.

Leave a comment

Log in with itch.io to leave a comment.