Premium Only Content
No Game Engine Game Dev: Word Sleuth 020: Fallout from transform updates, start batch texture quads
Streamed on 2024-07-24 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Yesterday's changes for the new transform stuff led to several points of refactoring. I made the Affine base class take ownership of rectangles, updated all of the "contains point" testing, and nothing Affine related affects the vertex buffer unless implemented that way by a child class. I also finally looked up how to pronounce Affine, so that was my learning for the day.
This refactor had everything looking pretty good. There are still some loose ends to tackle, but everything is rendering fine. At the end of the day we even scaled and rotated a spin box to prove that everything was right in the world and it was.
Then I saw the change level animations and was sad. After some debugging, we found that Rect was using int and a small incremental animation like we were attempting was accumulating a lot of error when the float was being truncated. We changed Rect to use floats and all was well with the world once more. It actually raises the question of how this animation ever worked before now!
At long last I had some time to tackle some low-hanging fruit: I put our test code into a Sandbox scene, cleaned up the About scene, and added an empty Highscores scene for later use.
With all that out of the way, it was time to start implementing batched texture quads. We copy/pasted our way through the first pass and got textures to show up on the screen in our Sandbox. Lots of work still to be done here, but we have a fulcrum to lever against now.
-
1:00:41
Glenn Greenwald
5 hours agoEXCLUSIVE: Succession Actress & Podcast Host Dasha Nekrasova Speaks Out About Hollywood Cancellation Over Fuentes Interview | SYSTEM UPDATE #549
86.8K45 -
31:27
Robbi On The Record
6 hours agoAstrology VS God: The Conversation Culture Has Been Avoiding | ft. JT Follows JC
1172 -
LIVE
SpartakusLIVE
2 hours agoTexas FARMBOY turned WZ PRO turned REDSEC HERO turned ARC LOOT GOBLIN
303 watching -
58:40
Donald Trump Jr.
4 hours agoCan California be Golden Again? Interview with Gubernatorial Candidate Steve Hilton | TRIGGERED Ep.293
84.3K59 -
LIVE
AirCondaTv Gaming
6 hours ago $0.71 earnedBattlefield 6: Burn Baby Burn. Like a Raging Inferno
89 watching -
1:06:20
BonginoReport
4 hours agoTrump, Vance “SNUBBED” by Never-Trumper Cheneys - Nightly Scroll w/ Hayley Caronia (Ep.182)
56.2K28 -
3:35:57
SlantRock
4 hours ago $0.46 earnedBATTLEFIELD REDSEC/ MAYBE ARC RAIDERS AFTER
8.77K -
LIVE
Astral Doge Plays!
2 hours agoHyrule Warriors: Age of Imprisonment ~LIVE!~ Ganondorf Is a Jerk
52 watching -
1:25:13
Kim Iversen
4 hours agoMKUltra Victims Are SUING — The CIA's Darkest Secret EXPOSED
98.9K56 -
LIVE
GritsGG
6 hours ago#1 Most Warzone Wins 4015+!
48 watching