No Game Engine Game Dev: Word Sleuth 013: Loose ends list: timers, window start size, bugs, etc.

2 months ago
8

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

Game Engines are for sissies!

For a Loose-Ends-List day, it was not very productive. We ended up spending way too much time fighting the compiler … two times we ran into code that would just not be invoked no matter what we did, and I still don't know why.

There were two or three more places to put in EggTimers and Stopwatches. Sound went pretty smoothly, but the double-click timer for MultiColorText (which should have been simple) was brutal. For some reason my compiler output wouldn't call the Stopwatch.start UNLESS I put a log statement after it. Then it worked. Then I removed the log statement and it now still works. Much time was wasted fighting this issue. We also decided to fix the banner animation non-sense. Only partial success on this front.

We fixed some animations that weren't delaying (my fault from when we started using EggTimers in the Wait Actions).

When instantiating the window, there was a black border before the render resize was called. We updated the window to initialize its size with respect to the render area based on a flag. However, we were once again getting slapped in the face by our compiler. The window resize callback was not being called if we added the padding before calling the exact same thing we would have otherwise. Much time was wasted fighting this issue. Eventually we just manually invoked the callback (which is bad, evil, and stupid) in the special case even though there shouldn't be a special case at all.

Loading comments...