Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 826 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 826 Bytes

Snake

A Scala clone of Snake II as played on the Nokia 3310, for fun and nostalgia.

  • Fun: I've tried to use the minimum possible amount of Swing code, and do pixel-by-pixel rendering instead.
  • Nostalgia: I've tried to be visually accurate to capture the feel of the original game. Some of the behaviour (but none of the code) has been modelled by observing https://helpfulsheep.com/snake/.

Demo

snake.mov

Run

Install scala-cli. Then:

scala-cli Snake.scala

Controls

Command Description
arrows movement
1-9 change speed/level
spacebar pause/resume