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:01:38
DeVory Darkins
14 hours ago $48.77 earnedSchumer suffers humiliation as critics applaud Trump's historic peace deal with Tim Pool
110K56 -
56:09
Steven Crowder
19 hours agoBlack Fatigue is Real and I Told Them Why | Black & White on the Gray Issues
518K2.21K -
2:05:36
Inverted World Live
11 hours agoSaint's Tomb Opened for First Time in 800 Years for Ancient Ritual | Ep. 121
102K18 -
2:43:30
TimcastIRL
9 hours agoNY AG Indicted For FRAUD, Faces 30 Years In Prison, $1 MILLION FINE | Timcast IRL
228K110 -
1:09:16
Man in America
19 hours agomRNA 2.0: This Frightening Tech Can Target Your BRAIN Using Biological Post Codes
60.3K22 -
1:28:31
The Charlie Kirk Show
8 hours agoTHOUGHTCRIME Ep. 100 — Turning Point Halftime? Potatoes and Katie Porter? Hasan the Dog Shocker?
119K61 -
6:33:19
SpartakusLIVE
10 hours agoNEW Update, NEW Meta || Zombies Mode is BACK - Smokes NURFED
70.8K5 -
13:10
Robbi On The Record
8 hours ago $9.53 earnedThe War on Christians | China’s Surveillance & Nigeria’s Killing Fields
49.5K36 -
1:24:49
Flyover Conservatives
1 day agoYour Home Just Became a Healing Room — The Truth About Red Light & Med Bed - Jonathan Otto | FOC Show
48.1K9 -
2:11:35
Mally_Mouse
4 days ago🎮 Throwback Thursday! Let's Play: Kingdom Hearts 1 pt. 2
35.5K2