https://github.com/systemfw/snake
Visually accurate clone of Snake, for fun and nostalgia
https://github.com/systemfw/snake
scala snake snake-game
Last synced: 10 months ago
JSON representation
Visually accurate clone of Snake, for fun and nostalgia
- Host: GitHub
- URL: https://github.com/systemfw/snake
- Owner: SystemFw
- Created: 2022-09-20T00:30:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T00:34:49.000Z (about 3 years ago)
- Last Synced: 2025-02-28T16:00:28.601Z (11 months ago)
- Topics: scala, snake, snake-game
- Language: Scala
- Homepage:
- Size: 3.84 MB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
https://user-images.githubusercontent.com/7769582/210119719-a4196f70-2dd9-40ed-870c-867d72d0489d.mov
## Run
Install [scala-cli](https://scala-cli.virtuslab.org/install).
Then:
```
scala-cli Snake.scala
```
## Controls
| Command | Description |
|--------------|--------------------|
| **arrows** | movement |
| **1-9** | change speed/level |
| **spacebar** | pause/resume |