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

42 lines
3.0 KiB
Plaintext

[video output=day062 member=cmuratori stream_platform=twitch stream_username=handmade_hero project=code title="Basic Moving Projectiles" vod_platform=youtube id=F7feQINaRnk annotator=Miblo annotator=schme annotator=wheatdog]
[0:32][Announce that we will save blackboard.art into handmade/misc/]
[2:41][Recap]
[4:10][handmade.cpp: Make the sword actually be thrown]
[6:02][Talk about the annoying and ugly entity usage]
[8:05][Back to implementing sword throwing]
[9:27][handmade.cpp: UpdateSword]
[11:00][For now only, turn off collision detection if the entity doesn't collide]
[11:50][Run the game and find out the sword is slowing down]
[12:13][Pull out move notions into move_spec and introduce DefaultMoveSpec]
[19:20][Run the game and see the slow sword]
[19:35][Speed up the sword and make sure the sword can only travel certain distances]
[25:29][Run the game and hit the assertion]
[27:54][An assumption of why we hit this assertion]
[30:29][Use a hacky way to solve this problem]
[31:46][Try to handle this problem more sanely]
[35:56][Run the game and find a strange bug with the sword's velocity being set to zero]
[36:20][Start debugging]
[54:59][Realize that the bug is caused by the hacky code Casey just wrote]
[56:11][Run the game and do some hookshot things]
[56:51][Explain how these hookshot things happen]
[1:00:24][Q&A][:speech]
[1:01:01][@boondoggle42][Owl of SHAME!!!]
[1:01:40][@senjai][Do you ever use gdb?]
[1:01:46][@senjai][Do you test more than just using asserts?]
[1:01:57][@plainflavored][Why did you create a struct for each vector type, instead of using plain float arrays?]
[1:04:24][@deepmist][Do you think version control would help when you go off on a tangent for the stream? You can roll back hacks like that?]
[1:04:45][@ttbjm][Not a question but that hookshot thing actually looked like it would be kinda fun to play with]
[1:05:11][Reminder: Bendable shot which allows you to change direction of the shot once]
[1:05:29][@plainflavored][What are your feelings on the vector multiply operator performing a dot product?]
[1:06:37][@hanz_mantis][Do you keep your assertions for release code? If not, at what point do you remove them?]
[1:07:00][@dsasilentsound][Why wouldn't you encapsulate each entity type into its separate classes?]
[1:08:21][@tomforsyth][Correct, they use hadamard]
[1:08:46][@mvargasmoran][Did you add the quick-calc hotkey?]
[1:10:33][@vornayf][Is XML fair game in this project? It's not a library, but it still might not be handmade enough]
[1:11:47][@xxxefwe][Don't you feel that Low entities have already too much extraneous stuff in them and it would be time soon to split them, and also things like the sword might not need the low part at all?]
[1:13:50][@btngames][What will we do at 3PM PST when this game is finished?]
[1:15:19][@celibdor][Are you happy with the current progress?]
[1:15:59][@xxxefwe][More than memory footprint I was thinking about unwanted side effects, i.e. code that deals with the transfer of properties ends up triggering hard to debug shenanigans with the positioning etc.]
[1:17:13][Wrap it up][:speech]
[/video]