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.
-
36:22
Brad Owen Poker
5 hours agoGIGANTIC $17,000+ Pot In BOBBY’S ROOM! TRAPPING Top Pro w/FULL HOUSE!! Big Win! Poker Vlog Ep 326
15.8K -
3:53
NAG Daily
22 hours agoRUMBLE RUNDOWN: DREAM HACK SPECIAL W/Greenman Reports
10.5K6 -
1:28
Damon Imani
1 day agoThey Laughed at Trump’s Cognitive Test — Damon Made Them REGRET It!
16.9K9 -
9:14
Freedom Frontline
1 day agoAdam Schiff PANICS As Eric Schmitt Exposes His Dirty Lies LIVE
11.3K9 -
10:32
GBGunsRumble
1 day agoGBGuns Armory Ep 153 Adler Arms AD-9`
8.43K2 -
35:53
Degenerate Plays
4 hours ago $0.23 earnedRuckus Randy And Repair Ronald (Socks On) - Call of Duty: Modern Warfare 2 (2009) : Part 7
5.28K1 -
38:35
Stephen Gardner
1 day ago🔥What JUST leaked out of Congress. PROVES Trump RIGHT!!
97.7K134 -
LIVE
Total Horse Channel
16 hours ago2025 IRCHA Derby & Horse Show - November 2nd
54 watching -
1:59:42
Game On!
22 hours ago $44.98 earnedNFL Week 9 Wise Guy Roundtable BEST BETS!
146K15 -
2:18:53
Badlands Media
1 day agoDevolution Power Hour Ep. 403: Brennan Exposed & The Intel War w/ Thomas Speciale
467K142