gytsen / dart-snake

A simple game of snake written in dart. Play it at https://gytsen.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake

A little snake game written in Dart.

what's in the box?

Right now this package provides a working game interface along with a small map editor for generating your own maps. It also provides a few classes that abstract working with the canvas and processing the internal game state.

Building the code

The code was developed using the Dart 2.1.0 SDK. Earlier versions may work, but are not guaranteed to work.

To get started, run the following

pub get
webdev serve

If all builds well, you can point your browser to localhost:8080 and the game should run there.

To do

The following (non-exhaustive) list is still to do:

  • Use the GameMap.isCompatible() method in main.dart to actually check if the map we're loading is compatible with the canvas size we're playing on.

About

A simple game of snake written in dart. Play it at https://gytsen.github.io

License:Apache License 2.0


Languages

Language:Dart 79.8%Language:HTML 18.5%Language:CSS 1.7%