{"author_name":"matthewd673","cat":"MiniLD","comments":[{"author_name":"Sogomn","time":"July 17, 2015 6:35 pm","epoch":1437176100,"text":"You&#8217;re creating a new Random-object every loop! That&#8217;s totally inefficient!","spam":"N"}],"epoch":1437149520,"likes":2,"metadata":{"p_key":"17160","p_author":"matthewd673","p_authorkey":"38850","p_urlkey":"52461","p_title":"Simple Dungeon Generator (part 1)","p_cat":"MiniLD","p_event":"LD32","p_time":"1437149520","p_likes":"2","p_comments":"1","p_status":"UPD5","us_key":"38850","us_name":"matthewd673","us_username":"fizz","event_start":"1429228800","event_key":"27","event_name":"LD32"},"text":"<p>For my MiniLD entry, I&#8217;ve been working on a simple dungeon generator. Taking a look at the screenshot, you&#8217;ll notice the grid. There&#8217;s nothing random about that grid, but since the game takes place in a sewer (usually something that is plotted out carefully), it was a nice way to make sure 99.9% of the rooms connect without extra work. The rooms are generated by a simple algorithm found\u00a0<a href=\"https:\/\/gist.github.com\/matthewd673\/4eb001148dd099b00da7\" target=\"_blank\">on my GitHub account<\/a>. Why the random rooms in an orderly sewer? Mysterious bugs have chewed through some of the piping to create nests for their young. I still have a few tweaks to make but everything should be rendering with the correct sprite sheet by the end of the day.<\/p>\n <p>&nbsp;<\/p>\n <p><a href=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/07\/dungeonsample.png\"><img class=\"alignnone size-medium wp-image-470126\" src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/07\/dungeonsample-300x300.png\" alt=\"Sample screenshot\" width=\"300\" height=\"300\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/07\/dungeonsample-150x150.png 150w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/07\/dungeonsample-300x300.png 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>","time":"July 17th, 2015 11:12 am","title":"Simple Dungeon Generator (part 1)"}