Tagged Questions
2
votes
0answers
431 views
HTML5/JS - Choppy Game Loop
I have been experimenting with HTML5/JS, trying to create a simple game when I hit a wall. My choice of game loop is too choppy to be actually of any use in a game.
I'm trying for a fixed time step ...
4
votes
3answers
365 views
Best practices on separating Update and Draw on game loop
I've been working on my first HTML5 prototype and I found a good model that uses the regular Update and Draw loop we see in game dev. My question is, where does one end and the other begins?
The ...
2
votes
0answers
302 views
What is wrong with my game loop/mechanic? [closed]
I'm currently working on a 2d sidescrolling game prototype in HTML5 canvas.
My implementations so far include a sprite, vector, loop and ticker class/object.
Which can be viewed here: ...
0
votes
2answers
601 views
Speed, delta time and movement
player.vx = scroll_speed * dt
/* Update positions */
player.x += player.vx
player.y += player.vy
I have a delta time in miliseconds, and I was wondering how I can use it properly. I tried the ...