cinera_handmade.network/cmuratori/hero/code/code136.hmml

34 lines
2.3 KiB
Plaintext
Raw Normal View History

[video member=cmuratori stream_platform=twitch stream_username=handmade_hero project=code title="Tag-based Asset Retrieval" vod_platform=youtube id=7g79J2aMTUM annotator=Miblo annotator=ChronalDragon]
[0:40][Recap]
[1:22][Casey has an itch][quote 119]
[1:43][Goals for the asset system]
[8:28][Looking at the Hero Bitmaps]
[10:49][Classifying hero parts]
[12:45][Classifying facing directions]
[14:18][Requesting assets by tags]
[20:31][Using BestMatchAsset for the HeroBitmaps]
[25:44][Loading in the hero parts]
[28:44][Tagging hero parts by direction]
[35:13][Revisiting FacingDirection]
[36:37][Blackboard: Supporting different comparison functions]
[41:55][Using the actual facing direction angle]
[45:00][Debugging broken directions]
[49:58][Temporary fix: Shift the domain]
[51:15][Tomorrow's task: Correct periodic handling]
[51:57][Q&A]
[52:16][@abnercoimbre][It's a bit delayed, so bear with us]
[52:54][@robotchocolatedino][Could all tag matching be periodic and then we just make the period really large when we don't want it to wrap?]
[54:02][@abnercoimbre][The hero has separate bitmaps for his sprite. Will this be a recurring thing for other kinds of sprites in the game?]
[54:45][@sir_felolis][From a scale of 1-10 how dumb do you think the Windows API is?]
[55:45][@cubercaleb][For getting the angle you want couldn't you just divide the angle by 45, giving you a number to switch on? You could go a step further and take the modulus of the number of angles you want]
[56:22][@stelar7][Tau is clearly the superior constant. Please remove every instance of Pi in the code!]
[58:55][@sir_felolis][What is your opinion on people who use spaces instead of tabs?]
[59:23][@gasto5][hy did you use A tangent of the angle for determining the asset?]
[59:33][Blackboard: Looking up an art asset]
[1:04:49][@stelar7][How many spaces: 2, 3 or 4?]
[1:05:04][@robotchocolatedino][Will you implement asset loading priority? For example, the player should probably load first so that you're not invisible in the beginning]
[1:05:31][@coolsebz][Would it be a good idea to switch to using Matrices for Rotation (so further down the line it's easier to implement scale and transform)?]
[1:06:40][@cubercaleb][Maybe this is something I missed, but are you using cmath's atan2?]
[1:07:30][Call it]
[/video]