Closed krazyjakee closed 12 years ago
the break is here: bubble_spritelist.draw(); line 1229 of jaws.js
Could you provide the full example with assets and everything?
Honestly, did not expect a reply, thanks very much ippa!
http://dl.dropbox.com/u/206123/chempop/index.html
Thanks again.
Looking at http://dl.dropbox.com/u/206123/chempop/js/init.js the problem seems to be this:
In the very first line, you try to create sprites before you have initialized jaws with jaws.start(). Therefore the sprites doesn't have sprite.context set.. cause when the sprites were created, it didn't jaws.context didn't exist yet.
I think the sollution is to simple move the sprite creation into setup()
If you have to create sprites before jaws.start() you can always do it with the sprite constructor new jaws.Sprite({context: your_2d_context})
done, and it worked. I learned something about scope today. I also realised how awesome this engine would be for my "game engine": http://www.youtube.com/watch?v=WxS_rslCJg0
Keep up the awesome work!