{"author_name":"SpaceManiac","cat":"LD #13 - Roads - 2008","comments":[],"epoch":1228518780,"likes":0,"metadata":{"p_key":"74432","p_author":"SpaceManiac","p_authorkey":"412","p_urlkey":"110264","p_title":"Oooh!","p_cat":"LD #13 - Roads - 2008","p_event":"LD13","p_time":"1228518780","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"412","us_name":"SpaceManiac","us_username":"spacemaniac","event_start":"1228435200","event_key":"92","event_name":"LD13"},"text":"<p>I can hardly wait to hear the theme! I hope it&#8217;s Collosal Roads. I&#8217;m going to try to stay up to hear the theme, though I may have to get off before then. Tomorrow I&#8217;ll start work.<\/p>\n <p>Anyway, I think I figured out what basecode is (a little bit of prewritten main code?), and I&#8217;ve got mine.<\/p>\n <p><span id=\"more-3706\"><\/span><\/p>\n <p>#include &lt;SDL.h&gt;<\/p>\n <p>int main(int argc, char *argv[])<br \/>\n {<br \/>\n if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO) &lt; 0) {<br \/>\n return 1;<br \/>\n }<br \/>\n atexit(SDL_Quit);<\/p>\n <p>screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE|SDL_DOUBLEBUF);<br \/>\n if(screen == NULL) {<br \/>\n return 1;<br \/>\n }<\/p>\n <p>int done = -1;<br \/>\n while(done &lt; 0) {<br \/>\n SDL_Event event;<br \/>\n while(SDL_PollEvent(&amp;event)) {<br \/>\n if(event.type == SDL_QUIT) done = 0;<br \/>\n }<br \/>\n }<\/p>\n <p>return done;<br \/>\n }<\/p>","time":"December 5th, 2008 6:13 pm","title":"Oooh!"}