using a tileset with canvas

Posted by Anonymous on Stack Overflow See other posts from Stack Overflow or by Anonymous
Published on 2010-12-31T04:11:17Z Indexed on 2010/12/31 5:53 UTC
Read the original article Hit count: 170

Filed under:
|

Yeah so I'm lost from the get-go. Alright let's say I have a big image with every tile for a 2D top-down RPG game. They're all the same width and everything. What I don't know is how would I save every individual tile from that image to their own image data for use on the canvas? Basically I want to take a big image with all my tiles, choose squares throughout it to make images out of the tiles, and store each image as a variable in an array. So, how would I do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html5