ippa / jaws

Jaws - HTML5 canvas javascript 2D Game Framework
https://jawsjs.ippa.se
GNU Lesser General Public License v3.0
363 stars 75 forks source link

basic basic problem #24

Closed krazyjakee closed 12 years ago

krazyjakee commented 12 years ago

Just beginning to tinker with jawsjs and... Cannot read property width of undefined.

red_bubble_spritesheet = new jaws.SpriteSheet({image: "img/red-bubble.png", frame_size: [40,40] });

Straight out of the engine constructors example. Yes the image exists.

krazyjakee commented 12 years ago

Figured out how to asset manage. Jaws needs tutorials not examples.

ippa commented 12 years ago

SpriteSheets works for me, I would need to look at "img/red-bubble.png" to test your problem further. Ultimate would be if you could put an failing example online.