Entity Editing
What can I achieve in about an hour? Well, I implemented the possibility to place trees. It was very simple to do, since all the code was already there. I am using the debug UI for this stuff for now. Though I may switch to some proper UI system in the future. Currently I don’t have any UI system for the actual game.

Once an entity is placed, you can select it. But now you can actually edit a selected entity 😀 Unfortunately I haven’t implemented one of the draw commands yet. The one which takes a bitmap and can rotate it. Therefore I can’t rotate my new trees yet.

Stereoscopic 3D
I think I mentioned in a previous devlog that I implemented some 3D rendering. Once I had placed some trees I was very curious to see how it would lookin 3D. Because in 2D it already looks very close to my initial goal.

To my surprise the 3D rendering actually is broken. It does render two views and they are both different. But I don’t actually see a depth difference. So I basically see a 2D image rendered in 3D mode. I don’t know what the cause can be for the sudden disability to render in 3D. I’ll have to take a look at that soon.

However a more important task would be to fix the mouse. As currently the mouse position is sort of based on the window of the application. But the actual game can be in a much smaller view window, inside the applications window. I need to find a way to make the mouse position map to the actual game view. So that the top left of the game is actually the top left of the mouse position range. Instead of the top left of the application window. I hope I explained that well enough haha.

Last modified: March 30, 2023