{"id":697,"date":"2010-10-15T21:34:20","date_gmt":"2010-10-16T03:34:20","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=697"},"modified":"2010-10-15T21:34:20","modified_gmt":"2010-10-16T03:34:20","slug":"dynamite-day-15-basic-polish","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2010\/10\/15\/dynamite-day-15-basic-polish\/","title":{"rendered":"Dynamite: Day 15 &#8211; Basic Polish"},"content":{"rendered":"<p>So today, I&#8217;ve got a long list of cleanup items I&#8217;m doing.  Then tomorrow I&#8217;m going to create a bunch of levels.  Then on Monday I&#8217;ll package it up for the IGF.  Madness ensues.<\/p>\n<p>So far I&#8217;ve been working on reducing the memory footprint of the game.  Now the whole game takes 2MB of data, and a single level takes < 64k of data.  It's good to keep things trim!\n\nI'm also fixing a bunch of mundane bugs \/ minor issues.  In the meantime I've created a main menu.  So, yeah, there's a reason that I'm going to be rounding up an artist pretty soon :)  This is not \"teh awesome\"!\n\n<a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz044.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz044.png\" alt=\"DynamiteScreenSnapz044\" title=\"DynamiteScreenSnapz044\" width=\"512\" height=\"406\" class=\"aligncenter size-full wp-image-698\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz044.png 512w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz044-300x237.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>Okay, my big goal is to get the Build section working.  The user has to be able to create new levels and edit their old levels.  My brain is melting a bit, but I think I can manage to get this done today.  I&#8217;m going to be using sqlite3 as the storage system for the levels.<\/p>\n<p>A lesson was learned today in KISS.  I was having all kinds of confusion in my brains about how to handle some state transitions.  Then a pal of mine (<a href=\"http:\/\/www.toonormal.com\">Mike Kasprzak<\/a>) said: &#8220;I have a 1 level state stack&#8221; .. as opposed to some kind of complex stack system or whatever.  He ended with these wise words:<\/p>\n<p>&lt;PoV> yeah, it&#8217;s all you really need<br \/>\n&lt;PoV> each menu option can go where it wants to go, but parent lets you remember 1 level deep, like whether to return to a pause menu or such.<br \/>\n<b>&lt;PoV> anything more than that is probably too complicated for the user too<\/b><\/p>\n<p>That&#8217;s the truth.  Anyway, thanks to that piece of advice, I was able to get to my goal for the day!  I&#8217;ve got my level editor integrated into a level-preview list whereby I can manage a number of levels (and thus, create a game that has more than one!)  Here it is.<\/p>\n<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz045.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz045.png\" alt=\"DynamiteScreenSnapz045\" title=\"DynamiteScreenSnapz045\" width=\"512\" height=\"406\" class=\"aligncenter size-full wp-image-701\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz045.png 512w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz045-300x237.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>Anyway.  Tomorrow I&#8217;m going to be spending some serious time churning out levels!<\/p>\n<p>-Phil<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So today, I&#8217;ve got a long list of cleanup items I&#8217;m doing. Then tomorrow I&#8217;m going to create a bunch of levels. Then on Monday I&#8217;ll package it up for the IGF. Madness ensues. So far I&#8217;ve been working on reducing the memory footprint of the game. Now the whole game takes 2MB of data, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116],"tags":[],"class_list":["post-697","post","type-post","status-publish","format-standard","hentry","category-dynamite"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":3,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"predecessor-version":[{"id":702,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/697\/revisions\/702"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}