1 decade ago by dexxa
can entity be created not using image but do something like
http://billmill.org/static/canvastutorial/ball.html
http://billmill.org/static/canvastutorial/ball.html
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
EntityBall = ig.Entity.extend({ ... draw: function() { var x = this.pos.x - this.offset.x - ig.game.screen.x; var y = this.pos.y - this.offset.y - ig.game.screen.y; //draw a circle ig.system.context.beginPath(); ig.system.context.arc(x, y, 10, 0, Math.PI*2, true); ig.system.context.closePath(); ig.system.context.fill(); } });