[{"data":1,"prerenderedAt":42},["ShallowReactive",2],{"blog-\u002Fblog\u002Fhealth-bars-and-spin-attacks":3,"blog-neighbors-\u002Fblog\u002Fhealth-bars-and-spin-attacks":35},{"id":4,"title":5,"body":6,"date":25,"description":26,"draft":27,"extension":28,"meta":29,"navigation":30,"path":31,"seo":32,"stem":33,"__hash__":34},"blog\u002Fblog\u002Fhealth-bars-and-spin-attacks.md","Health Bars and Spin Attacks",{"type":7,"value":8,"toc":21},"minimark",[9,13,18],[10,11,12],"p",{},"Over the last few days I've been working on adding more types of attacks into my game. I have to admit, I probably did not choose the easiest combat system for someone who is just starting to get their feet wet in 3D game development; because my game has a sort of \"automated\" attack system where you click on an enemy and the player moves towards and hits it, I have to be careful with prioritizing actions in my code (i.e. when do we move and when do we attack, when does one action trump the other, etc). After a lot of fiddling, I managed to get a spin attack working in my game, as shown in the gif below. I also created a health bar above my enemies' heads. I'm making steady progress on getting satisfying movement and combat, and hopefully soon I'll be able to start crafting the world around the player!",[14,15],"clip",{"alt":16,"src-path":17},"Spin","\u002Fimages\u002Fspin.mp4",[10,19,20],{},"—Josh",{"title":22,"searchDepth":23,"depth":23,"links":24},"",2,[],"2020-07-13","Over the last few days I've been working on adding more types of attacks into my game. I have to admit, I probably did not choose the easiest combat system for someone who is just starting to get their feet wet in 3D…",false,"md",{},true,"\u002Fblog\u002Fhealth-bars-and-spin-attacks",{"title":5,"description":26},"blog\u002Fhealth-bars-and-spin-attacks","u6wqH118s2v_jwv1jvatBt68GmjcXgOlne-mFUJukUs",{"newer":36,"older":39},{"path":37,"title":38},"\u002Fblog\u002Fdatabase-weapons-terrains","Database, Weapons, Terrains",{"path":40,"title":41},"\u002Fblog\u002Fputting-pieces-together-in-unity","Putting Pieces Together in Unity",1789352072500]