{"assets":[{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2008\/05\/magshot01.png","local":"\/data\/posts\/2008\/05\/13531faa3eb2a5c2d791893e60dbc65f.png"},{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2008\/05\/magshot01.png","local":"\/data\/posts\/2008\/05\/13531faa3eb2a5c2d791893e60dbc65f.png"},{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2008\/05\/magshot01.png","local":"\/data\/posts\/2008\/05\/13531faa3eb2a5c2d791893e60dbc65f.png"}],"author_link":"author\/pov\/","author_name":"PoV","cat":"LD - Misc","categories":["LD - Misc"],"comments":[],"epoch":1211207460,"event":"LD11","likes":0,"metadata":{"p_key":"76117","p_author":"PoV","p_authorkey":"0","p_urlkey":"283768","p_title":"PoV\u2019s Fake LD \u2013 5 Hours","p_cat":"LD - Misc","p_event":"LD11","p_time":"1211207460","p_likes":"0","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1208476800","event_key":"87","event_name":"LD11"},"source_url":"2008\/05\/19\/povs-fake-ld-5-hours\/","text":"<p>PoV\u2019s Fake LD Compo!  Me versus me!  Winner takes all.<\/p>\n<p>I actually planned to start this on the weekend, but it\u2019s Monday already.  I\u2019ve had a game concept I wanted prototyped for the past few weeks, but between library development work and some portability stuff, I just hadn\u2019t got around to it yet.  Maybe a little bit of slacking too.  <img alt=\":)\" class=\"wp-smiley\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-includes\/images\/smilies\/icon_smile.gif\"\/> <\/p>\n<p>So I started today just after 1:00 PM EST (not that I\u2019m forcing a 48 hour limit). The first order of business was to butcher the test suite application from my work in progress geometry tests library.  It currently uses a wrapped version of 2D Allegro for graphics (suspiciously featuring many function calls that make it work like a 2D OpenGL, matrix stack and all).   Currently the only drawing operations supported are circle and line based, which exactly what I want for geometry tests and prototyping.<\/p>\n<p>Prior to LD11, I was working on a file format and loader\/saver for 2D geometry.  I call them PolyMap\u2019s.  It\u2019s whitespace delimited text based format, sort of like an assembly source file.  Unlike the dozens of geometry formats I\u2019ve written in the past, I wanted this one to be generic and extensible.  The last one I wrote was was a convoluted 2D mess supporting vertex, texture, geometry and spring constraints animation.  Eventually I\u2019d like to assimilate that format in to this one, but I want to keep the format simple enough to do other random things with it.<\/p>\n<p>As is, it\u2019s suitable for creating static background collision (polygons), creating 2D paths\/rails, placing \u201cthings\u201d that you\u2019d normally find in a game level, and numerous straightforward hacks.  The format could also be used to make polygons\/circles + springs objects, but I don\u2019t need that right.  I\u2019m editing files by hand at the moment, but eventually I\u2019d like to have an easily reconfigurable tool for creating stuff in the format.  I\u2019m expecting to hack something together soon.<\/p>\n<p>So anyways, the first order of business was to load and use a PolyMap file with my fake OpenGL rendering code.  That came together quickly, so I dived in to some camera stuff.  That pretty much brings me to where I am right now.<\/p>\n<p><a href=\"\/data\/posts\/2008\/05\/13531faa3eb2a5c2d791893e60dbc65f.png\" title=\"Geometric Camera Fun\"><\/a><\/p>\n<p style=\"text-align: center\"><a href=\"\/data\/posts\/2008\/05\/13531faa3eb2a5c2d791893e60dbc65f.png\" title=\"Geometric Camera Fun\"><img alt=\"Geometric Camera Fun\" src=\"\/data\/posts\/2008\/05\/13531faa3eb2a5c2d791893e60dbc65f.png\"\/><\/a><\/p>\n<p align=\"center\">(The shape with the normals is actually a polygon, I was just too lazy to create a more obvious shape.)<\/p>\n<p>Camera stuff \u201csorta\u201d works.  I can pan and zoom, and the camera is bound to a region of the map (noted in the PolyMap file).  Cursor relative zooming doesn\u2019t work right yet, and the bounds don\u2019t restrict correctly when zoomed.  Once that\u2019s sorted out, I\u2019ll probably gut the camera code and make it a feature of my fake OpenGL renderer.<\/p>\n<p>Back to the fun.<\/p>\n<p>Tags: <a href=\"http:\/\/www.ludumdare.com\/compo\/tag\/screenshot\/\" rel=\"tag\">screenshot<\/a><\/p> <div style=\"float: right;border: 1px solid #eee;padding: 2px;background: #fff;\"><div class=\"iLikeThis\" id=\"iLikeThis-2430\"><span class=\"counter-off\"><a class=\"image\" onclick=\"likeThis(2430);\">0<\/a><\/span><\/div><\/div>\n<p class=\"postmetadata alt\">\n<small>\n\t\t\t\t\t\tThis entry was posted\n\t\t\t\t\t\t\t\t\t\t\t\ton Monday, May 19th, 2008 at 2:31 pm\t\t\t\t\t\tand is filed under <a href=\"http:\/\/www.ludumdare.com\/compo\/category\/ld-misc\/\" rel=\"category tag\" title=\"View all posts in LD - Misc\">LD - Misc<\/a>.\n\t\t\t\t\t\tYou can follow any responses to this entry through the <a href=\"http:\/\/www.ludumdare.com\/compo\/2008\/05\/19\/povs-fake-ld-5-hours\/feed\/\">RSS 2.0<\/a> feed.\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tYou can <a href=\"#respond\">leave a response<\/a>, or <a href=\"http:\/\/www.ludumdare.com\/compo\/2008\/05\/19\/povs-fake-ld-5-hours\/trackback\/\" rel=\"trackback\">trackback<\/a> from your own site.\n\n\t\t\t\t\t\t\n\t\t\t\t\t<\/small>\n<\/p>","time":"May 19th, 2008 2:31 pm","title":"PoV\u2019s Fake LD \u2013 5 Hours"}