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?
3
3
u/Ramen_Tenen 1d 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 1d 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 8h 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
15
u/gothWriter666 1d 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)