jeremyckahn/kapi

actor.draw() should receive the Canvas element as a parameter

jeremyckahn opened this issue · 3 comments

Just add this:

currentFrameStateProperties.prototype.draw.call(currentFrameStateProperties, inst.ctx, inst.el);

actor.draw() should also receive the kapi instance.

Added in SHA: 0dc3494,

Needs to be documented.

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