for some reason this code:
// Run our game. while (true) { system.render(); world.drawPoly(45, 100, 200, 45); FlipScreen(); };
relying on this function:
// Render the polygon to the screen at the defined position and angle. grapler.prototype.drawPoly = function (angle, x, y, rotation) { var cache = this.polygons[angle].image; cache = cache.rotate(rotation); cache.blit(x, y); system.pushEvent("grapler3D", "Drawing poly at X: " + x + " Y: " + y + " rotated to " + rotation + " degrees."); };
Does this (I apologize for the poor gif quality):