{"id":43,"date":"2021-11-26T14:00:50","date_gmt":"2021-11-26T14:00:50","guid":{"rendered":"http:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/?p=43"},"modified":"2023-04-06T14:01:04","modified_gmt":"2023-04-06T13:01:04","slug":"week-3-developer-journal","status":"publish","type":"post","link":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/2021\/11\/26\/week-3-developer-journal\/","title":{"rendered":"Week 3 &#8211; Developer Journal"},"content":{"rendered":"\n<p>18\/10\/21 &#8211; This week, we were introduced to Phaser, a 2D game framework for making HTML5 games in JavaScript and followed a demonstration in creating a basic 2D platformer<br><br> This workshop covered many aspects in quick succession, such as creating the player, camera, handling movement, animations and collisions, creating objects such as collectables and hazards, alongside additional functionalities.<br>I have little doubt that my future games in phaser will use all of these  aspects and I&#8217;ll likely be looking back to the code from this workshop to help me add them in.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"737\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-1.png\" alt=\"\" class=\"wp-image-45\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-1.png 1024w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-1-300x216.png 300w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-1-768x553.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Basic Game Diagram<\/figcaption><\/figure>\n\n\n\n<p>Next development I chose was to add a &#8217;round&#8217; counter so the player could keep track of how many times they cleared all the stars, and so I could increase difficulty\/reward based on the wave, firstly by multiplying the score earned by the round number and then by increasing the number of bombs added per round as well, although after playtesting it I found the game became too unfair so I removed that.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"299\" height=\"42\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/11\/image.png\" alt=\"\" class=\"wp-image-54\"\/><\/figure>\n\n\n\n<p><br>I also decided to add a new background as well, something a little higher quality\/resolution than the default one to make the scene look a little better. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"761\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-2-1024x761.png\" alt=\"\" class=\"wp-image-46\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-2-1024x761.png 1024w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-2-300x223.png 300w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-2-768x570.png 768w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-2.png 1291w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>New background, round mechanic and more score than would normally be achieved.<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>After adding the new background, I started to think a lot more about what I could do with the level environment &#8211; if I recreated the background I chose in Photoshop then I could separate elements such as birds and clouds from the background and add them individually to the level and give them movement. I also thought about creating different versions of the sky background for different times of the day and change the background on wave completions. I got a proof of concept ready as I made this before a talk with one of my lecturers and his feedback will likely be really helpful.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"760\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-3-1024x760.png\" alt=\"\" class=\"wp-image-49\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-3-1024x760.png 1024w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-3-300x223.png 300w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-3-768x570.png 768w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-3.png 1296w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Background time Proof of concept (Day)<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"731\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-4-1024x731.png\" alt=\"\" class=\"wp-image-50\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-4-1024x731.png 1024w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-4-300x214.png 300w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-4-768x548.png 768w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/image-4.png 1296w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Background Time Proof of Concept (Dusk)<\/figcaption><\/figure>\n\n\n\n<p>My lecturer suggested I could do this easily by changing background alphas but recommended the alpha changes rapidly to keep the game processing-wise running smoothly (large background).<br>I did plan on getting this idea fully working on the weekend but then heard we&#8217;re going to start using &#8216;Tiled&#8217; next week for creating our levels so I thought I&#8217;d leave this idea for later.<\/p>\n\n\n\n<p>My first Phaser game can be accessed <a href=\"http:\/\/lloydmills.nuacomputerscience.co.uk\/First%20Phaser%20Game\/\">here<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>18\/10\/21 &#8211; This week, we were introduced to Phaser, a 2D game framework for making HTML5 games in JavaScript and followed a demonstration in creating a basic 2D platformer This workshop covered many aspects in quick succession, such as creating the player, camera, handling movement, animations and collisions, creating objects such as collectables and hazards,&hellip; <a class=\"more-link\" href=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/2021\/11\/26\/week-3-developer-journal\/\">Continue reading <span class=\"screen-reader-text\">Week 3 &#8211; Developer Journal<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-bsc1a","entry"],"_links":{"self":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":7,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":57,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions\/57"}],"wp:attachment":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}