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.
-
LIVE
GritsGG
5 hours ago#1 Most Warzone Wins 4015+!
81 watching -
16:30
Stephen Gardner
3 hours ago🚨OVAL OFFICE EXPOSES TRUMP TAKEOVER – FILIBUSTER NUKED!
17.5K24 -
LIVE
The Rabble Wrangler
16 hours agoThe Best in the West Dominates Battlefield
27 watching -
LIVE
cosmicvandenim
4 hours agoCOSMIC VAN DENIM
56 watching -
1:34:03
Redacted News
4 hours agoBREAKING! CIA FURIOUS & EMERGENCY WHITE HOUSE MEETING - ISRAELI SPY CAUGHT MEETING WITH AMB HUCKABEE
128K115 -
1:22:06
vivafrei
5 hours agoCFIA Goes After a REFUGE? Charlie Kirk Missing Evidence "Uncovered"? Democrats are Epostein Simps!
130K70 -
1:44:33
The Quartering
6 hours agoTrump Calls For Hangings, McDonalds SNAP Controversy, The Demonic Relationship In Wicked & More
159K70 -
21:40
Bitcoin Policy Institute
8 hours agoCongressman Warren Davidson Unveils the “Bitcoin for America Act” | Spotlight Series #1
36.4K -
LIVE
LFA TV
22 hours agoLIVE & BREAKING NEWS! | THURSDAY 11/20/25
805 watching -
2:00:02
freecastle
9 hours agoTAKE UP YOUR CROSS- Let your eyes LOOK directly FORWARD, and your gaze be STRAIGHT before YOU!
23.3K22