{"author_name":"alia","cat":"LD #15 - Caverns - 2009","comments":[],"epoch":1251579300,"likes":0,"metadata":{"p_key":"72802","p_author":"alia","p_authorkey":"0","p_urlkey":"108624","p_title":"Well that about wraps it up..","p_cat":"LD #15 - Caverns - 2009","p_event":"LD15","p_time":"1251579300","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":null,"us_name":null,"us_username":null,"event_start":"1251417600","event_key":"1","event_name":"LD15"},"text":"<p>I think ill have to call it quits about here, I have critters and sheep (zombie sheep BTW) wandering around the cavern.<\/p>\n <p><img class=\"aligncenter size-medium wp-image-8606\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/screenshot-1251586048-300x225.png\" alt=\"screenshot-1251586048\" width=\"300\" height=\"225\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/screenshot-1251586048-300x225.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/screenshot-1251586048-550x412.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/screenshot-1251586048.png 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n <p>Good luck to everyone and remember to have fun! Cant wait to see what everyone comes up with.<\/p>\n <p>My cavern generation if anyone is interested.. numpy is teh fun.<\/p>\n <pre>\n data = numpy.random.randint(0, 2, size)\n alive = numpy.zeros(size, int)\n for c in range(iterations):\n alive[:] = 0\n for x in range(-1, 2):\n for y in range(-1, 2):\n alive[max(0,-x):min(-x+width,width), max(0,-y):min(-y+height,height)] += \\\n data[max(0,x):min(x+width,width), max(0,y):min(y+height,height)] &gt;= 1\n data[alive =5 ] = 1\n <\/pre>\n <p>cheers!<\/p>\n <p>A.<\/p>","time":"August 29th, 2009 3:55 pm","title":"Well that about wraps it up.."}