{"id":668,"date":"2010-10-11T20:36:05","date_gmt":"2010-10-12T02:36:05","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=668"},"modified":"2010-10-11T20:36:06","modified_gmt":"2010-10-12T02:36:06","slug":"dynamite-day-12-guards","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2010\/10\/11\/dynamite-day-12-guards\/","title":{"rendered":"Dynamite: Day 12 &#8211; Guards"},"content":{"rendered":"<p>So now I come to needing to make the guards work proper.  Mostly this is a ton of muddling around with arrows and pathfinding.<\/p>\n<p>I think I&#8217;ve got it working adequately.  Maybe.  The trick is to make the level editor work in such a way that it gives designers the most options, basically.  Now a guard can stand still, a guard can walk from A-B, and a guard can walk from A-B-C and have loops between B-C.<\/p>\n<p>Now I&#8217;m just adding in more guard behaviors (dying, running, shooting) which bring the game that much closer to being playable!<\/p>\n<p>One of the tricky things is figuring out what the guard can see.  I&#8217;ve got a pretty fancy bit of code that figures that out for me.  Seems to work well, I hope.<\/p>\n<p>Anyway that&#8217;s all for today.  No new screenshots, nothing visually changed.  Might be a quieter week on the screenshot front until I start switching over to fancier graphics.<\/p>\n<p>Tomorrow I&#8217;ve got to get the guard actually shooting, and add win and lose conditions and tweak the bomb features a bit. <\/p>\n<p>-Phil<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So now I come to needing to make the guards work proper. Mostly this is a ton of muddling around with arrows and pathfinding. I think I&#8217;ve got it working adequately. Maybe. The trick is to make the level editor work in such a way that it gives designers the most options, basically. Now 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":[116],"tags":[],"class_list":["post-668","post","type-post","status-publish","format-standard","hentry","category-dynamite"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=668"}],"version-history":[{"count":1,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/668\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/668\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}