{"id":602,"date":"2010-10-01T21:45:04","date_gmt":"2010-10-02T03:45:04","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=602"},"modified":"2010-10-01T21:46:40","modified_gmt":"2010-10-02T03:46:40","slug":"dynamite-day-5-blank-slate","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2010\/10\/01\/dynamite-day-5-blank-slate\/","title":{"rendered":"Dynamite: Day 5 &#8211; Blank Slate"},"content":{"rendered":"<p>So, I stayed up a bit late last night looking into DOT3 bump mapping and multi-texturing effects.  <a href=\"http:\/\/iphone-3d-programming.labs.oreilly.com\/ch08.html\">This book<\/a> explains how to do it.  The <a href=\"http:\/\/www.crazybump.com\/\">Crazy Bump<\/a> software would generate the DOT3 images.  I&#8217;m not entirely sure if this would be worth it, or if it would even work or not.  So I&#8217;m going to put the actual implementation of this towards the end of my TODO list.  I&#8217;m happy with how the game is looking, and I&#8217;m sure those features would make it look even better, but I don&#8217;t need to get those done right away.<\/p>\n<p>Now I&#8217;m thinking over what I need to do in terms of a level editor.  I will make the game have two layers, one will be the map layer, and one will be the &#8220;codes&#8221; layer.  The map layer is the walls and floors.  The codes layer is the position of the lights, guards, and how things move around.  Right now I&#8217;m building a list of what needs to be in the editor, and then I&#8217;ll start coding it up.<\/p>\n<p><em>.. time passes ..<\/em><\/p>\n<p>Things have gone pretty slowly today, but I&#8217;m getting a few things done tonight.  I&#8217;ve got my tile type definitions in another JSON file, and I&#8217;ve got those loading.  Really, it would have been quicker to do it all as a C++ definition, but I&#8217;m going for the whole &#8220;make the game a little bit extendable&#8221; so as to encourage a bit more modding in the future \ud83d\ude42<\/p>\n<p>Here&#8217;s an example tile definition:<\/p>\n<pre>\r\n{\"n\":1, \"name\":\"floor\", \"type\":\"none\", \"value\":0, \"view\":\"floor\"},\r\n<\/pre>\n<p>So, here&#8217;s a level .. pre-editing.  This will get much more exciting once I add editing controls.  This screenshot represents a few hours of code cleanup and prep.<\/p>\n<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz016.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz016.png\" alt=\"DynamiteScreenSnapz016\" title=\"DynamiteScreenSnapz016\" width=\"512\" height=\"406\" class=\"aligncenter size-full wp-image-603\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz016.png 512w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/10\/DynamiteScreenSnapz016-300x237.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>Anyway, I&#8217;m going to try and get some reasonable sleep tonight and I&#8217;ll try and get the level editor up and running tomorrow.  At least for some minimal definition of the word &#8220;up and running&#8221;.<\/p>\n<p>-Phil<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I stayed up a bit late last night looking into DOT3 bump mapping and multi-texturing effects. This book explains how to do it. The Crazy Bump software would generate the DOT3 images. I&#8217;m not entirely sure if this would be worth it, or if it would even work or not. So I&#8217;m going to [&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-602","post","type-post","status-publish","format-standard","hentry","category-dynamite"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/602","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=602"}],"version-history":[{"count":7,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":609,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/602\/revisions\/609"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}