{"author_name":"HoboMechanistic","cat":"LD #30","comments":[],"epoch":1408797840,"likes":0,"metadata":{"p_key":"27959","p_author":"HoboMechanistic","p_authorkey":"38275","p_urlkey":"63406","p_title":"Salvation \u2013 Progress (6 hours in)","p_cat":"LD #30","p_event":"LD30","p_time":"1408797840","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"38275","us_name":"HoboMechanistic","us_username":"hobomechanistic","event_start":"1408665600","event_key":"24","event_name":"LD30"},"text":"<p>Ok, I got a major milestone out of the way I think. So far I have:<\/p>\n <ul>\n <li>Building Panel working<\/li>\n <li>Buildings in the game scene<\/li>\n <li>Backdrop with a particle system (basic but looks neat)<\/li>\n <\/ul>\n <p>So I&#8217;m 6 hours in and I can now select a building from a menu and it&#8217;ll be built in the area I specify. In the screenshot, the red\/green\/blue and yellow boxes are placeholders for building icons. I select one of these bad boys and the corresponding building will be built in the desired location.<\/p>\n <p>Realism is not my friend since I can&#8217;t art very good. And my pixel art skills are terrible so I can&#8217;t do that either. I&#8217;m hoping that by following a Neon-like art style I&#8217;ll be able to hide most of my artisitc failings. I&#8217;m thinking something similar to Hotline Miamis art style. A gamble I guess but I hope it&#8217;ll pay off.<\/p>\n <p>I&#8217;d like to declare here that I made use of Alex&#8217;s space skybox tool to create my stars quickly (see previous post about it, available here http:\/\/alexcpeterson.com\/spacescape).<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2014\/08\/thusfar6hours.png\"><img class=\"alignnone size-medium wp-image-377222\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2014\/08\/thusfar6hours-300x233.png\" alt=\"thusfar6hours\" width=\"300\" height=\"233\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/08\/thusfar6hours-300x233.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/08\/thusfar6hours-550x427.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/08\/thusfar6hours.png 1207w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n <p>My next objective is either to finish off all the buildings and finish my building panel, or start working on the&#8217; Management Class&#8217; which will be dealing with the controller aspects of my game (in terms of a MVC design). I am leaning towards the Management Class at the moment as that is going to be more work I feel. If I get this working for atleast one building, then adding other building objects shouldn&#8217;t be that hard (touch wood).<\/p>\n <p>&#8211; Improvement ideas &#8211;<\/p>\n <p>I&#8217;m not happy about how I build buildings currently. My code instantiates a new building in the same vector as empty building slot I want to use. This empty building slot is a building initself. Meaning that I destroy the building (emptyroom) and then initiate the desired building in its place. This seems pretty memory intensive to me, but for now it&#8217;ll work. The one good thing about this is I can overwrite any building I want now, visually atleast. Regardless of which type of building it is or where I placed it. Example of my current code for placing a new building:<\/p>\n <p>public void spawnBuilding(){<br \/>\n Destroy(killObject); \/\/kill the current gameobject that I get from the buildings class of the building I clicked on<br \/>\n switch (BuildingSelect) { \/\/BuildingSelect is a unique ID<br \/>\n case 1: Instantiate(Building1, tempVec, transform.rotation);<br \/>\n break;<br \/>\n case 2: Instantiate(Building2, tempVec, transform.rotation);<br \/>\n break;<br \/>\n case 3: Instantiate(Building3, tempVec, transform.rotation);<br \/>\n break;<br \/>\n default: Instantiate(Building0, tempVec, transform.rotation);<br \/>\n break;<br \/>\n }<br \/>\n }<\/p>\n <p>Back to it!<\/p>\n <p>Hobo<\/p>","time":"August 23rd, 2014 7:44 am","title":"Salvation \u2013 Progress (6 hours in)"}