{"id":251,"date":"2013-05-08T23:01:20","date_gmt":"2013-05-09T04:01:20","guid":{"rendered":"http:\/\/www.shockbots.com\/blog\/?p=251"},"modified":"2013-05-10T00:07:23","modified_gmt":"2013-05-10T05:07:23","slug":"floater-extending-classes-walking","status":"publish","type":"post","link":"http:\/\/www.shockbots.com\/blog\/?p=251","title":{"rendered":"Floater, Extending Classes, Walking"},"content":{"rendered":"<p>Mobs now move towards player correctly, but sometimes the chomper doesn&#8217;t attack the player.\u00a0 I am thinking the facing angle got messed up when I converted from a top down to side view.<\/p>\n<p>I was reading about extending classes and thought that would be great to do for my mobs.\u00a0 Each mob type is a class with a bunch of variables that define it&#8217;s HP, attacks, etc.\u00a0 The mobs share many of the same variable values, so I made a mob template class.\u00a0 I then added an init function to the specific mobs to only set the values that are not the same as the template.\u00a0 That makes for a lot less redundant code and the individual mob&#8217;s classes are now much cleaner.<\/p>\n<p>I built a squid like floater mob that will shoot at the player.\u00a0 I finished the shoot animation, but still need to texture the model.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mobs now move towards player correctly, but sometimes the chomper doesn&#8217;t attack the player.\u00a0 I am thinking the facing angle got messed up when I converted from a top down to side view. I was reading about extending classes and thought that would be great to do for my mobs.\u00a0 Each mob type is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-shockbots-2"],"_links":{"self":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/251","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=251"}],"version-history":[{"count":4,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":261,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions\/261"}],"wp:attachment":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}