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:25:03
Jeff Ahern
7 hours ago $20.11 earnedThe Saturday Show with Jeff Ahern
84.2K12 -
1:31:56
Michael Franzese
22 hours agoWill NBA do anything about their Gambling Problems?
140K28 -
57:26
X22 Report
11 hours agoMr & Mrs X - The Food Industry Is Trying To Pull A Fast One On RFK Jr (MAHA), This Will Fail - EP 14
117K74 -
2:01:08
LFA TV
1 day agoTHE RUMBLE RUNDOWN LIVE @9AM EST
169K15 -
1:28:14
On Call with Dr. Mary Talley Bowden
10 hours agoI came for my wife.
42.5K37 -
1:06:36
Wendy Bell Radio
15 hours agoPet Talk With The Pet Doc
82.6K37 -
30:58
SouthernbelleReacts
3 days ago $9.64 earnedWe Didn’t Expect That Ending… ‘Welcome to Derry’ S1 E1 Reaction
56K12 -
13:51
True Crime | Unsolved Cases | Mysterious Stories
5 days ago $18.10 earned7 Real Life Heroes Caught on Camera (Remastered Audio)
68.7K17 -
LIVE
Total Horse Channel
21 hours ago2025 IRCHA Derby & Horse Show - November 1st
60 watching -
4:19
PistonPop-TV
7 days ago $8.68 earnedThe 4E-FTE: Toyota’s Smallest Turbo Monster
50.6K3