{"id":67,"date":"2013-02-02T22:14:05","date_gmt":"2013-02-03T04:14:05","guid":{"rendered":"http:\/\/www.shockbots.com\/blog\/?p=67"},"modified":"2013-02-24T20:21:01","modified_gmt":"2013-02-25T02:21:01","slug":"2013-02-02-bouncing-bullets","status":"publish","type":"post","link":"http:\/\/www.shockbots.com\/blog\/?p=67","title":{"rendered":"2013-02-02 Bouncing Bullets"},"content":{"rendered":"<p>Today I changed the player&#8217;s projectile code to support mobs firing as well, so the Spider Shooters now shoot.\u00a0 I added bouncing bullets and a power up that grants the player that ability.\u00a0 The reflection code for bouncing was a bit tricky math wise, but otherwise not too bad.\u00a0 The thing that&#8217;s got me stumped is how to categorize a weapon vs. a power-up.\u00a0 There are a bunch of properties like fire rate, explosive rounds, etc.\u00a0 I am leaning towards a weapon controlling rate and number of rounds fired and the power-up controlling the rounds themselves.\u00a0 So three-way and rapid would be weapon types and explosive and bouncing would be shot types.\u00a0 Still need a few more types &#8211; and I&#8217;d like players to have several power ups at one time.<\/p>\n<p>Here&#8217;s the latest video:<\/p>\n<p><a href=\"http:\/\/www.shockbots.com\/blog\/wp-content\/uploads\/2013\/02\/Shockbots_2013.02.02.mov\">Shockbots_2013.02.02<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I changed the player&#8217;s projectile code to support mobs firing as well, so the Spider Shooters now shoot.\u00a0 I added bouncing bullets and a power up that grants the player that ability.\u00a0 The reflection code for bouncing was a bit tricky math wise, but otherwise not too bad.\u00a0 The thing that&#8217;s got me stumped [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-shockbots-1","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/67","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=67"}],"version-history":[{"count":3,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":181,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions\/181"}],"wp:attachment":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}