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.
-
LIVE
FyrBorne
1 hour ago🔴Warzone M&K Sniping: This May Be The Most Broken Update Yet
84 watching -
10:59
Degenerate Jay
15 hours ago $0.64 earned007 First Light Is The James Bond Game Fans Deserve
19K2 -
9:11
Faith Frontline
14 hours agoTucker Carlson SHOCKED As Cliffe Knechtle Reveals God’s Chosen People
6.81K4 -
23:10
Jasmin Laine
16 hours agoCTV Host Visibly UNCOMFORTABLE As Guest Calls Canadians RACIST—Poilievre Leaves Them SPEECHLESS
12K4 -
20:18
Fit'n Fire
16 hours ago $0.29 earned*NEW* CZ P10C OR Ported -- First 500 Rounds
7.32K1 -
14:41
Nate The Lawyer
1 day ago $0.95 earnedWhy Hasn’t Raja Jackson Been Arrested Yet?
9.49K15 -
6:04
Buddy Brown
2 days ago $1.21 earnedEugene’s SICK Newspaper Cover is a WARNING to Us All! | Buddy Brown
10.8K10 -
16:23
Actual Justice Warrior
1 day agoMom Sucker Punched By Repeat Offender In Chicago
17.1K32 -
56:28
Professor Nez
1 day ago🚨Not Only is Epstein NOT Going Away… It Just Got Worse!
28.8K25 -
8:09
MattMorseTV
18 hours ago $11.19 earnedTrump scores 17th CONSECUTIVE Supreme Court VICTORY.
79.5K61