Objects in Isometric
I am trying a tutorial from glacialflame.com (Great tutorials how to create isometric graphics in HTML5 Canvas!)
Now I have this: http://jsfiddle.net/fUm6n/3/
In this example is an isometric map with objects. Tile widths are 50, heights are 25, and the objects are the same size as tiles (and objects can be draw in only one 开发者_如何学Ctile). How would I create another type of object that has something like a width of 200, height of 100, and draws in 4 tiles? Would I create another object Array
and set the sizes for this array, or is there a better method to do this?
I'm not an expert. However i've promised myself to read "html5 canvas" book when I'll have more time.
I think that you've two ways:
- You can use bigger tiles (but this is convenient if all you're game objects have the same dimensions)
- You can have have, as you proposed, the same tiles dimension (50 * 25), but using more tiles in order to draw a bigger object (i.e.: an object 200 * 100). I suggest this approach in case you've different objects of different dimensions.
The final choice it's up to you.
精彩评论