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.
-
2:50:40
Melonie Mac
13 hours agoGo Boom Live Ep 38!
62.3K4 -
11:08
China Uncensored
12 hours agoXi Jinping's Greatest Fear
33.1K12 -
2:11:20
I_Came_With_Fire_Podcast
17 hours agoFar Left TROJAN HORSE | SPECIAL Forces in MEXICO | GERMANY under FIRE
26.2K13 -
1:41:00
Darkhorse Podcast
14 hours agoIf Only We’d Known: The 265th Evolutionary Lens with Bret Weinstein and Heather Heying
162K39 -
1:58:29
Conspiracy Pilled
3 days agoThe Vaccine Conversation (S5 - Ep17)
70K2 -
11:22
Tundra Tactical
11 hours ago $4.29 earnedUSA vs Canada HOCKEY Fight: The Real PRIDE Fighting.
69.7K10 -
54:43
LFA TV
1 day agoWhy Exposing Waste and Fraud Terrifies the Beltway | TRUMPET DAILY 2.19.25 7PM
63.9K10 -
1:01:13
Candace Show Podcast
12 hours agoBlake Lively's BOMBSHELL Legal Filing | Candace Ep 149
134K155 -
1:11:22
Vigilant News Network
15 hours agoElon Musk Shuts Down RFK Jr. Critics With One Powerful Statement | The Daily Dose
87.5K30 -
1:12:23
Dad Dojo Podcast
1 day ago $2.56 earnedEP20: The Super Bowl and Solving The Economy
50.9K