Premium Only Content
No Game Engine Game Dev: Word Sleuth 033: Doc cleanup, animation bugs, and start removing containers
Streamed on 2024-08-19 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
For a Monday warmup I started out by cleaning up my documentation a bit. I have changed my style a bit and had statistics data in the Journal that I don't need to keep any more. Now things are nice and consistent across all entries.
With that out of the way we started looking at two animation bugs. The first one was an issue where starting another animation before the first animation was done would result in the incomplete states from the first animation being copied into the state of the second animation. We fixed that and added some capability to have what I call "Free Animations" which are owned and their lifetimes are managed entirely by the Scheduler. This allowed me to start one part of the animation and forget about it in a way that let me separate the other part of the animation into a slightly different treatment.
The second animation bug wasn't really a bug. It just felt like a bug. Slowing down the animation it became clear that it was doing what it was told, which just looked discontinuous, with motion seeming to pop. With a little delay at the top, the animation looked much more natural.
And then we started on a refactor task: anywhere we find std::containers is ripe for an update. I usually use std::containers when I'm being lazy. In most cases I can refactor to not use them. We got through the Font treatment: we no longer look up Fonts by name, but by generated enumeration which is just as readable, faster, and simplifies an std::unordered_set into a single static array lookup. We'll be updating other parts of the code to behave similarly.
-
2:32:42
CAMELOT331
2 days agoCAMELCAST 107 | CECIL SAYS | My Last Stream? Being Kicked Off Youtube
1.78K2 -
1:16:28
Man in America
15 hours agoThe Study They Tried to BURY: Covid Shots Cause MASSIVE Spike in Cancer w/ Dr. Makis
171K41 -
2:07:43
Inverted World Live
8 hours agoNASA Finds Strange Rock on Mars w/ Cody Dennison | Ep. 145
95.4K5 -
3:29:04
TimcastIRL
7 hours agoTrump Calls For DEATH Of Democrats For Sedition, White House WALKS IT BACK | Timcast IRL
244K138 -
24:13
Jasmin Laine
12 hours agoPoilievre Can’t Stop LAUGHING—Liberals IMPLODE After U.S. Ambassador Calls Them Out
24.6K21 -
4:04:31
SpartakusLIVE
9 hours agoTexas FARMBOY turned WZ PRO turned REDSEC HERO turned ARC LOOT GOBLIN
56.8K -
2:34:18
Mally_Mouse
5 days ago🎮 Throwback Thursday! Let's Play: Kingdom Hearts 1 pt. 4
43.6K6 -
25:14
Stephen Gardner
7 hours agoCLINTONS PANIC AS ARREST CALLS EXPLODE – Scott Jennings GOES OFF! 😱
54.3K31 -
2:14:15
DLDAfterDark
6 hours ago $5.79 earnedThe AR15 BurnDown That Will Leave You Speechless!
33.9K1 -
1:48:12
megimu32
6 hours agoON THE SUBJECT: Throwback Thursday | Wheel of Nostalgia Chaos!
43.8K9