From 56661f62f6c2d4433ea922b745ea8a65dbc229df Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Mon, 13 Apr 2015 00:16:19 -0300 Subject: [PATCH] Create Coffee file --- game/main.coffee | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/game/main.coffee b/game/main.coffee index e69de29..0d60376 100644 --- a/game/main.coffee +++ b/game/main.coffee @@ -0,0 +1,40 @@ +# Require the libraries we rely on + +$ = require('jquery') +undum = require('undum-commonjs') + +situation = require('raconteur/situation.js') +oneOf = require('raconteur/oneOf.js') +elements = require('raconteur/elements.js') +qualities = require('raconteur/qualities.js') + +a = elements.a +span = elements.span +img = elements.img + +# ---------------------------------------------------------------------------- +# IFID and game version - Edit this + +undum.game.id = "my.game.id" +undum.game.version = "0.1" + +# ---------------------------------------------------------------------------- +# Game content + +situation 'start', + content: """ + # Welcome to raconteur + + If you're seeing this, you've successfully installed the Raconteur game + scaffold. Get writing! + """ + +#----------------------------------------------------------------------------- +# Initialise Undum + +undum.game.init = (character, system) -> + # Add initialisation code here + +# Get the party started when the DOM is ready. + +$(undum.begin) \ No newline at end of file