Children of Ur's Dart-based browser client
This repository contains the source code for Children of Ur's Dart-based browser client.
Children of Ur is based on Tiny Speck's browser-based game, Glitch™. The original game's elements have been released into the public domain. For more information on the original game and its licensing information, visit glitchthegame.com.
License information for other assets used in Children of Ur can be found in ATTRIBUTION.md
.
The code is live at childrenofur.com.
If you want to run it locally or on your own server, you'll need to have an environment with Dart installed. Note that this repository does not currently contain any prebuilt files, so you'll also need a development environment. See Contributing below.
coUclient
is based on Dart, so the first thing you'll need to do (if you haven't already) is to install it.
- Install the Dart SDK for your platform. Make sure you have at least version 2.0.0.
- Make sure the SDK and your pub cache are on your path. On Linux, add this line to the end of your
~/.bashrc
: `export PATH=$PATH:"/usr/lib/dart/bin":"$HOME/.pub-cache/bin" - Install
webdev
:pub global activate webdev
- Generate precompiled files:
webdev build
See https://www.dartlang.org/tools.
For instructions on manually installing Dart as well as links to other platforms, see https://www.dartlang.org/install .
pub get
webdev build
The client uses the contents of web/server_domain.txt
to find the server. If you're running the server locally,
it should contain localhost
. For the values to use if you want to connect to the dev or live servers, please
contact someone on the development team.
webdev serve
The project is built in Dart, which is then compiled and minified into javascript and can run in most browsers. See our team collaboration site on Trello for the current roadmap.
main.dart
serves as the main game loop. This class controls all functions within the game.- Dart classes and functions are in the
lib/src
folder. - Images, CSS and other web resources are in
web/assets
. - More development documentation is in the
doc
folder.