Jump to content

Horse Race 1 - Sprite sheet example


Recommended Posts

Thought I'd share this here as I work on it. Basic example of loading a sprite sheet and getting my horse sprite to run across the screen.

Press right cursor arrow to start the horse running, release to walk, hold to run again.

v1.js needs to be placed in js folder, image needs to go in an assets folder. v1.html in the root.

Comments and pointers very welcome.




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...