{"author_name":"Milo","cat":"LD #22","comments":[],"epoch":1324141380,"likes":2,"metadata":{"p_key":"61534","p_author":"Milo","p_authorkey":"2934","p_urlkey":"97299","p_title":"Status Report: Dwarves with X-Ray Vision","p_cat":"LD #22","p_event":"LD22","p_time":"1324141380","p_likes":"2","p_comments":"0","p_status":"UPD5","us_key":"2934","us_name":"Milo","us_username":"milo","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>So, I&#8217;ve got a sketch of the basic dwarf mechanics. They are very greedy. And, in fact, that part works perfectly! Those dwarves will run towards gold they <em>can&#8217;t even see!<\/em> That&#8217;s not really supposed to happen. It&#8217;s made worse by the fact that they might be able to see another dwarf through the walls, and explode.<\/p>\n <p>Currently, what I have looks as follows. The red square is a dwarf, black squares cannot be mined, the dark gray squares are already mined. The brightest two squares to the left are unmined shinies. The sight of a dwarf is shown as the highlighted mined squares.<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/Sight.png\"><img class=\"aligncenter size-large wp-image-91533\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/Sight-550x431.png\" alt=\"\" width=\"550\" height=\"431\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/Sight-300x235.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/Sight-550x431.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/Sight.png 640w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n <p>Well, seeing through the hardest material in game which can&#8217;t ever be mined is probably not a good thing. It sort of seems like it&#8217;s only taking the sight radius into account. The game mechanic just&#8230; doesn&#8217;t work without the sight algorithm working.<\/p>\n <p>Other than that (which, thanks to the fact that my code is&#8230; &#8220;neat&#8221; is easily replaced. I just don&#8217;t have a replacement), things are going pretty well. I&#8217;ve got a pathfinding algorithm that works (it&#8217;s just A*), and I&#8217;ve got the dwarf movement code working (well&#8230; as long as the sight algorithm works).<\/p>\n <p><strong>What&#8217;s left for today:<\/strong><\/p>\n <ul>\n <li>Fix the sight algorithm. It&#8217;s <em>really<\/em>\u00a0important.<\/li>\n <li>Allow the player to place stuff.<\/li>\n <li>Make the stuff players place do bad things to the dwarves.<\/li>\n <li>Implement a money &amp; score system.<\/li>\n <li>Make a help screen!<\/li>\n <\/ul>\n <div>And then, tomorrow, I&#8217;m working on assets, although I might not have as much time as I want.<\/div>","time":"December 17th, 2011 12:03 pm","title":"Status Report: Dwarves with X-Ray Vision"}