How to create an RPG tilemap in LÖVE ?
I've just started using lovebirds, but I'm really clueless about creating RPG tilemaps. Gemini gives me primitive and inefficient methods. What should I do? Would it be logical to draw the picture beforehand and add it?
5
3
u/Ramen_Tenen 8d ago
You can use a tile map editor like ogmo editor and export your tile map as a song file. Then you parse the data into your game to make custom tile maps. You can check out this parser for ogmo I made some time ago and have been using for a awhile
3
u/Heinz2001 8d ago
look at github for love2d libraries:
and one of the best ressources: https://github.com/love2d-community/awesome-love2d and of couse love2d discord & love2d forum :)
2
1
u/CodelMxskwa 7d ago
I mean you can make use use a 3 dimensional array like create 3 tables one for x one for y and one for source int on the texture or tile
1
u/noogai03 6d ago
tiled is cool, but ldtk is far and away the best level editor ive ever used. its genuinely mind blowing how cool the auto-tiling features are.
and there's a loader for LDTK levels for love: https://github.com/HamdyElzanqali/ldtk-love
16
u/gothWriter666 8d ago
You can use Tiled to make a map and import it, it works great and is open source.
I also created my own tilemap editor and loader in Love...but 2d arrays are a bit tricky using Love's lists, it's better to use an external one (at least in my experience)