{"author_name":"Deepflame","cat":"LD #10 - Chain Reaction - 2007","comments":[{"author_name":"saluk","time":"December 16, 2007 3:05 pm","epoch":1197835500,"text":"Yes, A* is the bomb.  I still don&#8217;t really understand *why* it works, and I have implemented it several times.  This game is fun, but for some reason it makes my head hurt <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/>","spam":"N"},{"author_name":"PoV","time":"December 16, 2007 6:51 pm","epoch":1197849060,"text":"If you could upload a screenshot to the site, and put it in your post, that&#8217;d be fantastic.  :).  Only shots that are uploaded to the site in a post show up in the image grid on the final entries page.","spam":"N"}],"epoch":1197831660,"likes":0,"metadata":{"p_key":"75504","p_author":"Deepflame","p_authorkey":"510131","p_urlkey":"111336","p_title":"Mission Accomplished! Or, as Confucius would say, To go beyond is as wrong as to fall short.","p_cat":"LD #10 - Chain Reaction - 2007","p_event":"LD10","p_time":"1197831660","p_likes":"0","p_comments":"2","p_status":"UPD5","us_key":"510131","us_name":"Deepflame","us_username":"Deepflame","event_start":"1197590400","event_key":"88","event_name":"LD10"},"text":"<p>Well, that rounds up the last day for me, and I managed to come up with a pretty neat game if I do say so myself. I&#8217;m quite pleased with it, it&#8217;s been tested by my little sister and she couldn&#8217;t break the final version anymore. (Though she pretty much broke all the previous ones.) And I&#8217;m going to put it up here for everyone to play and enjoy. <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n <p>Today I started out with adding the last elements I needed for gameplay to commence. After I added those (and their graphics) I added a menu and a HUD, as well as the level transition code. Other than that I spend pretty much the entire day creating new levels and debugging. Debugging, debugging and more debugging. The release build used to crash right away when ran, I had to solve that. Release build also had other quirks that needed to be stamped out. I also had a timing bug that sometimes caused everything to explode, instantly winning the level. That has been fixed too!<\/p>\n <p>In the past few hours I mostly made new levels, discovered a new bug and discovered a work-around for it. I worked around it, too lazy\/late to fix it. (You pick the right one.) After that I made my dad play it, but the controls confused him a little. So I added some extra hits and tips on the HUD. (Yay for Confucius quotes!) I am looking forward to seeing who finished the puzzles and who got stuck. (My little sister got up to level 5, someone else I know finished it, discovered a really easy solution to level 5 and helped me make it harder.)<\/p>\n <p>On the whole, I&#8217;m very glad I took part in this LD48 again. It was a good way to break free from playing World of Warcraft all day long, and it actually was nice to do something in C++ again. I had been using C# for the past year mostly, and a little bit of Java on the side. This resulted in some funky pointer things at first, like the 1 GB memory leak I had, or the 3mb\/second one I had as well. I also started out making some newbie mistakes again, funny how you can lose basic control over a language so easily. Luckily, it picked up really quickly, and before I knew it I was in full control over the language and libraries again.<\/p>\n <p>Code-wise, well, if I had turned this in when I was at uni my teachers would probably have died of a stroke. Several. I think I violated a bunch of programming standards again. \ud83d\ude09 The most satisfaction I got was when I got the A* algorithm implemented and working. My game has gas clouds that follow the shortest route to the origin, and to calculate that I needed a pathing algorithm. So I looked up how to do A* and I got it in. Took me about 3 hours to get it to work, and I&#8217;m pleased it did.<\/p>\n <p>Other fancy feats include the omgRecursion of the detonation chain. I don&#8217;t think I ever programmed anything with this much recursion. I have two types of recursion in the chain links, one or two in the A* implementation, and another one with generating the arrows when you want to place the chain links. At some point my brain started to cry over all this recursion, and I managed to confuse myself once or twice. Debugging recursion is not fun I tell you. <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/frownie.png\" alt=\":(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n <p>Anyway, the game can be downloaded at: <a href=\"http:\/\/deepflame.deeplyswitched.com\/ld48-10\/CoA-Final.zip\" title=\"Caves of Ang'Si - Final\">http:\/\/deepflame.deeplyswitched.com\/ld48-10\/CoA-Final.zip<\/a><\/p>\n <p>I hope it will run for you.<\/p>\n <p>Have fun!<\/p>\n <p>&#8211; Deepflame<\/p>\n <p>Screenshot of a level:<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2007\/12\/screen09.jpg\" title=\"Level 5; Or is it?\"><img src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2007\/12\/screen09.thumbnail.jpg\" alt=\"Level 5; Or is it?\" \/><\/a><\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/final\/\" rel=\"tag\">final<\/a><\/p>","time":"December 16th, 2007 2:01 pm","title":"Mission Accomplished! Or, as Confucius would say, To go beyond is as wrong as to fall short."}