{"id":90,"date":"2013-02-08T23:38:51","date_gmt":"2013-02-09T05:38:51","guid":{"rendered":"http:\/\/www.shockbots.com\/blog\/?p=90"},"modified":"2013-02-24T20:20:59","modified_gmt":"2013-02-25T02:20:59","slug":"2013-02-08-random-random-random","status":"publish","type":"post","link":"http:\/\/www.shockbots.com\/blog\/?p=90","title":{"rendered":"2013-02-08 Random Random Random"},"content":{"rendered":"<p>Today I got random loot drops, random map generation, and random player start position working.\u00a0 I added a circle &#8211; line segment collision test to prevent the player and mobs from getting right next to walls and penetrating geometry.\u00a0\u00a0\u00a0 This introduced a problem where a mob might see the player but get caught on a wall corner.\u00a0 I added an unstuck flag so that if a mob sees the player but has been colliding for more than 1\/3 of a second the mob will try to move a random direction to &#8220;unstuck&#8221; himself.\u00a0 I added in 2 different radii &#8211; one for moving collision tests and one for weapon hit tests.\u00a0 That way mobs can collide with walls and each other realistically, while giving the player a larger target to hit.<\/p>\n<p>I added an arrow to doorways that lead to the boss fight &#8211; that way the player knows before going in that they better have geared up.\u00a0 Overall the game feels pretty fun, but just too easy.\u00a0 I need to add more mobs and the boss fight is easy to cheese past if the player hangs out behind a barrier &#8211; so I need to address that.\u00a0 Overall pretty decent progress.\u00a0 I need to add more room types &#8211; just having 3 that the player sees over and over is boring.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I got random loot drops, random map generation, and random player start position working.\u00a0 I added a circle &#8211; line segment collision test to prevent the player and mobs from getting right next to walls and penetrating geometry.\u00a0\u00a0\u00a0 This introduced a problem where a mob might see the player but get caught on 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":[4,1],"tags":[],"class_list":["post-90","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\/90","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=90"}],"version-history":[{"count":3,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":175,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/90\/revisions\/175"}],"wp:attachment":[{"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.shockbots.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}