{"author_name":"hi-scor.es","cat":"LD #24","comments":[],"epoch":1345938060,"likes":1,"metadata":{"p_key":"52971","p_author":"hi-scor.es","p_authorkey":"12602","p_urlkey":"88673","p_title":"","p_cat":"LD #24","p_event":"LD24","p_time":"1345938060","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"12602","us_name":"hi-scor.es","us_username":"hi-scor-es","event_start":"1345766400","event_key":"12","event_name":"LD24"},"text":"<p>With one day down and a late night and sleep-day left to go, let&#8217;s look at the big board:<\/p>\n <ul>\n <li><del datetime=\"2012-08-26T01:25:21+00:00\">Attach bodies to other bodies<\/del><\/li>\n <li><del datetime=\"2012-08-26T01:25:21+00:00\">Collision detection<\/del><\/li>\n <li>Enemy ship generation<\/li>\n <li>Cross-breeding &amp; GA<\/li>\n <\/ul>\n <p>Not bad!<br \/>\n I&#8217;m really hoping to get the ship generation &amp; some basic AI going before I go to sleep. Some basic cross-breed would be awesome, but I don&#8217;t think it will happen.<\/p>\n <p>Since I&#8217;m using hexes and drawing my pieces, this game has been a lot more math-intensive than the last one which was grid based. Feels pretty good to get back into things. Putting the pieces together so that they match up was surprisingly easy, just a lot of paper scribbling and degrees to radians translating. Hexes and equilateral triangles are amazing.<\/p>\n <p>Collision-detection was made easier by the engine&#8217;s built in space-hashing, though modelspace\/viewspace bit me in the ass for a bit. Today I got stuck for a while on determining the size and position of the bounding rectangle (you can see them in the screen shot). The tricky thing is that hexes can be attached to the base hex body. Some of the time recursion works out really well, but not for the bounding boxes. I ended up calculating the bounding rect in model space, then translating based on the position that the slave hex is attached to the master hex and then unioning a master hex and its slave hex&#8217;s rects. Whew!<br \/>\n <a href=\"http:\/\/www.ludumdare.com\/compo\/2012\/08\/25\/167947\/screen-shot-2012-08-25-at-9-40-53-pm\/\" rel=\"attachment wp-att-167961\"><img class=\"alignnone size-medium wp-image-167961\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2012\/08\/Screen-Shot-2012-08-25-at-9.40.53-PM-253x300.png\" alt=\"\" width=\"253\" height=\"300\" \/><\/a><br \/>\n So up next is enemy creation &amp; some basic AI. After that I may have something actually playable.<\/p>","time":"August 25th, 2012 6:41 pm","title":""}