{"id":26291,"date":"2024-03-29T11:16:03","date_gmt":"2024-03-29T03:16:03","guid":{"rendered":"http:\/\/hazlina-backup-26291"},"modified":"2024-03-29T11:16:03","modified_gmt":"2024-03-29T03:16:03","slug":"bte1522-innovation-python-week-4-act-6-7","status":"publish","type":"post","link":"\/hazlina-blog\/2024\/03\/29\/bte1522-innovation-python-week-4-act-6-7\/","title":{"rendered":"BTE1522 \u2013 Innovation (Python) \u2013 Week 4 \u2013 Act 6 7"},"content":{"rendered":"<p>Today&#8217;s class on BTE1522 &#8211; Innovation (Python), we continue the exciting journey of Slider Game development through Activities 6 and 7. The focus centered on implementing a game timer and a game over function in the game, enriching the understanding of essential coding concepts while enhancing our gaming experience.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26293\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide15-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide15-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide15-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide15-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide15-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide15.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26294\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide16-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide16-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide16-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide16-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide16-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide16.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26295\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide17-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide17-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide17-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide17-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide17-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide17.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>In Step 6, a game timer is introduced, injecting an element of urgency and time management into our game dynamics. As we looked into this concept, we explored the means of tracking time within the game environment and orchestrating specific events based on elapsed time.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26299\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/pyt1-1024x576.png\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/pyt1-1024x576.png 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/pyt1-300x169.png 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/pyt1-768x432.png 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/pyt1-1200x674.png 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/pyt1.png 1918w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>Step 7 propelled us into the intricacies of timing systems, where we fine-tuned our game mechanics to ensure a fluid and immersive gameplay experience. This step demanded a delicate balance of coordination, as we synchronized various game events, including character movements and enemy appearances.<\/p>\n<p>A pseudo-code for the overall codes:-<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26292\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-163804.jpg\" alt=\"\" width=\"523\" height=\"553\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-163804.jpg 523w, \/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-163804-284x300.jpg 284w\" sizes=\"auto, (max-width: 523px) 85vw, 523px\" \/><\/p>\n<p><strong>Assignment<\/strong><\/p>\n<p>Here is the details of the Assignment that should be completed by April 22nd, 2024.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26298\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-170439-1024x576.png\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-170439-1024x576.png 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-170439-300x169.png 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-170439-768x432.png 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-170439-1200x674.png 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-29-170439.png 1918w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26296\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26297\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide22-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide22-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide22-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide22-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide22-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide22.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26403\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide20-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide20-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide20-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide20-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide20-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide20.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-26404\" src=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1-1024x576.jpg\" alt=\"\" width=\"840\" height=\"473\" srcset=\"\/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1-1024x576.jpg 1024w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1-300x169.jpg 300w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1-768x432.jpg 768w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1-1200x675.jpg 1200w, \/hazlina\/wp-content\/uploads\/2024\/03\/Slide21-1.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s class on BTE1522 &#8211; Innovation (Python), we continue the exciting journey of Slider Game development through Activities 6 and 7. The focus centered on implementing a game timer and a game over function in the game, enriching the understanding of essential coding concepts while enhancing our gaming experience. In Step 6, a game timer &hellip; <a href=\"\/hazlina\/2024\/03\/29\/bte1522-innovation-python-week-4-act-6-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;BTE1522 \u2013 Innovation (Python) \u2013 Week 4 \u2013 Act 6 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[13],"class_list":["post-26291","post","type-post","status-publish","format-standard","hentry","category-information","tag-academia-python-prog"],"_links":{"self":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/posts\/26291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/comments?post=26291"}],"version-history":[{"count":0,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/posts\/26291\/revisions"}],"wp:attachment":[{"href":"\/hazlina-blog\/wp-json\/wp\/v2\/media?parent=26291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/categories?post=26291"},{"taxonomy":"post_tag","embeddable":true,"href":"\/hazlina-blog\/wp-json\/wp\/v2\/tags?post=26291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}