{"author_name":"Jack","cat":"LD #22","comments":[{"author_name":"gavin5564","time":"December 17, 2011 2:47 am","epoch":1324108020,"text":"Not sure what language you are using but perhaps declare a new int array then initialize it in a constructor..","spam":"N"},{"author_name":"","time":"December 17, 2011 2:49 am","epoch":1324108140,"text":"Well, that should work! Can you pastbin you code?","spam":"N"},{"author_name":"","time":"December 17, 2011 2:49 am","epoch":1324108140,"text":"I don&#8217;t think you can define 2D Arrays using literals in Java. Not without specifying the first dimension, anyway.","spam":"N"},{"author_name":"","time":"December 17, 2011 2:52 am","epoch":1324108320,"text":"&#8230; I see I&#8217;m not the only one procrastinating.","spam":"N"},{"author_name":"Jack","time":"December 17, 2011 3:03 am","epoch":1324108980,"text":"@The Jahn you can define 2D Arrays with literals, I did it in my warmup game and there were no problems whatsoever. I&#8217;ll try out the string idea, thanks","spam":"N"},{"author_name":"Jack","time":"December 17, 2011 3:08 am","epoch":1324109280,"text":"and it&#8217;s STILL returning null! the sheer amount of irritation I&#8217;m feeling right now is beyond mere words","spam":"N"},{"author_name":"Jack","time":"December 17, 2011 3:35 am","epoch":1324110900,"text":"ah, found out what it was. I was declaring it in the class, but calling the function that needs it from the superclass&#8217; constructor, so it didn&#8217;t set it before trying to read it","spam":"N"}],"epoch":1324107540,"likes":0,"metadata":{"p_key":"61925","p_author":"Jack","p_authorkey":"7315","p_urlkey":"97691","p_title":"Help!","p_cat":"LD #22","p_event":"LD22","p_time":"1324107540","p_likes":"0","p_comments":"7","p_status":"UPD5","us_key":"7315","us_name":"Jack","us_username":"jfransham","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>I&#8217;m using java array literals for my levels (bad form, I know, but I&#8217;m pressed for time and want to have as much time as possible creating content) but it keeps saying my arrays are null. This is the offending code:<\/p>\n <pre>protected Integer[][] rawLevel =\n {\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}\n };<\/pre>\n <pre>Any help with this would be greatly appreciated<\/pre>","time":"December 17th, 2011 2:39 am","title":"Help!"}