{"id":91,"date":"2024-09-08T03:28:26","date_gmt":"2024-09-08T03:28:26","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/rebecca-dodge-game\/"},"modified":"2026-10-29T05:11:03","modified_gmt":"2026-10-29T05:11:03","slug":"rebecca-dodge-game","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/rebecca-dodge-game\/","title":{"rendered":"Another little Dodge game"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I am teaching Rebecca how to make a little Dodge game in App Lab. It is still called Untitled Project over there. Naming things can wait. We are having fun making it work together: move your square with the mouse and try not to run into the other squares.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is one of my favorite games to make when learning something new, so it seemed like a good one to build together. I wanted to work on the game loop, lists of enemies, and checking whether two rectangles overlap. Each enemy has its own position, speed, size, and color. The player slowly gets bigger, which makes surviving a little less comfortable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"450\" src=\"https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2024\/11\/rebecca-untitled-screenshot.png\" alt=\"The player square and moving enemies in Rebecca&#039;s Dodge game.\" class=\"wp-image-110\" srcset=\"https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2024\/11\/rebecca-untitled-screenshot.png 320w, https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2024\/11\/rebecca-untitled-screenshot-213x300.png 213w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/studio.code.org\/projects\/applab\/fmratRCo02GPthCaxkhFCpEAvZzbhD52YH0oqAOaCP4\">Try Untitled Project on Code.org.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am teaching Rebecca how to make a little Dodge game in App Lab. It is still called Untitled Project over there. Naming things can wait. We are having fun making it work together: move your square with the mouse and try not to run into the other squares. This is one of my favorite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[73,5,3,25],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-programming-with-kids","tag-code-org","tag-family","tag-javascript","tag-teaching"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":1,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":111,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions\/111"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}