https://github.com/webmatze/dragonruby-snake
a implementation of the classic snake game in DragonRuby
https://github.com/webmatze/dragonruby-snake
dragonruby dragonruby-gtk game snake snake-game
Last synced: 3 months ago
JSON representation
a implementation of the classic snake game in DragonRuby
- Host: GitHub
- URL: https://github.com/webmatze/dragonruby-snake
- Owner: webmatze
- Created: 2023-07-28T19:51:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-01T15:34:08.000Z (over 2 years ago)
- Last Synced: 2025-02-26T17:47:19.685Z (12 months ago)
- Topics: dragonruby, dragonruby-gtk, game, snake, snake-game
- Language: Ruby
- Homepage:
- Size: 305 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DragonRuby Snake Game
This is a simple implementation of the classic Snake game using the DragonRuby game toolkit.
## Game Description
In this game, you control a snake that moves around the screen. The snake grows by eating food that appears at random positions. The game ends when the snake hits itself or the edge of the screen.
The snake starts moving slowly, and its speed increases each time it eats food. The goal of the game is to make the snake as long as possible.
## Controls
Use the arrow keys to change the direction of the snake:
- Up Arrow: Move up
- Down Arrow: Move down
- Left Arrow: Move left
- Right Arrow: Move right
## Running the Game
### Using smaug
You can use [smaug](https://smaug.dev/) to install the dragonruby toolkit and that run the game.
To install smaug on macos you can use:
```bash
brew tap ereborstudios/tap
brew install smaug
```
See https://smaug.dev/cli/install/ for more instructions.
To run the game using smaug you can use:
```bash
smaug run
```
### Using pure DragonRuby
To run the game, you need to have DragonRuby installed. If you don't have it, you can download it from the [DragonRuby website](http://dragonruby.org).
Once you have DragonRuby installed, you can run the game by executing the following command in the terminal:
```
dragonruby path/to/game/directory
```
Replace `path/to/game/directory` with the path to the directory where you have the game files.
## License
This game is released under the MIT License. See the LICENSE file for details.