• Advertisement
Sign in to follow this  

HTML 5 Canvas game programming

This topic is 1905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

so i want to start testing the capabilities of the canvas element of html 5, i already got a couple books on the subject, but i like to code my own stuff, i quickly reached a point where i just had to post here asking for help.


so the thing is, im trying to code a game like Arkanoid, as i think its a game that will test the stuff i need tested on canvas.

so im going to assume you are familiar with Arkanoid games, and im going to show you the problem im having:

as you can see in this flash game:
[url="http://www.2flashgames.com/fullscreen.php?id=4695.htm"]http://www.2flashgames.com/fullscreen.php?id=4695.htm[/url]
the player bar movement is really sharp, it follows the mouse like immediately, no delay, almost no flickring.

in my attempt on canvas:
[url="http://parkamoid.webatu.com/"]http://parkamoid.webatu.com/[/url]
it takes a small delay for the bar to reach the mouse position, i have tried a lot of stuff trying to fix the issue, but i just cant figure out the reason.


so any suggestions? Edited by Xeinnex

Share this post


Link to post
Share on other sites
Advertisement
if you make the cursor invisible, the user wont feel the difference. it is the same with the flash game i think :)

Share this post


Link to post
Share on other sites
Doesn't work at all on my system. I see the blocks, but tere is no movement.
Browser is Seamonkey 2.12.2

Normally everthing works fine, including Canvas. Even WebGL. Edited by shadowomf

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement