{"assets":[],"author_link":"author\/nosfer\/","author_name":"nosfer","cat":"LD #31","categories":["LD #31"],"comments":[],"epoch":1418820540,"event":"LD31","likes":9,"metadata":{"p_key":"82549","p_author":"nosfer","p_authorkey":"0","p_urlkey":"293281","p_title":"B.Y.E. post mortem","p_cat":"LD #31","p_event":"LD31","p_time":"1418820540","p_likes":"9","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1417737600","event_key":"26","event_name":"LD31"},"source_url":"2014\/12\/17\/b-y-e-post-mortem\/","text":"<p><strong>Intro<\/strong><\/p>\n<p>This is my third or fourth Ludum Dare I\u2019m in. For this jam I decided to test my idea of terrain destruction to be done in Unity because I wanted to use it to port my old game I\u2019ve been making with other guys for <a href=\"http:\/\/archive.globalgamejam.org\/2012\/panzer-sushi-knight\">Global Game Jam 2012<\/a>. It was the first time when I heard of game Liero and we used similar targeting and ninja rope from it. I never quite got time to port the game (we wanted to publish it on mobiles) so my idea to create destructible terrain was quietly developing in my brain :).<br\/>\nFor this Ludum Dare I decided to make 2-4 player deathmatch game on single screen inspired by Super Mario Smash Bros I played recently, use destructible terrain with a lot of shooting because everyone loves <del datetime=\"2014-12-17T17:00:09+00:00\">shooting<\/del> action, right? :). Also I thought that this shouldn\u2019t be rocket science to do because I didn\u2019t have whole 48 hours to spare <img alt=\":(\" class=\"wp-smiley\" src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/frownie.png\" style=\"height: 1em; max-height: 1em;\"\/> (I got comics workshop in that time, trainings etc. etc.)<\/p>\n<p><strong>What went right<\/strong><\/p>\n<p>Terrain generation, destruction and reconstruction! For my idea I used Unity built in 3D Terrains but viewed them top down with a crossed plane in the middle:<\/p>\n<p><a href=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/ok8sxd.jpg\"><img alt=\"ok8sxd\" class=\"size-medium wp-image-428272 aligncenter\" height=\"188\" src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/ok8sxd-300x188.jpg\" width=\"300\"\/><\/a><\/p>\n<p>Terrain was generated with Perlin Noise function also available in Unity and collision detection with terrain was already there too. For terrain destruction I wrote my function to update terrain heights so that destroyed terrain would lower itself below plane in the middle. It was tricky to do it because I imagined the game screen and terrain should be looped so It wasn\u2019t very optimized in Compo version. Result of terrain destruction and deconstruction from falling debris:<\/p>\n<p><img alt=\"Terrain destruction\" class=\"aligncenter\" src=\"http:\/\/giant.gfycat.com\/LiveMildAndeancat.gif\"\/><\/p>\n<p>I wanted also to include ninja rope to climb but I ended with simple jetpack because it was easier to implement and because jumping wasn\u2019t working so good (Physics for platforming doesn\u2019t always work very well), jetpack replaced need for jumping :).<br\/>\nFinally I\u2019ve added shooting with bazooka and machine gun and second player which resulted in compo version.<\/p>\n<p><strong>What went bad<\/strong><\/p>\n<p>I haven\u2019t got enough time to make proper player avatars so there were only spheres in compo version. I haven\u2019t got time to implement all sounds I wanted and add more weapons, weapons switching etc.<br\/>\nCompo version is not very optimized because terrain destruction modifies whole terrain. Collisions are not very good so when player avatars are close to each other they don\u2019t hit themselves.<br\/>\nAnd most important thing \u2013 I haven\u2019t got time to make any title screen :).<\/p>\n<p><strong>Now?<\/strong><\/p>\n<p>I liked the idea of terrain destruction and oldschool hot seat fun multiplayer shooting so much I decided to make more proper post-compo version.<br\/>\nFirst thing I started with was creating avatar for players. Again I got crazy idea that I wanted to realize, use plasticine to make model in T-pose, scan it to computer and then animate it! My girlfriend Paulina made fun plasticine model of a soldier with jetpack, then I used Android mobile app Autodesk 1-2-3DCatch to make series of photos of this model, this was sent to the cloud by app and in a couple of minutes I got nearly complete 3D model. You can see some photos and model on Autodesk page here: <a href=\"http:\/\/www.123dapp.com\/catch\/soldier-from-plastocine\/3192564\">click click<\/a><\/p>\n<p><img alt=\"Plasticine model\" class=\"aligncenter\" src=\"http:\/\/sherpapreview-standard.s3-website-us-east-1.amazonaws.com\/Preview\/2014\/12\/09__21_43_45\/Image_6.jpg739ae316-7fec-11e4-9f29-22000b53800cLarge.jpg\"\/><\/p>\n<p>I downloaded .obj files with textures and using Blender I removed all background stuff, stitched all gaps, made some other errors (never use \u201cRemove doubles\u201d on model with defined texture UVs! \u2013 use Decimate modifier!), fixed T-pose, rigged model and started to make walking animation.<\/p>\n<p><img alt=\"Rigged walking model\" class=\"aligncenter\" src=\"http:\/\/fat.gfycat.com\/TemptingBigAmericanbulldog.gif\"\/><\/p>\n<p>After that Paulina made plasticine models for weapons, they were tiny so I modeled them myself in Blender. Only used photo as reference:<\/p>\n<p><a href=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/bronie.png\"><img alt=\"bronie\" class=\"size-full wp-image-428290 aligncenter\" height=\"132\" src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/bronie.png\" width=\"256\"\/><\/a><\/p>\n<p>Next I made model animations with character moving hands+head up and down and simultaneously weapon rotation animations so they could be blended with character walking animation. At first it didn\u2019t work because animations were on a single action timeline and Unity wasn\u2019t blending them. I needed to separate them to different action and then put them again on a single NLA Strip o_O. After that and some coding for animation blending it started to work:<\/p>\n<p><img alt=\"Walking and shooting blended!\" class=\"aligncenter\" src=\"http:\/\/giant.gfycat.com\/GorgeousGenerousAmericankestrel.gif\"\/><\/p>\n<p>Then I fixed bullets origin on the end of weapon, added extra weapons to already implemented uzi and bazooka: shotgun, pistol and grenade launcher. Next I added blood particles:<\/p>\n<p><img alt=\"Blood particles\" class=\"aligncenter\" src=\"http:\/\/giant.gfycat.com\/IdolizedAdorableAsiaticgreaterfreshwaterclam.gif\"\/><\/p>\n<p>I played a little bit with Unity ragdolls to test if they would work with my model and \u2026 it worked great as you can see from this test:<\/p>\n<p><img alt=\"Ragdoll test\" class=\"aligncenter\" src=\"http:\/\/fat.gfycat.com\/CreepyAnnualKilldeer.gif\"\/><\/p>\n<p>Paulina made me really great logo for game\u2019s title screen and finally I got permission to use two music tracks for title and in-game from DADi ( <a href=\"https:\/\/soundcloud.com\/mcdadi\">soundcloud<\/a> , <a href=\"https:\/\/www.facebook.com\/1dadi?fref=ts\u200b\">Facebook page<\/a> ) \u2013 once again BIG thanks! They fit nicely to the game I think.<\/p>\n<p>You can watch results here:<br\/>\n<iframe allowfullscreen=\"\" frameborder=\"0\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/oLDKNhRJV4Q?feature=oembed\" width=\"500\"><\/iframe><\/p>\n<p><strong>Future!<\/strong><\/p>\n<p>Post compo version is available for all of you to play and have fun with it. If there will be interest I will be more than happy to develop it further. Among many things game needs some more optimizations, computer opponents and maybe online modes.<\/p>\n<p>I\u2019m waiting for all suggestions, comments etc.<\/p>\n<p><a href=\"http:\/\/ludumdare.com\/compo\/ludum-dare-31\/?action=preview&amp;uid=8471\">Game entry page<\/a><br\/>\n<a href=\"http:\/\/nosferathoo.itch.io\/beautiful-yoga-explosion\">Post compo downloadable version (free or small fee if you like)<\/a><br\/>\n<a href=\"http:\/\/gamejolt.com\/games\/arcade\/beautiful-yoga-explosion\/42094\/\">Browser version<\/a><\/p>\n<p>Thank you all and I\u2019m back to playing all those fantastic games you all created <img alt=\":)\" class=\"wp-smiley\" src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" style=\"height: 1em; max-height: 1em;\"\/><\/p>\n<p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/post-mortem\/\" rel=\"tag\">post-mortem<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/postmortem\/\" rel=\"tag\">postmortem<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/unity\/\" rel=\"tag\">unity<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/unity3d\/\" rel=\"tag\">unity3d<\/a><\/p>","time":"December 17th, 2014 12:49 pm","title":"B.Y.E. post mortem","title_was_empty":false}