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.
-
16:03
Tundra Tactical
6 hours ago $6.22 earnedNew Age Gun Fudds
65.3K13 -
8:22
Russell Brand
10 hours agoThey want this to happen
153K338 -
2:06:43
Jewels Jones Live ®
1 day ago2025 STARTS WITH A BANG! | A Political Rendezvous - Ep. 104
84K30 -
4:20:41
Viss
10 hours ago🔴LIVE - PUBG Duo Dominance Viss w/ Spartakus
67.5K6 -
10:15:14
MDGgamin
13 hours ago🔴LIVE-Escape From Tarkov - 1st Saturday of 2025!!!! - #RumbleTakeover
56.6K2 -
3:54:19
SpartakusLIVE
9 hours agoPUBG Duos w/ Viss || Tactical Strategy & HARDCORE Gameplay
69.5K1 -
5:54:54
FRENCHY4185
10 hours agoFRENCHY'S BIRTHDAY BASH !!! THE BIG 40 !!!
79.4K3 -
1:23:33
Michael Franzese
18 hours agoThings to look forward to in 2025
97.3K47 -
3:23:02
I_Came_With_Fire_Podcast
19 hours agoDefeating VICTIMHOOD: Advocacy, Resiliency, and Overcoming Abuse
103K19 -
2:00:56
Game On!
1 day ago $10.35 earnedNFL Experts debate if Joe Burrow will make HISTORY in Week 18!
117K16