cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Repeater Class un-usable in current state #112

Open qsrahman opened 10 years ago

qsrahman commented 10 years ago

The Repeater Class draw method is not correct IMHO since it render a sprite without taking into consideration the already transformed context. A way around the problem is to use listen on 'predraw' and add an empty draw stub to Repeater class.

cykod commented 10 years ago

I think it just needs to be updated to overload render instead draw - currently it's fine as long as you don't offset it with p.x or p.y