{"id":716,"date":"2010-10-21T18:47:12","date_gmt":"2010-10-22T00:47:12","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=716"},"modified":"2010-10-21T18:47:12","modified_gmt":"2010-10-22T00:47:12","slug":"dynamite-day-19","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2010\/10\/21\/dynamite-day-19\/","title":{"rendered":"Dynamite: Day 19 &#8211;"},"content":{"rendered":"<p>So I&#8217;m marching towards getting this game into beta.  Fixing up some final items.  The first one was I was finding that guards would sometimes get together into packs (all on a single square) and stampede.  I&#8217;ve fixed that by checking for guards who are on the same spot going the same direction and having some of them wait a few frames before moving.  This does a nice job of breaking them up.<\/p>\n<p><em>Aside: I&#8217;m listening to <a href=\"http:\/\/www.futurecrew.org\/skaven\/\">Skaven&#8217;s<\/a> tunes via the <a href=\"http:\/\/itunes.apple.com\/us\/app\/modizer\/id393964792?mt=8\">Modizer app<\/a>.  Very cool!<\/em><\/p>\n<p>Time to churn out a new level!  &#8220;The Barn&#8221; has arrived.<\/p>\n<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz050.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz050.png\" alt=\"DynamiteScreenSnapz050\" title=\"DynamiteScreenSnapz050\" width=\"512\" height=\"406\" class=\"aligncenter size-full wp-image-717\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz050.png 512w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz050-300x237.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>I&#8217;ve added in auto-save \/ auto-restore of the whole game state.  And I&#8217;ve added in save \/ restore of the game settings (like your volume preferences, or whatever.)  I had to hold myself back from doing anything crazy like using a fixed_map from <a href=\"http:\/\/www.open-std.org\/jtc1\/sc22\/wg21\/docs\/papers\/2007\/n2271.html\">EASTL<\/a>, and just do it the &#8220;simple&#8221; way.  Using new and shiny things is fun, but it doesn&#8217;t necessarily buy me any time or improvement in my code.<\/p>\n<p>I then added clipping to my GUI code so that I can have things like scrollboxes and whatnot.  I considered SCISSOR_TEST, depth buffers, and stencil buffers.  I eventually decided on just calculating all the clipping in software so I could avoid using all those GL features.  That way they are saved for possible more cool uses, like effects.<\/p>\n<p>-Phil<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;m marching towards getting this game into beta. Fixing up some final items. The first one was I was finding that guards would sometimes get together into packs (all on a single square) and stampede. I&#8217;ve fixed that by checking for guards who are on the same spot going the same direction and having [&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-716","post","type-post","status-publish","format-standard","hentry","category-dynamite"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/716","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=716"}],"version-history":[{"count":2,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/716\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}