actor.draw() should receive the Canvas element as a parameter
jeremyckahn opened this issue · 3 comments
jeremyckahn commented
Just add this:
currentFrameStateProperties.prototype.draw.call(currentFrameStateProperties, inst.ctx, inst.el);
jeremyckahn commented
actor.draw()
should also receive the kapi instance.
jeremyckahn commented
Added in SHA: 0dc3494,
Needs to be documented.
jeremyckahn commented
Actually, draw()
gets the context as the first parameter, and the kapi instance as the second. The context maintains a reference to the canvas itself: ctx.canvas
.
Documented in SHA: 35e6a8c