{"author_name":"Henry McLaughlin","cat":"LD  #18 - Enemies as Weapons - 2010","comments":[{"author_name":"GreaseMonkey","time":"August 18, 2010 3:12 pm","epoch":1282162320,"text":"Ooh, Python \ud83d\ude00","spam":"N"}],"epoch":1282155300,"likes":0,"metadata":{"p_key":"70309","p_author":"Henry McLaughlin","p_authorkey":"979","p_urlkey":"106129","p_title":"Declaring my Codebase","p_cat":"LD  #18 - Enemies as Weapons - 2010","p_event":"LD18","p_time":"1282155300","p_likes":"0","p_comments":"1","p_status":"UPD5","us_key":"979","us_name":"Henry Mclaughlin","us_username":"pycron","event_start":"1282262400","event_key":"4","event_name":"LD18"},"text":"<p>I&#8217;ve decided that I&#8217;d like to declare my codebase beforehand even though I&#8217;m entering the jam and not the compo.<\/p>\n <p>First of all, I&#8217;m using a Rect class that I made for another project. It just implements collision detection and (very simple) collision response as well as a bunch of handy properties. I made it to use with Panda3D, but it works fine with any system where positive Y points up. (Or in the case of 3D, whichever axis you intend to use as the Y axis for the Rects)<\/p>\n <p>I&#8217;ve put it on Pastebin as public domain, and anyone who would like a copy can pick it up <a title=\"My Rect class on Pastebin\" href=\"http:\/\/pastebin.com\/eTsy4sxF\" target=\"_blank\">here<\/a>.<\/p>\n <p>Also, I&#8217;m going to use a dirt-simple agent class that implements movement and has a collision box attached to it. It&#8217;s really simple, and I don&#8217;t want to code it yet again.<\/p>\n <p>I will also be recycling a bunch of terrain classes that can place themselves on grids, can be placed in (single-tier) groups, and can construct collision boxes for themselves and place those on their global coordinates. I might possibly recycle some game world structure as well, which would be a base game world and very simple room structures.<\/p>\n <p>I will not be reusing any old artwork, though, or any sounds. Just some boilerplate.<\/p>\n <p>Anyone who wants to get the code that I&#8217;m using can find it in the Subversion repository for the project. (You can find a link on the game&#8217;s project page <a title=\"Page for the Project I'm Getting my Codebase from\" href=\"http:\/\/sourceforge.net\/projects\/retrobreed\/\" target=\"_blank\">here<\/a>)<\/p>\n <p>(Don&#8217;t mind the project name \/ UNIX name mismatch, I&#8217;m renaming it but Sourceforge&#8217;s UNIX name changing is temporarily off-line for some backend work)<\/p>","time":"August 18th, 2010 1:15 pm","title":"Declaring my Codebase"}