{"id":714,"date":"2012-07-16T17:50:23","date_gmt":"2012-07-16T16:50:23","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=714"},"modified":"2022-09-14T15:24:30","modified_gmt":"2022-09-14T15:24:30","slug":"joc-33","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/07\/16\/joc-33\/","title":{"rendered":"JoC #33: Playing Breakout! Collision detection"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 Finagles&#8217; 8th Rule: Teamwork is essential; it allows you to blame someone\u00a0else.<\/em><\/p>\n<p>Today, we&#8217;re finally getting our breakout game into a playable state! Yes!!<\/p>\n<p>See how to implement functionality to recognise when the ball hits a block, and make the block disappear. This is really the centrepiece of our program &#8211; from now on, everything else is detail.<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #33: Playing Breakout! Collision detection\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/u1ToiEYKwRI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p style=\"text-align: right\"><a href=\"http:\/\/www.greenfoot.org\/static\/joc\/mov\/JOC-33.mov\">Download video<\/a><\/p>\n<p><strong>Concepts discussed<\/strong>:\u00a0<em>collision detection, removing an object from the world<\/em><\/p>\n<p>Download (scenario as of beginning of this episode):\u00a0<a href=\"http:\/\/www.greenfoot.org\/download\/files\/joc\/breakout-v7.zip\">breakout-v7.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 Finagles&#8217; 8th Rule: Teamwork is essential; it allows you to blame someone\u00a0else. Today, we&#8217;re finally getting our breakout game into a playable state! Yes!! See how to implement functionality to recognise when the ball hits a block, &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/07\/16\/joc-33\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":179,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,6],"tags":[36,57],"class_list":["post-714","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-collision-detection","tag-if-statement"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/users\/179"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/comments?post=714"}],"version-history":[{"count":2,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/714\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/714\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}