Jump to content

Car animation in Canvas


Guest FirefoxRocks
 Share

Recommended Posts

Guest FirefoxRocks

How do I go about doing something like this in HTML5/JS Canvas?http://www.actionscript.org/resources/arti...ment/Page1.htmlRight now I can make it so that when you press the arrow keys you move a rectangle around the canvas but that's not how a car drives...I can't seem to figure out how to rotate a shape, like how they do in ActionScript with the _rotation property. I tried the ctx.rotate(angle) function but that rotated the entire canvas and I'm not sure if that's what I want.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...