{"id":44,"date":"2022-08-16T22:27:18","date_gmt":"2022-08-16T10:27:18","guid":{"rendered":"http:\/\/kyleclarke.co.nz\/blog\/?p=44"},"modified":"2022-08-18T16:39:28","modified_gmt":"2022-08-18T04:39:28","slug":"behind-the-scenes-day-two-update","status":"publish","type":"post","link":"http:\/\/kyleclarke.co.nz\/blog\/behind-the-scenes-day-two-update\/","title":{"rendered":"Behind the scenes: Day two update"},"content":{"rendered":"\n<p>I&#8217;ve spent a considerable amount of time today working through some game engine features; namely the asset loading system and the beginnings of the audio system using <a href=\"https:\/\/webaudio.github.io\/web-audio-api\/\">Web Audio API<\/a> which I think will be a lot more versatile than the standard HTML5 Audio objects for the complexity this game is going to demand. I&#8217;ll get a lore more control over <em>how<\/em> the audio will play; at the cost of more up front work on my part of course.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"217\" src=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Assets.png\" alt=\"\" class=\"wp-image-46\" srcset=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Assets.png 802w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Assets-300x81.png 300w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Assets-768x208.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p>In addition to the asset loader, I&#8217;ve started working on other UI elements like arrows the indicate scrolling trigger by the mouse being at the windows edge and the beginnings of the sidebar ui that will server both as the main interaction window for the level editor, but also the in-game pane that will house the mini-map and the structure\/unit building buttons etc.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"237\" src=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Arrows.png\" alt=\"\" class=\"wp-image-47\" srcset=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Arrows.png 852w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Arrows-300x83.png 300w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/gamejamDay2Arrows-768x214.png 768w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p>I know that so far it&#8217;s not been very entertaining to follow along; honestly I thought it would be more interesting, but I under estimated how much &#8220;engine&#8221; work would need to be done before the more engaging features could be added. Don&#8217;t lose hope yet though, some more &#8220;fun&#8221; features are coming soon.<\/p>\n\n\n\n<p>I am sorry though, that I haven&#8217;t yet fixed the keyboard issue when playing the game from the main landing page at <a href=\"http:\/\/kyleclarke.co.nz\/game \">http:\/\/kyleclarke.co.nz\/game <\/a>I know that this is annoying but I&#8217;ve been working through items that I thought was a little more of a priority. You can use the latest version at <a href=\"http:\/\/kyleclarke.co.nz\/game\/v0.2.1\">http:\/\/kyleclarke.co.nz\/game\/v0.2.1<\/a> which does work with keyboard inputs<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8216;Q&#8217; to toggle Debug mode<\/li><li>&#8216;S&#8217; will shake the screen (this will happen when a building explodes for example)<\/li><li>&#8216;L&#8217; will toggle the level editor, currently it just toggles the sidebar on and off.<\/li><li>You can also scroll around using the arrow keys<\/li><\/ul>\n\n\n\n<p>Soon I&#8217;ll add Gamepad controls (USB or Bluetooth game controllers, e.g. Xbox One, PS5 etc) as well as touch controls if you&#8217;re playing from a touch enabled device like a Surface or iPad.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve spent a considerable amount of time today working through some game engine features; namely the asset loading system and the beginnings of the audio system using Web Audio API [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":45,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-game-dev","category-rts-game-jam"],"_links":{"self":[{"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":1,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":48,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/48"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/media\/45"}],"wp:attachment":[{"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}