Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 Online

Deployed 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
```