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

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

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

Post 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 907 times
Last edited by markgo on Fri Jul 19, 2013 6:03 pm, edited 42 times in total.
allxumuk
Prole
Posts: 14
Joined: Fri Feb 13, 2009 7:03 am

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

Post by allxumuk »

Some error in attached example: main.lua:2: module 'atlas' not found
Sorry for my English.
Translated by Google translate.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

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

Post by markgo »

Fixed. Sorry!
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

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

Post 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.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

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

Post by substitute541 »

All I get is black-n-white rectangles moving around...
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

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

Post by markgo »

The libs uses quads + sprite batches. Maybe you can't use sprite batches?
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

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

Post by substitute541 »

Are your images (or the tile sheet) in PO2 dimensions?
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

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

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post 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.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

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

Post by markgo »

Well I changed the demo to use a reasonable image size for the scrolling demo. That's all folks!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 32 guests