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:45:00
Redacted News
4 hours agoBREAKING! TRUMP TO DECLARE NATIONAL EMERGENCY DECLARATION DEPLOY MILITARY TO SOUTHERN BORDER
116K253 -
52:28
Candace Show Podcast
3 hours agoBeyonce's Mommy Attacks Me On Instagram | Candace Ep 105
77.9K162 -
LIVE
Sarah Westall
2 hours agoPentagon, High Level Gov Officials & their Foot Soldiers are Planning an Insurrection: Millie Weaver
216 watching -
1:18:31
Awaken With JP
5 hours agoAre We Going to Nuclear War? - LIES Ep 66
96.5K60 -
51:55
In The Litter Box w/ Jewels & Catturd
1 day agoTRUMPMANIA | In the Litter Box w/ Jewels & Catturd – Ep. 693 – 11/18/2024
66.8K19 -
LIVE
2 MIKES LIVE
1 hour ago2 MIKES LIVE #144 Deep Dive Monday!
100 watching -
Exploring With Nug
5 hours agoHunderds Of Graves Discovered Behind Mississippi Jail! Community Outraged!
8.33K2 -
1:01:50
The Tom Renz Show
7 hours ago"RFK, MAHA, the DOJ & DC Rats... It's Go Time For Freedom Fighters"
6.02K -
19:30
Josh Pate's College Football Show
3 hours ago $2.14 earnedUGA Beats Tennessee - Josh Pate Rapid Reaction
25.3K -
42:58
Uncommon Sense In Current Times
6 hours ago $0.94 earned"The World Health Organization only wants to work with Nations that are compliant!"
17.9K3