swoolcock / diddy

An Open Source Framework that includes a set of extra functions and APIs for the Monkey language.
MIT License
21 stars 4 forks source link

TileMap layer drawing #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The tile module is very powerful; I'm impressed!

I'd like to be able to draw layers separately so I can have ground tiles, 
manually draw some sprites, then draw a layer above the sprites (or maybe 
insert a list of sprites to be drawn as a layer?).

Also, to make it complete, a method to transform map coordinates to screen 
coordinates would be helpful.

Thanks for diddy!

Original issue reported on code.google.com by jesse.ei...@gmail.com on 30 Mar 2012 at 9:37

GoogleCodeExporter commented 9 years ago
Interesting idea, I'll take a look at it if I get a chance.

Original comment by samah...@gmail.com on 17 May 2012 at 12:47

GoogleCodeExporter commented 9 years ago
New methods added in r495:
PreRenderLayer(tileLayer:TileMapLayer)
PostRenderLayer(tileLayer:TileMapLayer)
PreRenderMap()
PostRenderMap()

Override them as you will.  ConfigureLayer() is now deprecated.  Please move 
your code into PreRenderLayer() instead.

Original comment by samah...@gmail.com on 14 Sep 2012 at 3:07

GoogleCodeExporter commented 9 years ago
Great just what I needed :)

Original comment by jesse.ei...@gmail.com on 14 Sep 2012 at 4:33