Premium Only Content
No Game Engine Game Dev: Word Sleuth 052: Sprite animation
Streamed on 2024-09-19 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Today we started the last major feature: Sprite animation. There are two paths we could have taken, so of course we took both.
1) An array of textures
2) An array of UV coordinates into a single texture
I started by updating the asset pipeline to handle the sprite sequences a bit better. Once we were able to get all the data we needed from the ImageWarehouse it was time to create the thing itself. It is basically a texture quad, an array of "frames" (either of textures or of UVs), an EggTimer to let us know when to change the image, and in no time at all we had a spinnning coin animation.
There was a step to make things more robust and developer (me) friendly. Then it was on to adding some bells and whistles. At the end of a sequence it can take several actions: Stop (leaving the last image visible), Reset (Stop and show the first image), Repeat (start back over at frame 0) and Reverse (keep going, but count down from the current frame back to 0). On top of that I added a loop counter, so it will keep playing through with an implicit Repeat at the end of each collection of end-of-sequence actions until the loop count is reached.
There are only a couple of loose ends I want to tackle on Monday, then we will move on to the polishing phase.
-
14:05
Sideserf Cake Studio
18 hours ago $10.99 earnedHYPERREALISTIC HAND CAKE GLOW-UP (Old vs. New) 💅
43.7K6 -
28:37
marcushouse
19 hours ago $6.02 earnedSpaceX Just Dropped the Biggest Starship Lander Update in Years! 🤯
18.7K6 -
14:54
The Kevin Trudeau Show Limitless
3 days agoThe Hidden Force Running Your Life
94.7K19 -
2:16:35
DLDAfterDark
6 hours ago $3.67 earnedIs The "SnapPocalypse" A Real Concern? Are You Prepared For SHTF? What Are Some Considerations?
18.5K9 -
19:58
TampaAerialMedia
18 hours ago $6.07 earnedKEY LARGO - Florida Keys Part 1 - Snorkeling, Restaurants,
31.2K17 -
1:23
Memology 101
2 days ago $6.03 earnedFar-left ghoul wants conservatives DEAD, warns Dems to get on board or THEY ARE NEXT
26.1K55 -
3:27:27
SavageJayGatsby
8 hours ago🔥🌶️ Spicy Saturday – BITE Edition! 🌶️🔥
54.4K5 -
26:09
Exploring With Nug
18 hours ago $12.13 earned13 Cold Cases in New Orleans What We Discovered Beneath the Surface!
51.5K20 -
27:39
MYLUNCHBREAK CHANNEL PAGE
13 hours agoDestroying Time.
134K40 -
3:27:19
Mally_Mouse
8 hours ago🌶️ 🥵Spicy BITE Saturday!! 🥵🌶️- Let's Play: Minecraft Christmas Adventure!!
133K9