{"author_name":"wademcgillis","cat":"LD #20 - It's Dangerous to go Alone! Take This!","comments":[],"epoch":1304020800,"likes":2,"metadata":{"p_key":"67115","p_author":"wademcgillis","p_authorkey":"3444","p_urlkey":"102916","p_title":"First Time","p_cat":"LD #20 - It's Dangerous to go Alone! Take This!","p_event":"LD20","p_time":"1304020800","p_likes":"2","p_comments":"0","p_status":"UPD5","us_key":"3444","us_name":"wademcgillis","us_username":"wademcgillis","event_start":"1304035200","event_key":"6","event_name":"LD20"},"text":"<div>\n <p><strong>Language<\/strong>: C++<\/p>\n <p><strong>IDE<\/strong>: Depends on the operating system. I&#8217;ll primarily be using Windows (which means VS 2010 Express), but in the last hour or so I&#8217;ll probably port it to OS X (XCode).<\/p>\n <p><strong>Libraries<\/strong>: SFML and possibly Box2D depending on the theme that gets picked. I would be using DirectX, which I&#8217;m more familiar with, but DX doesn&#8217;t port well to OS X.<\/p>\n <p><strong>Graphics<\/strong>: MsPaint &amp;&amp; Paint.NET<\/p>\n <p><strong>Sounds<\/strong>: Sfxr, maybe Audacity to record whistling as music in the game.<\/p>\n <p>The formatting is borked, but this is the &#8220;base code&#8221; I&#8217;m going to be using.<\/p>\n <p>#include &lt;SFML\/System.hpp&gt;<br \/>\n #include &lt;SFML\/Window.hpp&gt;<br \/>\n #include &lt;SFML\/Graphics.hpp&gt;<\/p>\n <p>#pragma comment(lib,&#8221;sfml-system-s.lib&#8221;)<br \/>\n #pragma comment(lib,&#8221;sfml-window-s.lib&#8221;)<br \/>\n #pragma comment(lib,&#8221;sfml-graphics-s.lib&#8221;)<\/p>\n <p>sf::RenderWindow App;<\/p>\n <p>int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int nCmdShow)<br \/>\n {<br \/>\n bool exitgame = false;<br \/>\n bool isWindowActive = false;<br \/>\n App.Create(sf::VideoMode(640,480,2), &#8220;Title&#8221;, sf::Style::Close);<br \/>\n while(!exitgame)<br \/>\n {<br \/>\n sf::Event event;<br \/>\n while (App.GetEvent(event))<br \/>\n {<br \/>\n if ((event.Type == sf::Event::Closed) || ((event.Type == sf::Event::KeyPressed) &amp;&amp; (event.Key.Code == sf::Key::Escape)))<br \/>\n {<br \/>\n exitgame = true;<br \/>\n break;<br \/>\n }<br \/>\n if (event.Type == sf::Event::GainedFocus)<br \/>\n isWindowActive = true;<br \/>\n if (event.Type == sf::Event::LostFocus)<br \/>\n isWindowActive = false;<br \/>\n }<br \/>\n App.Clear(sf::Color(192,192,192));<br \/>\n App.Display();<br \/>\n }<br \/>\n App.Close();<br \/>\n return EXIT_SUCCESS;<br \/>\n }<\/p>\n <\/div>","time":"April 28th, 2011 3:00 pm","title":"First Time"}