class Lol extends Entity constructor: (@x, @y)-> tick: -> @x+=0.125 render: (ctx) -> ctx.fillStyle = "#ff0" ctx.fillRect @x-2,@y-2,10,10 Art.player.draw ctx, @x, @y, ~~(@x/10) % 7 Events.trigger "entity.make", [Lol,30,30] Events.trigger "entity.make", [Lol,40,50]
go