{"author_name": "hathol", "cat": "LD #29", "comments": [], "epoch": 1398516420, "likes": 0, "metadata": {"p_key": "31923", "p_author": "hathol", "p_authorkey": "35002", "p_urlkey": "67422", "p_title": "Pathfinding done (for now)", "p_cat": "LD #29", "p_event": "LD29", "p_time": "1398516420", "p_likes": "0", "p_comments": "0", "p_status": "UPD5", "us_key": "35002", "us_name": "hathol", "us_username": "hathol", "event_start": "1398384000", "event_key": "22", "event_name": "LD29"}, "text": "<p>So my initial pathfinding implementation is done. It&#8217;s basically a simple node graph with a very unoptimized A* implementation.<br />\n I was pretty annoyed by how long it took me to write the A*, but hey, it&#8217;s been a while since I wrote a pathfinder by myself.</p>\n <p>The node graph is just manually placed nodes, nothing fancy there. The reason why I didn&#8217;t go with an algorithmic solution for node placement was mainly performance and time constraints. This way I can reduce the number of nodes to the bare minimum and placing so few nodes manually was still faster than doing it in code. It also means I have full control over node placement, so I can hopefully do some more fancy stuff like bridges and tunnels in a later iteration of the level map.</p>\n <p>Now it&#8217;s on to the AI. Once I&#8217;ve got the basic behaviour down I&#8217;ll refactor things a bit and implement the AI as a proper state machine so it&#8217;s easier to expand the abilities.</p>\n <p>I&#8217;m slightly behind my schedule, but so far I&#8217;m not worried. I&#8217;m pretty sure I can get pretty much all of the initial gameplay done by early tomorrow morning, then get a few hours of sleep and spend all of tomorrow on Sound and Art. Hopefully the very core mechanics will be done by around 6pm so I can get a bunch of testers to try things out.</p>\n <p><a href=\"http://www.ludumdare.com/compo/wp-content/uploads/2014/04/pathfinding.png\"><img class=\"alignnone size-medium wp-image-345495\" src=\"http://www.ludumdare.com/compo/wp-content/uploads/2014/04/pathfinding-300x244.png\" alt=\"pathfinding\" width=\"300\" height=\"244\" srcset=\"http://ludumdare.com/compo/wp-content/uploads/2014/04/pathfinding-300x244.png 300w, http://ludumdare.com/compo/wp-content/uploads/2014/04/pathfinding-550x448.png 550w\" sizes=\"(max-width: 300px) 100vw, 300px\" /></a></p>\n <p>Alex Out</p>", "time": "April 26th, 2014 7:47 am", "title": "Pathfinding done (for now)"}