{"author_name":"N0_Named_Guy","cat":"LD #27","comments":[],"epoch":1377393540,"likes":0,"metadata":{"p_key":"39657","p_author":"N0_Named_Guy","p_authorkey":"5344","p_urlkey":"75276","p_title":"The guards have a will of their own","p_cat":"LD #27","p_event":"LD27","p_time":"1377393540","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"5344","us_name":"N0_Named_Guy","us_username":"n0_named_guy","event_start":"1377216000","event_key":"18","event_name":"LD27"},"text":"<p>Yep. That&#8217;s right. I think this is the very first game I&#8217;ve implemented &#8220;AI&#8221;, without it being totally dumb.<br \/>\n So here&#8217;s how I program the AI for my guards:<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/2013-08-25-041232_2646x1024_scrot.png\"><img class=\"aligncenter size-large wp-image-280791\" alt=\"2013-08-25-041232_2646x1024_scrot\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/2013-08-25-041232_2646x1024_scrot.png\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/2013-08-25-041232_2646x1024_scrot-300x211.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/2013-08-25-041232_2646x1024_scrot-550x386.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/2013-08-25-041232_2646x1024_scrot.png 641w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n <p>Those arrows and words are instructions for them. So for instance, if a guard stands on a tile marked as RAND, he will act randomly (choosing random directions, for random distances). If he stands on an arrow, he will move to the direction pointed by the arrow.<\/p>\n <p>This way I&#8217;ll be able to control how guards react, and make better level designs.<\/p>\n <p>A new version is up, at the same usual place. Go test it, and give me that delicious feedback of yours. (The QR code is clickable).<\/p>\n <div style=\"width: 160px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/bit.ly\/the_thief\"><img alt=\"http:\/\/bit.ly\/the_thief\" src=\"http:\/\/bit.ly\/the_thief.qrcode\" width=\"150\" height=\"150\" \/><\/a><p class=\"wp-caption-text\">http:\/\/bit.ly\/the_thief<\/p><\/div>","time":"August 24th, 2013 8:19 pm","title":"The guards have a will of their own"}