{"assets":[{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/04\/rooms.gif","local":"\/data\/posts\/2013\/04\/c83478bfe11a9ad0fc4a4c7a67078451.gif"}],"author_link":"author\/rxi\/","author_name":"rxi","cat":"LD #26","categories":["LD #26"],"comments":[],"epoch":1367066880,"event":"LD26","likes":5,"metadata":{"p_key":"78748","p_author":"rxi","p_authorkey":"0","p_urlkey":"287758","p_title":"Rooms","p_cat":"LD #26","p_event":"LD26","p_time":"1367066880","p_likes":"5","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1366934400","event_key":"16","event_name":"LD26"},"source_url":"2013\/04\/27\/rooms-2\/","text":"<p><a href=\"http:\/\/www.ludumdare.com\/compo\/2013\/04\/27\/rooms-2\/rooms-4\/\" rel=\"attachment wp-att-238985\"><img alt=\"rooms\" class=\"aligncenter size-full wp-image-238985\" height=\"223\" src=\"\/data\/posts\/2013\/04\/c83478bfe11a9ad0fc4a4c7a67078451.gif\" width=\"383\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>Finally getting somewhere I\u2019m happy with on this one! Rooms are loaded from a text file and can be switched between during gameplay, the idea is finally taking some form! Every room is based on a prototype shape, each rooms tileset is randomly generated. The idea is that all the things that aren\u2019t that important can be randomly generated, and I can make the content with fairly broad statements. For example, the three rooms I have at the moment are created from the following text file:<\/p>\n<blockquote>\n<pre>begin\r\n name = test1\r\n proto = test\r\n east = test2\r\nend<\/pre>\n<pre>\r\nbegin\r\n name = test2\r\n proto = test\r\n west = test1\r\n north = test3\r\nend<\/pre>\n<pre>\r\nbegin\r\n name = test3\r\n proto = test\r\n south = test2\r\nend<\/pre>\n<\/blockquote>\n<p>They\u2019re all currently based off the same \u201cprototype\u201d room (so they share the same shape) but there will be more prototype rooms. They will of course have more things in them, for example, chairs, bookshelves, NPCs. NPCs that are vital to the plot will be explicitly added via text files but I don\u2019t see any harm in having a couple wandering about.<\/p>\n<p>It is a bit funny playing as a different character sprite each time, since the player\u2019s sprite is randomly generated like the NPCs. It does in a way make me want to\u00a0implement\u00a0some sort of A Scanner Darkly plot with the whole concept of \u201cscramble suits\u201d, but I don\u2019t know how that will fit in with the plot\u2026.<\/p>\n<p>\u00a0<\/p>","time":"April 27th, 2013 12:48 pm","title":"Rooms","title_was_empty":false}