Premium Only Content
![No Game Engine Game Dev: Word Sleuth 052: Sprite animation](https://1a-1791.com/video/s8/1/n/i/B/L/niBLt.qR4e-small-No-Game-Engine-Game-Dev-Wor.jpg)
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.
-
19:18
Neil McCoy-Ward
1 day ago🚨 The USAID Scandal Goes Way Deeper Than We Could Have Imagined!
2.53K11 -
14:29
Bearing
8 hours agoTHE BIG BALLS EFFECT - Democrats MELT DOWN Over DOGE & USAID 🔥
3.56K51 -
11:35
China Uncensored
1 day agoChina Nuclear Fusion Breakthrough Shocks The World
3.61K17 -
50:19
AlaskanBallistics
17 hours ago $0.12 earnedI Love This Gun Podcast Episode 6
1.86K -
16:35
DEADBUGsays
1 day agoPolice Stories Ep4
10.6K -
6:15
RTT: Guns & Gear
1 day ago $0.02 earnedSaying Goodbye To A Legend - Demolition Ranch Leaving YouTube
2.4K4 -
1:33:27
Michael Franzese
20 hours agoGovernment STEALING More than the Mob - Elon Musk's Report
45.6K42 -
1:21:15
Tactical Advisor
5 hours agoThe Vault Room Podcast 008 | PSA Changing the Firearms Game and Trump Exposing Government Spending
67.7K20 -
3:09:57
LittleDude games
9 hours agoSaturday Fortnite Hunters // LittleDude
54K10 -
14:34
Misha Petrov
19 hours agoTikTok’s WOKE “Mean Girl” Is Insufferable
72.3K114