{"id":49,"date":"2022-08-17T20:55:38","date_gmt":"2022-08-17T08:55:38","guid":{"rendered":"http:\/\/kyleclarke.co.nz\/blog\/?p=49"},"modified":"2022-08-18T16:39:09","modified_gmt":"2022-08-18T04:39:09","slug":"did-you-hear-that-day-three-update","status":"publish","type":"post","link":"http:\/\/kyleclarke.co.nz\/blog\/did-you-hear-that-day-three-update\/","title":{"rendered":"Did you hear that?: Day three update"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We have audio! I&#8217;ve built the audio engine for the game and we can now load and play music, as well as sound effects. I&#8217;ve also gotten to the bottom of the keyboard issue and now you can press keys even when using the version selector screen (previous to 0.3.1 you had to directly load the game for keys to work).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Day3ScreenshotBlur-1024x768.png\" alt=\"\" class=\"wp-image-51\" srcset=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Day3ScreenshotBlur-1024x768.png 1024w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Day3ScreenshotBlur-300x225.png 300w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Day3ScreenshotBlur-768x576.png 768w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Day3ScreenshotBlur.png 1056w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Press:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Q: Toggle debug mode<\/li><li>S: Test explosion sound and screen shake<\/li><li>L: Future feature, toggle level editor<\/li><li>M: Play\/Pause music (off by default to be less annoying when testing)<\/li><li>Arrows: move around the map (same as moving mouse to edge of screen)<\/li><\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"150\" src=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-17-205018.png\" alt=\"\" class=\"wp-image-52\" srcset=\"http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-17-205018.png 350w, http:\/\/kyleclarke.co.nz\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-17-205018-300x129.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Lastly, I&#8217;ve updated the asset loader to show a loading screen while everything is downloading; much better than just a blank screen. This was far more obviously required when I added in the music and audio files. Once the game starts to take shape I&#8217;ll only load the assets that are required for that moment which will hopefully streamline the amount of downloads and waiting the user sees.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Play the latest version at <a href=\"http:\/\/kyleclarke.co.nz\/game\">http:\/\/kyleclarke.co.nz\/game<\/a><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have audio! I&#8217;ve built the audio engine for the game and we can now load and play music, as well as sound effects. I&#8217;ve also gotten to the bottom [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":50,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-49","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\/49","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=49"}],"version-history":[{"count":1,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":53,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions\/53"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/media\/50"}],"wp:attachment":[{"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kyleclarke.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}