{"id":57,"date":"2013-01-31T22:50:59","date_gmt":"2013-02-01T04:50:59","guid":{"rendered":"http:\/\/www.shockbots.com\/blog\/?p=57"},"modified":"2013-02-01T22:00:09","modified_gmt":"2013-02-02T04:00:09","slug":"2012-01-31-health-bar","status":"publish","type":"post","link":"http:\/\/www.shockbots.com\/blog\/?p=57","title":{"rendered":"2012-01-31 Health Bar"},"content":{"rendered":"<p>I implemented a weapon heat buildup system, where continual firing can overheat the gun.\u00a0 Each gun has different rates of fire and max heat tolerances.\u00a0 My wife and and I took our daughter to get her well-check and then eat lunch &#8211; so I didn&#8217;t get a lot done.\u00a0 Later in the day I got a heat buildup bar working that lengthens and gets redder the hotter the gun is.\u00a0 I added wall collision for mobs to prevent them from getting stuck in walls now that they have turn radii.<\/p>\n<p>I got 2 mob attacks in. If a melee mob that is facing the player collides with the player it attacks.\u00a0 I think I need to change it from collision to distance check.\u00a0 I also got the boomer attack working.\u00a0 It has a trigger radius and will detonate if the player gets too close.\u00a0 It also loops through all mobs and deals damage to them based on distance.\u00a0 Right now the explosion VFX is underwhelming so it&#8217;s not obvious why they are exploding.\u00a0 I might need to shade the boomer red as it gets closer to the player?\u00a0 I added a debug health text field in the corner.\u00a0 I was having a strange bug when the mouse pointer went over the text &#8211; the reticule would fly off.\u00a0 Turns out I had to disable text interaction on the text field.<\/p>\n<p>I was using the same reticule from my last game, but found it hard to target enemies, so I changed it to more of a floating cross hairs.\u00a0 I also changed the camera from an isometric view to more of a head on view.\u00a0 I think it showcases the environment better.\u00a0 I added a small dot in the UI to the reticule so even when it&#8217;s obscured with the environment or mobs, you can still see that dot.<\/p>\n<p>Calling it an early night to get some rest &#8211; it&#8217;s only 11PM.\u00a0 Take a look at the latest video:<\/p>\n<p><a href=\"http:\/\/www.shockbots.com\/blog\/wp-content\/uploads\/2013\/01\/Shockbots_2013.01.31.mov\">Shockbots_2013.01.31<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I implemented a weapon heat buildup system, where continual firing can overheat the gun.\u00a0 Each gun has different rates of fire and max heat tolerances.\u00a0 My wife and and I took our daughter to get her well-check and then eat lunch &#8211; so I didn&#8217;t get a lot done.\u00a0 Later in the day I got [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":5,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":65,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/65"}],"wp:attachment":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}