Skip to content

gytsen/dart-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published