Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonmirzodev/snake-dart-game
Snake game created with Dart language and Canvas
https://github.com/jonmirzodev/snake-dart-game
canvas dart dartlang html5-canvas
Last synced: about 1 month ago
JSON representation
Snake game created with Dart language and Canvas
- Host: GitHub
- URL: https://github.com/jonmirzodev/snake-dart-game
- Owner: JonMirzoDev
- Created: 2024-04-11T06:08:34.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-04-11T10:08:51.000Z (7 months ago)
- Last Synced: 2024-10-12T08:41:15.131Z (about 1 month ago)
- Topics: canvas, dart, dartlang, html5-canvas
- Language: Dart
- Homepage: https://snake-dart-game.vercel.app
- Size: 217 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Classic Snake Game :snake:
Welcome to the Classic Snake Game, a simple yet addictive game built with Dart and leveraging web technologies. This game is a digital recreation of the beloved classic where players navigate a snake to consume food while avoiding collisions.
## Features
- Smooth snake movement controls using arrow keys
- Automatically adjusts to different screen sizes and canvas dimensions
## Play OnlineDeployed in Vercel and you can play it [here](https://snake-dart-game.vercel.app/).
## Running the Game
To get the game up and running on your local machine, follow these steps:
1. Install Dart if you haven't already (find instructions [here](https://dart.dev/get-dart)).
2. Activate the `webdev` tool with the following command:```sh
dart pub global activate webdev
```3. Serve the app locally using:
```sh
webdev serve
```Navigate to `localhost:8080` in your web browser to play the game.
## Building for Production
To create a production build of the Snake Game, run:
```sh
webdev build
```