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/.
snake.mov
Install scala-cli. Then:
scala-cli Snake.scala
Command | Description |
---|---|
arrows | movement |
1-9 | change speed/level |
spacebar | pause/resume |