Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created June 29, 2014 00:35
Show Gist options
  • Save roundrobin/d9d2093a3be53bd12793 to your computer and use it in GitHub Desktop.
Save roundrobin/d9d2093a3be53bd12793 to your computer and use it in GitHub Desktop.
JavaScript OOP1
{"description":"JavaScript OOP1","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true}
var Engine = function(){
console.log("Created a engine");
}
Engine.prototype.start = function(){
console.log("Started engine");
}
var engine = new Engine();
engine.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment