I knew before, that designing the game with an isometric perspective would make everything a little bit harder, but I still hated that the solution to get it working needed to be something that I have difficulties with: geometry. One of the big reasons why I didn’t make the game 3D was the horrors of vectorgeometry.
I do like logic (otherwise I probably would not like programming), but I’m not a big fan of maths. That’s one of the big reasons why I studied philosophy and not some STEM-field. I had such bad grades in these kinds of areas (like geometry), that working on this part was kind of a bummer.
At least there was a video by Shaun Spalding on the topic that helped me greatly, and the code in it is in large parts the foundation of my code as well for now:
So in the end I was able to build a (still buggy) isometric map:
The introduction to isometric maps by Shaun Spaulding only shows how to produce the map, but they did some quick fixes for showing the right stuff actually in the window. For me the “viewport” didn’t work correctly (I couldn’t see all of the map) and so I did what he says in the video as the correct way to go about it, which is to program an actual camera.
This video series by Aaron Craig (Let’s Learn This Together) helped me doing this:
And sometimes ChatGPT helps as well with bug-fixing: