Premium Only Content

No Game Engine Game Dev: Word Sleuth 032: A couple of loose ends and then code metrics
Streamed on 2024-08-15 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
I started out hunting for issues with the cursor position. This ended up being more of a rabbit hole than I wanted, but we finally got the cursor to position correctly with empty text and whitespace only text. Ultimately the "updateText" function used to be only for updating the renderable bits, but now it's also in charge of computing cursor position. So, it was hidden behind a quadCount check, and if there were no quads, the cursor position never got recomputed. Moving this quadCount check to the actual render and not to block updateText fixed everything.
Then we went to the About scene and added some more text. At the very least it has the proper attribution for the game that I'm making an homage of. However, I discovered that there was a bug where text was being truncated. I tracked it down to a string length being truncated silently by being cast to a uint8_t. I wish the compiler would warn of things like that. With a simple type change to handle all 32 bits of the return, we now support longer text.
Then I wrapped things up by writing the beginnings of better code metrics to measure productivity. This is implemented as Python scrips running git commands. In the end it wasn't as painful as I thought. I thought I would have to manually parse diffs, but there was an option that gave me what I needed in a digestible format. With a bit more work it could be quite handy across multiple projects.
-
1:00:35
Timcast
2 hours agoDOJ To BAN Transgenders From Owning Guns
101K104 -
LIVE
Side Scrollers Podcast
2 hours agoUK JAILS TV WRITER FOR WRONG THINK + TWITCH ALLOWS CYBERSTALKING + MORE | SIDE SCROLLERS LIVE
306 watching -
LIVE
Viss
1 hour ago🔴LIVE - PUBG Solo Tactics To Win Consistently! - PUBG 101
100 watching -
2:05:54
Steven Crowder
4 hours agoLive Reaction: RFK Faces Senate Grilling After Employees Demand His Resignation
261K197 -
1:02:58
The Rubin Report
3 hours agoPress Stunned by Trump’s Brutally Honest Message for Elon Musk
46.7K41 -
LIVE
Rebel News
1 hour agoPolice chief says 'comply' with intruders, Carney on temp workers, Trump on tariffs | Rebel Roundup
301 watching -
DVR
Neil McCoy-Ward
1 hour ago🚨 Hospitals Are Bracing For MASS Casualties...
7.84K1 -
The Mel K Show
2 hours agoMORNINGS WITH MEL K - NATO Cognitive Warfare & Post WWII Betrayal Finally Exposed 9-4-25
20.2K15 -
LIVE
The Shannon Joy Show
4 hours agoCOVID Not A ‘Lab Leak’, It Was Created At UNC Chapel Hill! LIVE - Exclusive With Dr. David Martin
251 watching -
LIVE
LFA TV
6 hours agoLFA TV ALL DAY STREAM - THURSDAY 9/4/25
3,668 watching