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:09:03
vivafrei
4 hours agoCriminals Are Getting Nervous! Democrats Can't Give Trump Credit! AND MORE!
72.4K23 -
12:56
Dr. Nick Zyrowski
8 days agoFasting Is THE Cure: No Food For 2 Days Is The Perfect Fast! (Here’s Why)
6.3K4 -
LIVE
Badlands Media
17 hours agoMAHA News [10.10]: Cannabis Reform, Kennedy Exposes "Vaccines Saved Lives", An Inconvenient Study
551 watching -
1:51:23
The Quartering
4 hours agoTrump Snub Backfires, Matt Walsh Sounds The Alarm, Candace Owens Theory On Charlie Kirk
104K42 -
LIVE
Owen Shroyer
1 hour agoOwen Report - 10-10-2025 - Qatari Airbase In America Angers Israeli Lobby
1,264 watching -
1:14:53
DeVory Darkins
4 hours ago $14.74 earnedDemocrat Candidate leaves crowd DUMBFOUNDED as Trump scores MAJOR VICTORY
67.7K20 -
1:12:16
Sean Unpaved
4 hours agoTNF Shocker: Giants Stomp Eagles, Cubs Claw a Game 5, Weekend NFL/CFB Best Bets!
29K6 -
1:25:05
HotZone
9 hours ago $3.21 earned5 Signs Terrorists are Plotting a Massive US Strike
17.7K11 -
1:05:42
Dear America
5 hours agoShould Christians Celebrate Halloween?
30.6K16 -
2:03:24
The Culture War with Tim Pool
6 hours agoAntifa Is A Terror Organization, Crackdown Coming As Leftists Defend Violence | The Culture War
179K167