{"assets":[],"author_link":"author\/karai17\/","author_name":"Karai17","cat":"LD #35","categories":["LD #35"],"comments":[],"epoch":1460871180,"event":"LD35","likes":5,"metadata":{"p_key":"83429","p_author":"Karai17","p_authorkey":"0","p_urlkey":"294167","p_title":"End of Day 2","p_cat":"LD #35","p_event":"LD35","p_time":"1460871180","p_likes":"5","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1460678400","event_key":"33","event_name":"LD35"},"source_url":"2016\/04\/17\/end-of-day-2-20\/","text":"<p>In my <a href=\"http:\/\/ludumdare.com\/compo\/2016\/04\/16\/end-of-day-1-87\/\">last post<\/a>, I discussed that we had a lot of issues starting up, but still managed to make progress. Today we (<a href=\"https:\/\/twitter.com\/shakesoda\" target=\"_blank\">@shakesoda<\/a> and <a href=\"https:\/\/twitter.com\/landonmanning\" target=\"_blank\">@LandonManning<\/a>) made a HUGE breakthrough and got a lot of stuff working!<\/p>\n<p>After dinking around with collision junk for too long, and not getting anywhere, I decided to scrap my AABB-OBB collision code entirely and switch to Circle-Circle. This happens to be fine since most of our objects are somewhat cylindrical. In our last game(s), Circle-Circle didn\u2019t fully work out for us and was glitchy. We\u2019ve finally perfected it and will be modularizing the code after Ludum Dare so we don\u2019t blow hours on collision again. We\u2019ll hopefully get other sorts of collision working better too, such as AABB-OBB and whatever else is common.<\/p>\n<p>With collision finally working, I went about getting attacking enemies to work while shakesoda whipped up some more assets. With the game transforming from a cube \u201chitting\u201d a cylinder to a character T-posing at a Tree, it really make it feel like we were progressing. Not long after, we even had basic animations to toy with such as a walk cycle and a sword swing. To get a better idea for how to animate running with a sword\u2026 I decided to run down my apartment building\u2019s hallway with a katana. Luckily, it was late at night and no one called the police! We also fixed up the player and enemy stats so that they are taken into account. Low ATK makes your hits do less damage, etc.<\/p>\n<blockquote class=\"imgur-embed-pub\" data-id=\"ZlaTpxA\" lang=\"en\"><p><a href=\"http:\/\/imgur.com\/ZlaTpxA\">View post on imgur.com<\/a><\/p><\/blockquote>\n<p><script async=\"\" charset=\"utf-8\" src=\"\/\/s.imgur.com\/min\/embed.js\"><\/script><\/p>\n<p>\u00a0<\/p>\n<p>Designing the level was a bit interesting. For our last game, we wrote a level exporter for Blender that allows us to link objects into a level.blend file and then export a Lua file with object information. We decided to reuse this and I started plotting random trees all over a plane. It was pretty cool but didn\u2019t quite feel right. Instead, I laid the trees out in a grid and made a few paths and such through them. With a proper grid, we were also able to implement\u2026 path finding!<\/p>\n<p>We want monsters to be able to chase you, and to do that we need path finding. We decided to use A* (A Star) path finding. We had some troubles with the library we were using as we needed to convert between different coordinate systems but after we figured that out, it Just Worked.<\/p>\n<blockquote class=\"imgur-embed-pub\" data-id=\"rnVijxo\" lang=\"en\"><p><a href=\"http:\/\/imgur.com\/rnVijxo\">View post on imgur.com<\/a><\/p><\/blockquote>\n<p><script async=\"\" charset=\"utf-8\" src=\"\/\/s.imgur.com\/min\/embed.js\"><\/script><\/p>\n<p>\u00a0<\/p>\n<p>Finally, we wanted to add a sword swish sound when you attack. Instead of trying to find some crappy sound effect, we decided to make our own. shakesoda grabbed <em>his<\/em> katana and swished it in front of his mic for about a minute, and also recorded about 10 seconds of ambient noise. He sent the files off to me while he tinkered with the path finding and I picked the best swish sound and used his noise profile to eliminate the background noise leaving a very clean sound effect.<\/p>\n<p>Tomorrow we will be adding more enemies, getting dynamic path finding to work so the enemies actually chase you, enemies fighting back, and hopefully our \u201cshapeshifting\u201d mechanic will be implemented too. We also want to get all of our story elements such as voice acting done tomorrow so we don\u2019t need to panic near the end trying to source the assistance of other folks as a deadline looms uncomfortably close.<\/p>\n<p>If you want to check out our dev progress, you can catch us on <a href=\"https:\/\/twitch.tv\/karai17\" target=\"_blank\">Twitch<\/a>!<\/p>","time":"April 17th, 2016 5:33 am","title":"End of Day 2","title_was_empty":false}