{"id":642,"date":"2012-04-09T19:35:30","date_gmt":"2012-04-09T18:35:30","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=642"},"modified":"2022-09-14T15:19:09","modified_gmt":"2022-09-14T15:19:09","slug":"joc-28","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/04\/09\/joc-28\/","title":{"rendered":"JoC #28: Return of the object interaction"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 If life gives you lemons \u2013 keep them. Because, hey. Free lemons.<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Anonymous<\/em><\/p>\n<p>In this episode, we&#8217;re continuing from the last episode&#8217;s theme and investigate and compare an alternative structure for making our Ball and Counter objects cooperate. We also have a first brief look at casting.<\/p>\n<p>Recognising alternatives is a good skill, and it slowly eases us into discussions about code quality, which we will get to in more detail later.<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #28: Return of the object interaction\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/8tRjUBcJfVM?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-28.mov\">Download video<\/a><\/p>\n<p>The download today (below) is the scenario as it is at the end of this episode. However, try to add a counter into one of your own scenarios to make sure you are fully taking in what&#8217;s going on here.<\/p>\n<p><strong>Concepts discussed<\/strong>:\u00a0<em>object interaction, casting, score counting<\/em><\/p>\n<p>Download:\u00a0<a href=\"http:\/\/www.greenfoot.org\/download\/files\/joc\/breakout-v3.zip\">breakout-v3.zip<\/a>\u00a0\u00a0(the scenario at the end of this episode)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 If life gives you lemons \u2013 keep them. Because, hey. Free lemons. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Anonymous In this episode, we&#8217;re continuing from the last episode&#8217;s theme and investigate and compare an alternative structure &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/04\/09\/joc-28\/\">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":[78],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-object-interaction"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/642","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=642"}],"version-history":[{"count":2,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":1121,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/642\/revisions\/1121"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}