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.
-
5:32:45
SpartakusLIVE
9 hours agoLIVE from $2 MILLION Ocean-front MANSION
22.8K -
2:11:39
Tundra Tactical
5 hours ago $3.15 earnedLive At 9 pm What Do We Do About This DOJ? Gun Mad Libs, AND MORE On The Worlds Okayest Guns Show
21.4K2 -
1:31:34
RealLunaLopez
5 hours ago $4.62 earnedTTN: E36
21.3K6 -
2:11:19
BlackDiamondGunsandGear
7 hours agoThe DOJ Has abandoned us! / After Hours Armory
29.3K1 -
2:17:46
The Connect: With Johnny Mitchell
10 hours ago $6.18 earnedA Sitdown With The Real Walter White: How An Honest Citizen Became A Synthetic Drug Kingpin
32K -
2:11:19
DLDAfterDark
8 hours ago $3.90 earnedUSA Invasion - Is Trump's DOJ Anti Gun? - The 0$ NFA Tax - What's The Truth?
29.1K1 -
3:15:10
megimu32
8 hours agoOFF THE SUBJECT: Bodycams + Battle Bus Carnage
77.4K2 -
9:22:52
GritsGG
13 hours ago#1 Most Warzone Wins 4105+!
74.4K2 -
35:22
SouthernbelleReacts
1 day ago $2.53 earnedTHE ICONIC THANKSGIVING MOVIE I SHOULD’VE WATCHED SOONER 😳 | Reaction
18.3K2 -
25:38
MYLUNCHBREAK CHANNEL PAGE
18 hours agoTaking Big Ben to Court
164K39