{"id":15,"date":"2010-06-12T18:02:36","date_gmt":"2010-06-12T22:02:36","guid":{"rendered":"https:\/\/www.galacticsovereign.com\/?p=15"},"modified":"2011-02-16T06:15:05","modified_gmt":"2011-02-16T11:15:05","slug":"15","status":"publish","type":"post","link":"https:\/\/www.galacticsovereign.com\/?p=15","title":{"rendered":"A new beginning"},"content":{"rendered":"<p>I&#8217;ve unfortunately had to burn the previous effort to the ground. \u00c2\u00a0Ends up SDLs native sort of graphics mode is simply not compatible with openGL, it&#8217;s more there to provide a weird sort of backup in case openGL can&#8217;t run. \u00c2\u00a0It runs in software, pretty much, and can&#8217;t really do much beyond putting flat images and text on a screen. \u00c2\u00a0Of course, that only makes sense for pretty basic stuff- the plan &#8220;B&#8221; for a game if it finds OpenGL can&#8217;t run is to say &#8220;Are you fucking kidding me? \u00c2\u00a0I quit.&#8221; so I don&#8217;t really have to worry about that. \u00c2\u00a0Anyway, that was a dead end.\u00c2\u00a0 So I pretty much started over, with &#8220;The Red Book&#8221;.\u00c2\u00a0 I&#8217;ve heard from a few sources that that is The Book for openGL. \u00c2\u00a0I&#8217;m about 50 pages in and about at atari level graphics, so, I guess since it&#8217;s about 700 pages long not counting appendices, that&#8217;s on course to look pretty nice by the time I get to the end.<br \/>\nAnyway, attached is the .exe.<br \/>\nMouse movement moves the pixel, q quits, r g b all change the pixels color, &#8211; reduces sensitivity, = increases it.<br \/>\nI plan on having turning the ship into a triangle that points the way it&#8217;s moving soon, and maybe add a projectile to shoot too. \u00c2\u00a0Maybe some collision detection and some moving targets. \u00c2\u00a0Then it will be time to read a bunch more.<br \/>\nOh, and the text file it spits out is basically just counting how many milliseconds pass between getting to the top of the main loop again.\u00c2\u00a0 I know premature optimizations are considered bad form, but it doesn&#8217;t hurt just to keep an eye on where you are.\u00c2\u00a0 I figure I want to try to keep that below 16 if I want to have 60 frames per second. \u00c2\u00a0Right now it&#8217;s mostly 0s, which means less than a millisecond passes between loop iterations, but then again, it&#8217;s hardly doing anything.<a href=\"https:\/\/www.galacticsovereign.com\/wp-content\/uploads\/2011\/02\/game2.zip\"><\/a><\/p>\n<p><a href=\"https:\/\/www.galacticsovereign.com\/wp-content\/uploads\/2011\/02\/game2.zip\">game2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve unfortunately had to burn the previous effort to the ground. \u00c2\u00a0Ends up SDLs native sort of graphics mode is simply not compatible with openGL, it&#8217;s more there to provide a weird sort of backup in case openGL can&#8217;t run. &hellip; <a href=\"https:\/\/www.galacticsovereign.com\/?p=15\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-state-of-the-game"],"_links":{"self":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":0,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.galacticsovereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}