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.
-
2:11:19
DLDAfterDark
7 hours ago $3.90 earnedUSA Invasion - Is Trump's DOJ Anti Gun? - The 0$ NFA Tax - What's The Truth?
29.1K1 -
3:15:10
megimu32
8 hours agoOFF THE SUBJECT: Bodycams + Battle Bus Carnage
77.4K2 -
9:22:52
GritsGG
13 hours ago#1 Most Warzone Wins 4105+!
74.4K2 -
35:22
SouthernbelleReacts
1 day ago $2.53 earnedTHE ICONIC THANKSGIVING MOVIE I SHOULD’VE WATCHED SOONER 😳 | Reaction
18.3K2 -
25:38
MYLUNCHBREAK CHANNEL PAGE
18 hours agoTaking Big Ben to Court
164K39 -
9:49
True Crime | Unsolved Cases | Mysterious Stories
4 days ago $2.38 earned5 Real Prison/Jail Escapes Caught On Camera #1
14.1K -
1:58:33
Mally_Mouse
3 days ago🌶 🥵Spicy BITE Saturday!! 🥵🌶 - Let's Play: Ultimate Chicken Horse
53.3K1 -
2:03:16
SavageJayGatsby
1 day ago🔥 Spicy Saturday – Let's Play: Ultimate Chicken Horse 🔥
56.4K2 -
4:37:26
The Rabble Wrangler
12 hours agoBattlefield 6 Free Week | Come Play With The Best in the West!
27.7K2 -
4:37:18
GamerGril
13 hours agoUntil Dawn Until I Get A Different Ending!
75.5K6