Retwerkin stuff

This commit is contained in:
Amadeus Demarzi
2014-07-24 00:46:14 -07:00
parent 27b3187ce9
commit 72f0ef0e8e
5 changed files with 30 additions and 19 deletions

View File

@@ -40,6 +40,11 @@ Engine.Shape = function(x, y, width, height, points, polygons){
Engine.Shape.prototype = {
selfDestruct: function(time){
this.destruct = time;
return this;
},
update: function(engine){
var p;
@@ -52,6 +57,8 @@ Engine.Shape.prototype = {
this.polygons[p].update(engine);
// this.polygons[p].draw(this.context, scale);
}
return this;
},
draw: function(ctx, scale){
@@ -63,6 +70,7 @@ Engine.Shape.prototype = {
this.polygons[p].draw(ctx, scale);
}
ctx.restore();
return this;
}
};