alternate iso grid

All things HTML5 or text based engines, or really any web based engines.
Post Reply
xenoglyph
Posts: 10
Joined: Wed Sep 18, 2013 10:34 am

alternate iso grid

Post by xenoglyph »

I need an isometric grid that isn't skewed. Just a square grid but rotated 45 degrees. How can I do this?

// TODO: Abstract out the tile drawing method so that it can be overridden for other projections etc :D
xenoglyph
Posts: 10
Joined: Wed Sep 18, 2013 10:34 am

Re: alternate iso grid

Post by xenoglyph »

getting there...

Image
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: alternate iso grid

Post by coolbloke1324 »

Hey ya!

If you can detail any abstraction you require I can look into updating the engine with it.

Iso is specified by a mountMode === 1 on the parent entity. 0 is 2d. Mount modes 2 onwards (2, 3, 4 etc) are unused so you could specify a new mount mode 2 and then adjust classes accordingly.

Where possible I would advocate extending an existing class and then overriding specific methods instead of modifying the base classes directly. Let me know how you get on with this and I will try to help as much as I can!
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
xenoglyph
Posts: 10
Joined: Wed Sep 18, 2013 10:34 am

Re: alternate iso grid

Post by xenoglyph »

mountMode will be just fine, thanks... you have more important stuff to do =)

It's all done and rendering fine...tested maps up to 1.5 million tiles, but for some reason screen to iso coord conversion is off, but only sometimes.... even though they all use the same code (IgePoint.toIso)? Probably something stupid, I'll ask a proper question about it later if I need to.
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: alternate iso grid

Post by coolbloke1324 »

xenoglyph wrote:mountMode will be just fine, thanks... you have more important stuff to do =)

It's all done and rendering fine...tested maps up to 1.5 million tiles, but for some reason screen to iso coord conversion is off, but only sometimes.... even though they all use the same code (IgePoint.toIso)? Probably something stupid, I'll ask a proper question about it later if I need to.
Cool beans. Sounds like you've cracked it pretty well :)
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Post Reply

Return to “HTML5/Web Engines”