Page 1 of 2

[LOVEly Tiles] Tile Map Loader/Renderer (Updated 2013/6/18)

Posted: Sat Mar 23, 2013 8:14 am
by markgo
Repository: https://github.com/markandgo/LOVEly-tiles
Wiki: https://github.com/markandgo/LOVEly-tiles/wiki

This suite of libraries is meant to be as generic as possible so you can extend it for your own purposes. It's easy to create tile maps!

Features:

  • * Renders tile maps efficiently using sprite batches
    * Can specify a visible area to render your map
    * Can hide/show/flip/rotate specific tiles
    * Swappable image to change the "skin" of your map or animate it!
    * Converts a string/table/image into a map!
    * Draw a map like an image with optional transformation parameters!
    * Isometric map support!
    * Map layering + parallax support
    * TMX (Tiled) loading/saving
The demo showcases scrolling, map editing, isometric map, and tmx loading/saving.
demo.love
(142.42 KiB) Downloaded 929 times

Re: [LOVEly Tiles] Generic Tile Map Loader/Renderer

Posted: Sun Mar 24, 2013 5:57 am
by allxumuk
Some error in attached example: main.lua:2: module 'atlas' not found

Re: [LOVEly Tiles] Generic Tile Map Loader/Renderer

Posted: Sun Mar 24, 2013 6:04 am
by markgo
Fixed. Sorry!

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Fri Apr 05, 2013 7:53 am
by markgo
Just an update that revamps map and isomap. You can find the latest demo of it in v2. The map classes now create empty map objects. It's up to you to fill it in with setAtlasIndex. Also the atlas class can now accept spacing parameters.

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Fri Apr 05, 2013 8:14 am
by substitute541
All I get is black-n-white rectangles moving around...

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Fri Apr 05, 2013 8:20 am
by markgo
The libs uses quads + sprite batches. Maybe you can't use sprite batches?

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Fri Apr 05, 2013 8:26 am
by substitute541
Are your images (or the tile sheet) in PO2 dimensions?

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Fri Apr 05, 2013 12:20 pm
by markgo
Yea that's probably it. The kirby sheet is non PO2. D'oh. Well that's not that important as it's just demonstrating parallax.

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Fri Apr 05, 2013 2:41 pm
by bartbes
That shouldn't be a problem, what might be happening is that your tilesheet is too big for his gpu, as, on his computer without npot support, it gets resized to 4096x1024.

Re: [LOVEly Tiles] Tile Map Loader/Renderer + IsoMaps!

Posted: Sat Apr 06, 2013 4:58 am
by markgo
Well I changed the demo to use a reasonable image size for the scrolling demo. That's all folks!