{"id":245795,"date":"2026-03-08T08:46:33","date_gmt":"2026-03-08T08:46:33","guid":{"rendered":"https:\/\/prog.learn4fun.at\/?page_id=245795"},"modified":"2026-03-10T05:44:12","modified_gmt":"2026-03-10T05:44:12","slug":"scratch-2a-pingpong","status":"publish","type":"page","link":"https:\/\/prog.learn4fun.at\/index.php\/scratch-2a-pingpong\/","title":{"rendered":"Scratch (2a) &#8211; PingPong"},"content":{"rendered":"<div class=\"et_pb_section_0 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_0 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_0 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_12_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_heading_0 et_pb_heading et_pb_module et_block_module preset--module--divi-heading--f0c675ea-2574-4d0e-b725-30f8550a8550\"><div class=\"et_pb_heading_container\"><h4 class=\"et_pb_module_header\">(2a) PING PONG  :  2Player-Game<\/h4><\/div><\/div>\n\n<div class=\"et_pb_video_0 et_pb_video et_pb_module et_flex_module dc-autoplay2\"><div class=\"et_pb_video_box\"><video controls><source type=\"video\/mp4\" src=\"https:\/\/prog.learn4fun.at\/wp-content\/uploads\/2026\/03\/lassunsbeginnen.mp4\" \/><\/video><\/div><\/div>\n\n<div class=\"et_pb_code_0 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><script>\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n const videos = document.querySelectorAll(\".dc-autoplay2 video\");\n\n videos.forEach((video) => {\n   video.muted = false;\n   video.loop = false;\n   video.playsInline = true;\n   video.setAttribute(\"playsinline\", \"\");\n   video.removeAttribute(\"controls\");\n\n   const tryPlay = () => video.play().catch(() => {});\n   video.addEventListener(\"loadedmetadata\", tryPlay);\n   tryPlay();\n });\n});\n<\/script><\/div><\/div>\n<\/div>\n\n<div class=\"et_pb_column_1 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_12_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_video_1 et_pb_video et_pb_module et_flex_module dc-autoplay\"><div class=\"et_pb_video_box\"><video controls><source type=\"video\/mp4\" src=\"https:\/\/prog.learn4fun.at\/wp-content\/uploads\/2026\/03\/pingpong_demo.mp4\" \/><\/video><\/div><\/div>\n\n<div class=\"et_pb_code_1 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><script>\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n const videos = document.querySelectorAll(\".dc-autoplay video\");\n\n videos.forEach((video) => {\n   video.muted = true;\n   video.loop = true;\n   video.playsInline = true;\n   video.setAttribute(\"playsinline\", \"\");\n   video.removeAttribute(\"controls\");\n\n   const tryPlay = () => video.play().catch(() => {});\n   video.addEventListener(\"loadedmetadata\", tryPlay);\n   tryPlay();\n });\n});\n<\/script><\/div><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_1 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_2 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_heading_1 et_pb_heading et_pb_module et_flex_module\"><div class=\"et_pb_heading_container\"><h1 class=\"et_pb_module_header\">Die IDEE:<\/h1><\/div><\/div>\n\n<div class=\"et_pb_heading_2 et_pb_heading et_pb_module et_flex_module\"><div class=\"et_pb_heading_container\"><h1 class=\"et_pb_module_header\">Ein Ball bewegt sich zwischen Balken, die von 2 Spielern bewegt werden k\u00f6nnen. Sollte der Ball hinter dem Balken landen, wird dem gegen\u00fcberliegenden Spieler ein Punkt gutgeschrieben (TOR!).<\/h1><\/div><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_2 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_3 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_module et_pb_button_module_wrapper et_pb_button_0_wrapper preset--module--divi-button--1bffc0fc-42a0-49d1-bd9a-ae3ade2d7206_wrapper\"><a class=\"et_pb_button_0 et_pb_button et_pb_bg_layout_light et_pb_module et_block_module preset--module--divi-button--1bffc0fc-42a0-49d1-bd9a-ae3ade2d7206\" href=\"\/index.php\/scratch-2b-pingpong\/\">weiter<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"folder":[19],"class_list":["post-245795","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages\/245795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/comments?post=245795"}],"version-history":[{"count":10,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages\/245795\/revisions"}],"predecessor-version":[{"id":245812,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages\/245795\/revisions\/245812"}],"wp:attachment":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/media?parent=245795"}],"wp:term":[{"taxonomy":"folder","embeddable":true,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/folder?post=245795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}