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.
-
4:27:46
Nerdrotic
7 hours ago $31.93 earnedDaredevil Born Again REVIEW, Harry Potter Show DOA, DC HACKED! | Friday Night Tights 344 Paul Chato
95.5K29 -
1:15:15
Glenn Greenwald
3 hours agoWeek in Review: Lee Fang and Leighton Woodhouse on Ukraine War and NYT Piece Revealing Tensions within Trump Admin; PLUS: Lee Fang Takes Audience Questions on DOGE and Big Tech | SYSTEM UPDATE #420
41K35 -
1:03:30
Sarah Westall
6 hours agoMassive Government Overhaul: FBI, CIA, IRS and more to be Gutted w/ Sam Anthony
53.3K13 -
1:07:40
IsaacButterfield
6 hours ago $1.35 earnedAustralia Under Attack | Trump's State of the Union | All LGBTQ Cast (W Guest Frenchy)
17.6K -
1:23:37
Edge of Wonder
6 hours agoIs Your Car Collecting Your Biodata? Whistleblower Exposes Dark Agenda
21.5K2 -
2:08:50
Quite Frankly
8 hours ago"News Round-Up, Celebrity Stories, Friday Extras" ft. J Gulinello 3/7/25
27.9K5 -
55:49
LFA TV
1 day agoGermany Started Two World Wars and Now Wants Nuclear Weapons | TRUMPET DAILY 3.7.25 7PM
26.8K24 -
1:34:38
2 MIKES LIVE
4 hours ago2 MIKES LIVE #189 Open Mike Friday (Sort Of)
20.6K -
1:48:14
Right Side Broadcasting Network
12 hours agoLIVE REPLAY: President Trump Delivers Remarks at The White House Digital Assets Summit - 3/7/25
142K42 -
2:07:17
The Quartering
10 hours agoTrump Goes Ballistic On Russia & Ukraine Gets Results, Democrat Cringe, FBI Arrests Military Men
140K78