<snapdata remixID="11081861"><project name="Project 2 Pong" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAFdklEQVR4nO3Yz0/TdxzH8aLE8CNcPOjCYncgLF68uJMX/wL/AXcwuyzhNhaNO2zOizcTY9SgITNLBikYJoGycCgtNRS+fNN9W8LXol0DZrusi1Brf9J++/32tRPfDIuwFr68U3g9kveBpt/vp2++zzQBV6lsYrchOiiGYdWMS/pD0fHGAEkUAyRR/yvA6elpxOPxQxlFUeDxeJzeu6m9efMGXq/3UEZRFFQqFcd22TPAlZWVfQW1traG+a8+wau+vScZ+Nm+bmBgwLGlm9no6CgSiUTDs7q6it/6vsDYl5/tOfFlDYlEAvF4HJFIxJF9dg0wHA5D13Xoug6v14t0Oo3FxUWYpomzZ8/i+vXrCAaDmJ6eRn9/P65evYqFhQXcv38fDx48gK7reP1qBcn+T5G7ec4e6+0aqqX8ttdyN88h8/xH+zxd11EsFh1ZulklEgnEYjHEYjFMTU2hvb0duq4jlUrZr+80T58+RWdnJ2KxGP6Iv8bf33Rv+71XjRLMv6I7Po+te+i67sg34a4BDg8PQ9M0aJqG8fFx6LoOy7KwsbGBhw8fIp/Po7e3Fy6XC3fv3oXb7cbS0hI0TcOjR4+gaRpe6sv459vtARqLQ6halZqF3z+/ZZ+naRqSyeSBL9zMRkZGEI1GEY1GMTExga6uLuRyOVQqFdy7dw+xWAw3btzAiRMncObMGfT29sI0TUQiEbS2tmJ5eRkrL1/WPI/NoT6Yf0Z2fB5b50WjUUeex64BhkIhKIoCRVEwPz+P9fV1KIoC0zSRzWZhGAYmJycRCoWQTqcRDoft95dKJSiKgqVopGbh4i9fI/f95zULp8d+sK9XFAWFQuHAF25mU1NTUFUVqqpibGwM6+vrUFUV2WwWly5dQqFQwLVr1zAwMAC3242enh6oqoqLFy+is7MTmqZheWmp5nkAQNU0ap/Hr7fs81RVxbt37w58p10DrFarePHixUcnGAwiHA7v+h7/jA9vP1j4Y5Oa/cm+7vbt2we+bLPLZDKYm5vbcUKhEAKBACzLsn/e6X0R7feaAD/6PEa/s68bGhpyZKc9/wgplUoYHByEz+dreAKBAGZnZ/ccn88Hj8eDO3fuOLLsUfD48WP4/f6GZ2ZmBtmNJKrF93tOcHYWfr8fHo8HhmE4sg//D9iETNNEuVw+tHESAyRRDJBEMUASxQBJFAMkUQyQRDFAEsUASRQDJFEMkEQxQBLFAEkUAyRRDJBEMUASxQBJFAMkUQyQRDFAEsUASRQDJFEMkEQxQBLFAEkUAyRRDJBEMUASxQBJFAMkUQyQRDFAEsUASRQDJFEMkEQxQBLFAEkUAyRRDJBEMUASxQBJFAMkUQyQRDFAEsUASRQDJFEMkEQxQBLFAEkUAyRRdQWYyWSwurpqT7Vadepz0TFRV4BPnjyBy+WyJ5/PO/W56JhggCSKAZIoBkiiGCCJYoAkigGSKAZIohggiWKAJIoBkigGSPuSy+Vw+fJle1KpVF3XM0Dal1Qqta2JZDJZ1/UMkPaFAZIoBkiiGCCJYoAkigGSqEMNcHBwECdPnrSnUCjUdRgdPYcaoGVZMAzDHqJDDZDoQwyQRDFAEsUASRQDJFEMkEQxQBLFAEmUSIDFYhFXrlxBW1sbTp06hWfPnjVyGzoCRALs7u7edmhLS0sjt6EjQCTA/x64NZFIpJFbUZMrl8sYHh62Z3Nzs67rGwqwo6NjW3xtbW2wLKuRW9Ex11CA+Xwe58+fx+nTp3HhwoW6v3aJtvCvYBLFAEkUAyRRDJBEMUASxQBJFAMkUQyQRDFAEsUASRQDJFEMkEQxQBLFAEkUAyRRDJBEMUASxQBJFAMkUQyQRDFAEsUASRQDJFEMkET9C0+gjX5uNQBTAAAAAElFTkSuQmCC</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base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><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Paddle 1" idx="3" x="-200" y="-35" heading="90" scale="0.8" volume="100" pan="0" rotation="1" draggable="true" costume="1" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="Untitled" center-x="6.5" center-y="38.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAABNCAYAAAB9s+4QAAAALklEQVRIie3LMQEAMAwDoEiZf1OV0mlobg5OkuQVsgVJkiRJkiRJkiRJkqo0Vx8PX9hSg4moXwAAAABJRU5ErkJggg==" id="10"/></item></list></costumes><sounds><list struct="atomic" id="11"></list></sounds><blocks></blocks><variables></variables><scripts><script x="78" y="48"><block s="receiveGo"></block><block s="gotoXY"><l>-200</l><l>0</l></block><block s="doForever"><script><block s="doIf"><block s="reportKeyPressed"><l><option>w</option></l></block><script><block s="changeYPosition"><l>5</l></block></script></block><block s="doIf"><block s="reportKeyPressed"><l><option>s</option></l></block><script><block s="changeYPosition"><l>-5</l></block></script></block></script></block></script></scripts></sprite><sprite name="Sprite" idx="4" x="239" y="-2" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="127.19399999999997,147.89999999999998,0,1" pen="tip" id="38"><wear><costume name="Untitled" center-x="16" center-y="180" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAFoCAYAAAA2BvlBAAAA70lEQVR4nO3OMRGEABAEwZEALwCNOCIneYkQgQQu6anaeLuq1nNrPbeWY/l0T9dQo+cvAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYBxQjSF6+/33kVU3IQCB03ZKS9EAAAAASUVORK5CYII=" id="39"/></wear><costumes><list id="40"><item><costume name="Untitled" center-x="15" center-y="179.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAFnCAYAAACxavkfAAAAyUlEQVR4nO3NsRGAIBAAsOdcADwHcBB2pafhnMhRZAsoTJE6EaXXKL1GbvdSx/V8O4jFYrFYLBaLxWKxWCwWi8VisVgsFovFYrFYLBaLxWKxWCwWi8VisVgsFovFYrFYLBaLxWKxWCwWi8VisVgsFovFYrFYLBaLxWKxWCwWi8VisVgsFovFYrFYLBaLxWKxWCwWi8VisVgsFovFYrFYLBaLxWKxWCwWi8VisVgsFovFYrFYLBaLxWKxWCwWi8VisVj82zid491hAub7qSHdssYfAAAAAElFTkSuQmCC" id="41"/></item></list></costumes><sounds><list struct="atomic" id="42"></list></sounds><blocks></blocks><variables></variables><scripts></scripts></sprite><sprite name="Sprite(2)" idx="5" x="-232" y="-0.5" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="1" color="127.19399999999997,147.89999999999998,0,1" pen="tip" id="46"><inherit exemplar="Sprite"><list struct="atomic" id="47">scripts,sounds</list></inherit><costumes><list id="48"><item><ref id="39"></ref></item></list></costumes><blocks></blocks><variables></variables><dispatches></dispatches></sprite><sprite name="Paddle 2" idx="1" x="200" y="-70" heading="90" scale="0.8" volume="100" pan="0" rotation="1" draggable="true" costume="1" color="80,80,80,1" pen="tip" id="52"><costumes><list id="53"><item><costume name="Untitled" center-x="6.5" center-y="38.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAABNCAYAAAB9s+4QAAAALklEQVRIie3LMQEAMAwDoEiZf1OV0mlobg5OkuQVsgVJkiRJkiRJkiRJkqo0Vx8PX9hSg4moXwAAAABJRU5ErkJggg==" id="54"/></item></list></costumes><sounds><list struct="atomic" id="55"></list></sounds><blocks></blocks><variables></variables><scripts><script x="60" y="30"><block s="receiveGo"></block><block s="gotoXY"><l>200</l><l>0</l></block><block s="doForever"><script><block s="doIf"><block s="reportKeyPressed"><l><option>up arrow</option></l></block><script><block s="changeYPosition"><l>5</l></block></script></block><block s="doIf"><block s="reportKeyPressed"><l><option>down arrow</option></l></block><script><block s="changeYPosition"><l>-5</l></block></script></block></script></block></script></scripts></sprite><sprite name="Speed" idx="2" x="-193.0223195903851" y="-100.71594304682145" heading="260" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="1" color="173.4,72.828,0,1" pen="tip" id="82"><costumes><list id="83"><item><costume name="Untitled" center-x="9" center-y="7.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAPCAYAAADphp8SAAAAhUlEQVQ4jeXMqw2AMBRG4cMOrIBjDASySyDYoRvgq1ioimAZAYYAc29CyqNAJX9yTB8f3C8HSimPvD2sADpgAtagSe6KGGJPPl9lrxD3AtFciDQfEK1RJAPmBGgWAxIQjR9APgHxe6hKgCqCtR+QNkR0NTA8AAZ5G50BemAEFmmUM3P2YQP1b7gdA1CrJQAAAABJRU5ErkJggg==" id="84"/></item></list></costumes><sounds><list struct="atomic" id="85"></list></sounds><blocks></blocks><variables></variables><scripts><script x="207" y="125.99999999999994"><block s="receiveMessage"><l>Reset</l></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="doSetVar"><l>Starting direction</l><block s="reportRandom"><l>1</l><l>2</l></block></block><block s="doIf"><block s="reportEquals"><block var="Starting direction"/><l>1</l></block><script><block s="setHeading"><block s="reportRandom"><l>240</l><l>300</l></block></block></script></block><block s="doIf"><block s="reportEquals"><block var="Starting direction"/><l>2</l></block><script><block s="setHeading"><block s="reportRandom"><l>80</l><l>210</l></block></block></script></block><block s="doSetVar"><l>Pong Speed</l><l>3</l></block><block s="doForever"><script><block s="forward"><block var="Pong Speed"/></block><block s="bounceOffEdge"></block><block s="doIf"><block s="reportOr"><block s="reportTouchingObject"><l>Paddle 1</l></block><block s="reportTouchingObject"><l>Paddle 2</l></block></block><script><block s="setHeading"><block s="reportDifference"><l>360</l><block s="direction"></block></block></block><block s="doSetVar"><l>Pong Speed</l><block s="reportSum"><block var="Pong Speed"/><l>1</l></block></block></script></block><block s="doIf"><block s="reportTouchingObject"><l>Sprite</l></block><script><block s="doSetVar"><l>Player 1</l><block s="reportSum"><block var="Player 1"/><l>1</l></block></block><block s="doIf"><block s="reportEquals"><block var="Player 1"/><l>5</l></block><script><block s="doBroadcast"><l>Player 1 Wins</l></block></script></block><block s="doBroadcast"><l>Reset</l></block></script></block><block s="doIf"><block s="reportTouchingObject"><l>Sprite(2)</l></block><script><block s="doSetVar"><l>Player 2</l><block s="reportSum"><block var="Player 2"/><l>1</l></block></block><block s="doIf"><block s="reportEquals"><block var="Player 2"/><l>5</l></block><script><block s="doBroadcast"><l>Player 2 Wins</l></block></script></block><block s="doBroadcast"><l>Reset</l></block></script></block></script></block></script><script x="702" y="10"><block s="receiveGo"></block><block s="doSetVar"><l>Player 1</l><l>0</l></block><block s="doSetVar"><l>Player 2</l><l>0</l></block><block s="doBroadcast"><l>Reset</l></block></script><script x="697" y="355"><block s="receiveMessage"><l>Player 1 Wins</l></block><block s="show"></block><block s="bubble"><l>Game Over Player 1 wins</l></block><block s="gotoXY"><l>0</l><l>0</l></block></script><script x="247" y="27.99999999999997"><block s="doBroadcast"><l>Reset</l></block></script><script x="746" y="503.83333333333337"><block s="doStopThis"><l><option>all</option></l></block></script><script x="1003" y="353.26666666666665"><block s="receiveMessage"><l>Player 2 Wins</l></block><block s="show"></block><block s="bubble"><l>Game Over Player 2 wins</l></block><block s="gotoXY"><l>0</l><l>0</l></block></script></scripts></sprite><watcher var="score 1" style="normal" x="10" y="31.000001999999995" color="243,118,29" hidden="true"/><watcher var="score 2" style="normal" x="10" y="52.00000399999999" color="243,118,29" hidden="true"/><watcher var="Pong Speed" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="Starting direction" style="normal" x="10" y="31.000001999999995" color="243,118,29" hidden="true"/><watcher var="Player 1" style="normal" x="22" y="12.00000399999999" color="243,118,29"/><watcher var="Player 2" style="normal" x="322" y="13.000005999999985" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="speak %&apos;text&apos; with %&apos;lang&apos; accent $nl and pitch %&apos;pitch&apos; rate %&apos;rate&apos;" type="command" category="sound"><header></header><code></code><translations>de:sprich _ mit _ Aussprache _ und Höhe _ Geschwindigkeit _&#xD;pt:fala _ na língua _ _ com tom _ e velocidade _&#xD;</translations><inputs><input type="%s">Hello, World!</input><input type="%txt">en-US<options>العربية=ar&#xD;Български=bg&#xD;বাংলা=bn&#xD;Català=ca&#xD;Català - Valencià=ca-VA&#xD;Česky=cs&#xD;Deutsch=de&#xD;Dansk=dk&#xD;Ελληνικά=el&#xD;English-American=en-US&#xD;English-British=en-GB&#xD;Esperanto=eo&#xD;Español=es&#xD;Eesti=et&#xD;Euskara=eu&#xD;suomi=fi&#xD;Français=fr&#xD;Galego=gl&#xD;Hrvatski=hr&#xD;Magyar=hu&#xD;Interlingua=ia&#xD;Bahasa Indonesia=id&#xD;Italiano=it&#xD;日本語=ja&#xD;にほんご=ja-HIRA&#xD;ಕನ್ನಡ=kn&#xD;한국어=ko&#xD;Malayalam=ml&#xD;Nederlands=nl&#xD;Norsk=no&#xD;Polski=pl&#xD;Português=pt&#xD;Português do Brasil=pt-BR&#xD;Român=ro&#xD;Русский=ru&#xD;Slovenščina=si&#xD;svenska=sv&#xD;Tamil=ta&#xD;Telagu=te&#xD;Türkçe=tr&#xD;Українська=ua&#xD;简体中文=zh-CN&#xD;繁體中文=zh-TW</options></input><input type="%n">1</input><input type="%n">1</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>msg</l><l>accent</l><l>pitch</l><l>rate</l></list><l>var utter = new SpeechSynthesisUtterance(msg);&#xD;utter.lang = accent;&#xD;utter.pitch = pitch;&#xD;utter.rate = rate;&#xD;window.speechSynthesis.speak(utter);</l></block><list><block var="text"/><block var="lang"/><block var="pitch"/><block var="rate"/></list></block></script></block-definition><block-definition s="speak %&apos;text&apos; with %&apos;lang&apos; accent $nl and pitch %&apos;pitch&apos; rate %&apos;rate&apos; and wait" type="command" category="sound"><header></header><code></code><translations>de:sprich _ mit _ Aussprache _ und Höhe _ Geschwindigkeit _ und warte&#xD;pt:fala _ na língua _ _ com tom _ e velocidade _ , e espera&#xD;</translations><inputs><input type="%s">Hello, World!</input><input type="%txt">en-US<options>العربية=ar&#xD;Български=bg&#xD;বাংলা=bn&#xD;Català=ca&#xD;Català - Valencià=ca-VA&#xD;Česky=cs&#xD;Deutsch=de&#xD;Dansk=dk&#xD;Ελληνικά=el&#xD;English-American=en-US&#xD;English-British=en-GB&#xD;Esperanto=eo&#xD;Español=es&#xD;Eesti=et&#xD;Euskara=eu&#xD;suomi=fi&#xD;Français=fr&#xD;Galego=gl&#xD;Hrvatski=hr&#xD;Magyar=hu&#xD;Interlingua=ia&#xD;Bahasa Indonesia=id&#xD;Italiano=it&#xD;日本語=ja&#xD;にほんご=ja-HIRA&#xD;ಕನ್ನಡ=kn&#xD;한국어=ko&#xD;Malayalam=ml&#xD;Nederlands=nl&#xD;Norsk=no&#xD;Polski=pl&#xD;Português=pt&#xD;Português do Brasil=pt-BR&#xD;Român=ro&#xD;Русский=ru&#xD;Slovenščina=si&#xD;svenska=sv&#xD;Tamil=ta&#xD;Telagu=te&#xD;Türkçe=tr&#xD;Українська=ua&#xD;简体中文=zh-CN&#xD;繁體中文=zh-TW</options></input><input type="%n">1</input><input type="%n">1</input></inputs><script><block s="doDeclareVariables"><list><l>test</l></list></block><block s="doSetVar"><l>test</l><block s="evaluate"><block s="reportJSFunction"><list><l>msg</l><l>accent</l><l>pitch</l><l>rate</l></list><l>var utter = new SpeechSynthesisUtterance(msg),&#xD;    isDone = false;&#xD;utter.lang = accent;&#xD;utter.pitch = pitch;&#xD;utter.rate = rate;&#xD;utter.onend = function () {isDone = true; };&#xD;window.speechSynthesis.speak(utter);&#xD;return function () {return isDone; };</l></block><list><block var="text"/><block var="lang"/><block var="pitch"/><block var="rate"/></list></block></block><block s="doWaitUntil"><block s="evaluate"><block var="test"/><list></list></block></block></script></block-definition></blocks><variables><variable name="score 1"><l>0</l></variable><variable name="score 2"><l>0</l></variable><variable name="Pong Speed"><l>4</l></variable><variable name="Starting direction"><l>2</l></variable><variable name="Player 1"><l>3</l></variable><variable name="Player 2"><l>2</l></variable></variables></project><media name="Project 2 Pong" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>