{"id":547,"date":"2010-09-27T22:27:04","date_gmt":"2010-09-28T04:27:04","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=547"},"modified":"2010-09-27T22:27:04","modified_gmt":"2010-09-28T04:27:04","slug":"dynamite-day-1","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2010\/09\/27\/dynamite-day-1\/","title":{"rendered":"Dynamite: Day 1"},"content":{"rendered":"<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-01-300x213.png\" alt=\"dynamitedev-01\" title=\"dynamitedev-01\" width=\"300\" height=\"213\" class=\"alignright size-medium wp-image-548\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-01-300x213.png 300w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-01.png 488w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>10:30am &#8211; I have achieved the classic black screen.  This is a good start.  I&#8217;m using this opportunity to take all the various cross-platform code I&#8217;ve written and clean it up a touch and put it in files that are totally separate from my game code.  So, thus far, I&#8217;ve got my &#8220;initialize a black screen&#8221; code in a separate file.  As well as my event handling.  So far just desktop support, iOS will come later.<\/p>\n<p>I&#8217;m also using a Makefile with automatic dependency generation this time around.  I got a snippet from Mike Kasprzak to do this about a year ago, and it seems to work pretty well.  Clutters up all my folders with .o and .o.d files, but I can cope with that.  (His version did something smarter like sticking all those files in a separate folder, but I broke it.)  I only use this Makefile for my linux development, which is where I&#8217;ll be doing all my dev.<\/p>\n<p>10:45am &#8211; Slight distraction, Unity 3 has been released, though there is still an extra day to buy it on the pre-order price.  I must admit, coding this whole game myself does sound a bit like work, and using Unity might be a ton easier.  I&#8217;m downloading it so I can give it a quick eval to see how much  has changed since Unity 2.x.<\/p>\n<p>11:15am &#8211; I now have textures loading and being displayed on the screen.<\/p>\n<p>11:30am &#8211; Unity 3 download complete, checking it out.<\/p>\n<p>12:00pm &#8211; Got intimidated by how fancy it all seems.  I&#8217;m just looking to make something pretty simple here.<\/p>\n<p>12:30pm &#8211; Working on setting up the basic state engine.  Trying to do something that won&#8217;t require the use of reference counting.<\/p>\n<p>Upgrading the game to isometric was pretty straightforward.  I just had to render the sides to all the boxes and do some gluPerspective \/ gluLookAt stuff to get the game view happening.<\/p>\n<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-02.png\" alt=\"dynamitedev-02\" title=\"dynamitedev-02\" width=\"488\" height=\"348\" class=\"alignright size-full wp-image-550\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-02.png 488w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-02-300x213.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/a>2:00pm &#8211; Got a basic 3D isometric view displaying.<\/p>\n<p>Now with soldiers!  And box picking!  And scrolling!<\/p>\n<p><a href=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-03.png\" alt=\"dynamitedev-03\" title=\"dynamitedev-03\" width=\"488\" height=\"348\" class=\"alignright size-full wp-image-552\" srcset=\"https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-03.png 488w, https:\/\/www.philhassey.com\/blog\/wp-content\/uploads\/2010\/09\/dynamitedev-03-300x213.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p>Spent some time later on fiddling to get the perspective just right, still need to work on that s&#8217;more.<\/p>\n<p>-Phil<\/p>\n","protected":false},"excerpt":{"rendered":"<p>10:30am &#8211; I have achieved the classic black screen. This is a good start. I&#8217;m using this opportunity to take all the various cross-platform code I&#8217;ve written and clean it up a touch and put it in files that are totally separate from my game code. So, thus far, I&#8217;ve got my &#8220;initialize a black [&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-547","post","type-post","status-publish","format-standard","hentry","category-dynamite"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/547","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=547"}],"version-history":[{"count":5,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}