{"author_name":"k_wright","cat":"LD #19 - Discovery - 2010","comments":[],"epoch":1292650440,"likes":0,"metadata":{"p_key":"68514","p_author":"k_wright","p_authorkey":"3202","p_urlkey":"104317","p_title":"Progressing","p_cat":"LD #19 - Discovery - 2010","p_event":"LD19","p_time":"1292650440","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"3202","us_name":"k_wright","us_username":"k_wright","event_start":"1292544000","event_key":"5","event_name":"LD19"},"text":"<p>Managed to create a random treasure spawner. It has:<\/p>\n <p>&#8211; An GameObject array to throw in different types of treasure.<\/p>\n <p>&#8211; A public int for changing how many treasures spawn.<\/p>\n <p>&#8211; A public float for changing the min allowed distance between treasures (works good enough)<\/p>\n <p>&#8211; A Vector 2 for changing the allowable spawning square.<\/p>\n <p>To Create:<\/p>\n <p><a rel=\"attachment wp-att-32698\" href=\"http:\/\/www.ludumdare.com\/compo\/2010\/12\/18\/progressing\/spawner\/\"><img class=\"aligncenter size-full wp-image-32698\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2010\/12\/Spawner.png\" alt=\"\" width=\"508\" height=\"373\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2010\/12\/Spawner-300x220.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2010\/12\/Spawner.png 508w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/a>Only have one treasure type at the moment, but when I put in more it will randomize how many of each is distributed.<\/p>\n <p>If I decide to make the game point based I&#8217;ll tighten the hold on the spawner so there is a set amount of each type, this will prevent someone from getting lucky and only getting high valued treasures.<\/p>","time":"December 18th, 2010 12:34 am","title":"Progressing"}