Premium Only Content

No Game Engine Game Dev: Word Sleuth 031: Last piece of long word wrapping and the About scene
Streamed on 2024-08-14 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
I almost got long word wrapping working yesterday, but there was something strange happening with characters disappearing if there was a long word break hyphen added to the text layout. I had already determined yesterday that the issue was not the number of quads, the size of our VertexBuffer, or the number of indices in our IndexBuffer. But we started there again today. Eventually we found the problem: With the colors embedded in the text, and the hyphen shifting quads over to make room for the non-text hyphen, the colors weren't being shifted and the extra quad at the end wasn't getting a color, so it was rendering with an invisible color. Once we figured that out, it was simple to fix by providing a color.
While running tests we found a game crash that only occurred when we were not in the debugger. With lots of log statements we narrowed it down to an uninitialized value; it wasn't being set in all the constructors. This means there was a garbage value that caused us to break rules. When running in the debugger the memory was zero, so the bug didn't show up in the debugger. Once the cause was known it was easy to fix by adding the initialization to the other constructor.
With all that out of the way it was time to start working on the About scene. Until now it has stood empty. But no more. Now we have paginated text with sounds and transition animations. The text is placeholder text, but all the features I wanted are in place, minus art. It's still drawing on top of a black background.
-
13:01
Professor Gerdes Explains 🇺🇦
4 hours agoUkraine in Turmoil: MASSIVE PROTESTS Against Zelensky ERUPT Nationwide
4.36K -
1:43:11
Redacted News
4 hours agoBREAKING! TRUMP DECLARES WAR ON OBAMA "TREASON" AS A DEEP STATE RINGLEADER IN RUSSIA HOAX | REDACTED
135K128 -
1:22:13
Michael Franzese
4 hours agoPablo Escobar’s Son Breaks Silence About His Father, Narcos, and The Cartel
34.7K10 -
LIVE
SpartakusLIVE
1 hour agoThe $1,000 Spartakus Gauntlet || Huskerrs and Twitty
80 watching -
9:02
Hollywood Exposed
3 hours agoPiers Morgan's Guests ROAST DC's New Superman - It’s A Trainwreck!
12.1K4 -
LIVE
GSLouise
3 hours agoFIRST RUMBLE STREAM go easy on me
35 watching -
LIVE
Spartan
4 hours agoSpartan - Pro Halo Player for OMiT | Scrims vs Unreal Nightmare
17 watching -
17:23
Preston Stewart
4 hours ago $0.65 earnedSyria's Fragile Truce
11.4K1 -
1:00:00
BEK TV
21 hours agoOpen Range
3.66K -
57:24
CharLee Simons presents DO NOT TALK
20 hours agoSteve Hilton with CharLee Simons on DO NOT TALK
7273