No Game Engine Game Dev: Word Sleuth 019: Fixing transform bug

3 months ago
4

Streamed on 2024-07-23 (https://www.twitch.tv/thediscouragerofhesitancy)

Game Engines are for sissies!

Today we finally tackled the scale/rotate bug. The issue was that we were performing the y-axis flip in the vertex buffers and this is the wrong place to do it. Instead we flipped the camera, and then negated the y values in the vertex buffers. With that change, everything started falling into place.

There were several follow up refactors that had to take place, including making all inheritors of the Affine transform maintaining parent/child relationships, updating IntSpinBox, TextEdit and Button to correctly layout child components with respect to the new transform updates, and started updating everything that has a "contains-screen-point" methods to use the transforms as well. Some work still remains on the last couple of loose ends to fully wrap up the transform updates.

Loading comments...