Graves and prefab generator
Another week, another step towards prefab dungeon areas. So, 2 main points:
- Expanding on last week and flexing the underlying systems, I've added a new interactive level object, the grave, where if you interact with it, you might get a treasure (automatically transferred to the inventory), and you might also get an undead enemy spawned next to you
- For creating prefabs, I thought I'd use the Tiled tool to begin with. So, I made a template, loaded some sprites, but the main issue was that the sprite-based nature of the tool made it complicated to integrate any other entities that carry some sort of meaning/functionality, such as the grave or the bookshelf from last week. So that effort went to the bin after a few hours. So, I went back to my default go-to solution for quick-and-dirty GUI: tkinter for python. So, I made a simple tool to be able to create prefabs with 5 layers: floor, blocked, decals, liquid and objects. For objects, since I control the code, I can automatically look up any level object entity configurations (that typically declare sprites) and use those, as seen in the screenshot. What's also possible is to make up some placeholder entity configurations/sprites with special meaning, e.g. "use whatever could be reasonably generated here based on default dungeon configuration". But it's a bit theoretical at the moment, as I'm now structuring the export data and preparing them for use with the game and DLL plugin.