Borgar.net

— Go straight to page navigation

15. March 2016

Octopus

Octopus is an experiment at building a game fully contained in a single SVG image. The game simulates Nintendo’s 1981 Game & Watch game Octopus.

The image was traced using a vector drawing program, sanitised and references added to each shape to simulate the LCD. The JavaScript program logic then runs the game. This is fully contained, even down to the simple sound generation.

Excluding the time and alarm set, clicking buttons on the image works and keyboard keys are bound as follows:

← = Left
→ = Right
1 = A
2 = B
⎋ = Time
Published: 15. March 2016. Tagged: , .