hey there, great walkthrough. I wonder if its intended that you call your box.update method twice per intervall? Once in the box.draw method and later in the main update method through the loop over each box
Lee
I cannot get this to work…I keep getting the errors that fillStyle and fillRect are not a function even though I have everything set up exactly as in this tutorial with html5 doctype and includes set up properly in index.html. I am a canvas n00b though, but I don’t understand why this works but mine doesn’t. What am I missing?
Muhammad Farooqi
excellent.. it’s really aowsome.. i didn’t know how easy is to make gravity.. and this is really beautiful.. really loving :)
3 Comments
(close)Alex
hey there, great walkthrough. I wonder if its intended that you call your box.update method twice per intervall? Once in the box.draw method and later in the main update method through the loop over each box
Lee
I cannot get this to work…I keep getting the errors that fillStyle and fillRect are not a function even though I have everything set up exactly as in this tutorial with html5 doctype and includes set up properly in index.html. I am a canvas n00b though, but I don’t understand why this works but mine doesn’t. What am I missing?
Muhammad Farooqi
excellent.. it’s really aowsome.. i didn’t know how easy is to make gravity.. and this is really beautiful.. really loving :)