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.
-
6:01
John Crump News
16 hours ago $0.01 earnedGOA vs. Philly: The Fight Starts!
1.44K1 -
3:03:35
TimcastIRL
10 hours agoTrump Just FIRED OVER 6,700 IRS Agents In PURGE, Democrats SOMEHOW Angry w/Chloe Cole | Timcast IRL
185K256 -
1:39:48
Kim Iversen
13 hours agoThe Measles Fear Hoax: How They’re Using an Outbreak to Smear RFK Jr.
105K82 -
1:18:19
Glenn Greenwald
11 hours agoRumble & Truth Social Sue Brazil’s Chief Censor Moraes in US Court; DC Establishment Melts Down Over Trump's Ukraine Policy | SYSTEM UPDATE #409
122K132 -
1:33:39
Redacted News
14 hours agoBREAKING! Europe goes NUCLEAR against Trump over pushing for PEACE in Ukraine | Redacted
195K234 -
1:00:43
The StoneZONE with Roger Stone
10 hours agoRoger Stone Destroys Mike Pence for Attacks on Trump | The StoneZONE
129K52 -
1:05:43
Flyover Conservatives
1 day agoFederal Reserve on the Chopping Block—Trump’s Boldest Move Yet! - Floyd Brown, Western Journal | FOC Show
71.5K7 -
2:50:40
Melonie Mac
15 hours agoGo Boom Live Ep 38!
72K4 -
11:08
China Uncensored
14 hours agoXi Jinping's Greatest Fear
40.6K14 -
2:11:20
I_Came_With_Fire_Podcast
19 hours agoFar Left TROJAN HORSE | SPECIAL Forces in MEXICO | GERMANY under FIRE
32.3K13