Skip to content

Instantly share code, notes, and snippets.

@ericrius1
Created April 9, 2015 22:25
Show Gist options
  • Save ericrius1/ef820b0d6eceeb5278d4 to your computer and use it in GitHub Desktop.
Save ericrius1/ef820b0d6eceeb5278d4 to your computer and use it in GitHub Desktop.
//Simple entity script with update
(function(){
var self = this;
this.preload = function(){
this.xPosition = 10;
}
this.update = function(){
self.xPosition += 0.2;
}
Script.update.connect(this.update);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment