Recently I started on making the engine support larger than 64×64 sized maps.

This should be trivial, but it isn’t. This is (partly) because most things are cell based, meaning the dimensions of the map are taken into account at a lot of places in the code (while it should be concentrated in one place really). And why is that? well. blame me of 20+ years younger I guess 🙂

To ease the pain of making this logic centralized I decided to refactor bullets so that they don’t rely on cells anymore (and thus no more on map dimensions really).

As a bonus this made it easier to have bullets land at a random position at a structure, which eliminates the fixation on the upper-left corner of a structure which you have in 0.5.0. (see also this ticket). This makes the game yet a bit more polished. (while at the same time working on a more fundamental issue – yes less exciting..)

How it looks like right now:

#

Comments are closed

Want to support? Please consider donating via Kofi.

Created this image using bing image ai (https://www.bing.com/images/create/a-desert-planet/6419d4eb15cf4c858f15c0fcee9adc00?id=PLM8ttAfSUOWZ4YngbOYMA%3d%3d&view=detailv2&idpp=genimg&FORM=GCRIDP&mode=overlay)

I am happy to say I am slowly healing and that I am able to do small things for d2tm again. Still a lot to work through mentally but improvements are noticable 💪

Load More...