-
Notifications
You must be signed in to change notification settings - Fork 96
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
surface.update seems to be buggy #27
Comments
If you just take the default example and change this line: |
Do you get any JavaScript error?
|
yeah it fails at scrolling.js at row 175. Uncaught TypeError: Cannot read property 'x' of undefined Just try the change to the surface.move and it will halt for you too :) |
Ok it's between 4 seconds and up to 60 seconds at longest. |
I just want to create a 5x5 moving background and after 5 seconds add 5x5 tiles to existing ones. But it seems like it can properly update surface only once. After that it updates only coordinates changes. Maybe I`m missing something?
https://github.com/Sektoid/sprite.js/blob/master/tests/test_scrolling.html
The text was updated successfully, but these errors were encountered: