Skip to content

Instantly share code, notes, and snippets.

@tcr
Created July 9, 2010 20:57
Show Gist options
  • Save tcr/470047 to your computer and use it in GitHub Desktop.
Save tcr/470047 to your computer and use it in GitHub Desktop.
var RocketGame;
var __extends = function(child, parent) {
var ctor = function(){ };
ctor.prototype = parent.prototype;
child.__superClass__ = parent.prototype;
child.prototype = new ctor();
child.prototype.constructor = child;
};
RocketGame = function() {
var text;
RocketGame.__superClass__.constructor.call(this);
text = new drawables.Text('ALL SYSTEMS GO.');
text.font.color = colors.Red;
text.font.size = 32;
text.move(50, 100);
this.screen.add(text);
return this;
};
__extends(RocketGame, disarm.Game);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment