Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in Q._generateCollisionPoints, obj.p.points is undefined, which throws an error #174

Open
akinnee opened this issue Dec 13, 2015 · 1 comment

Comments

@akinnee
Copy link

akinnee commented Dec 13, 2015

Uncaught TypeError: Cannot read property 'length' of undefined

Q._generateCollisionPoints @ quintus_sprites.js:312
update @ quintus_sprites.js:676
(anonymous function) @ my game
Q.gameLoopCallbackWrapper @ quintus.js:591
requestAnimationFrame (async)
Quintus.Q.gameLoop @ quintus.js:595
startGameLoop @ my game
(anonymous function) @ my game
loadedCallback @ quintus.js:1892
img.onload @ quintus.js:1623

@akinnee
Copy link
Author

akinnee commented Dec 16, 2015

I worked around this by calling _generatePoints manually after this._super in my Sprite's init method.

Q._generatePoints( this, true );

It's hacky though, so if there is a real solution, please let me know. Other than that one issue, I am enjoying this framework so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant