{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":14},{"__isSmartRef__":true,"id":26},{"__isSmartRef__":true,"id":41},{"__isSmartRef__":true,"id":80},{"__isSmartRef__":true,"id":118},{"__isSmartRef__":true,"id":134},{"__isSmartRef__":true,"id":150}],"scripts":[],"id":311,"shape":{"__isSmartRef__":true,"id":166},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Pong","partsBinMetaInfo":{"__isSmartRef__":true,"id":172},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":173},"eventHandler":{"__isSmartRef__":true,"id":174},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":175},"layout":{"__isSmartRef__":true,"id":176},"isBeingDragged":false,"scriptAnnotations":{"__isSmartRef__":true,"id":177},"_Position":{"__isSmartRef__":true,"id":206},"distanceToDragEvent":{"__isSmartRef__":true,"id":207},"_Rotation":0,"_Scale":1.002003004005006,"speed":5,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":208},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[],"scripts":[],"id":455,"shape":{"__isSmartRef__":true,"id":2},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8},"showsHalos":false,"name":"RightBar","partsBinMetaInfo":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":10},"eventHandler":{"__isSmartRef__":true,"id":11},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":12},"owner":{"__isSmartRef__":true,"id":0},"layout":{"__isSmartRef__":true,"id":13},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box"},"2":{"position":{"__isSmartRef__":true,"id":3},"_Extent":{"__isSmartRef__":true,"id":4},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5},"_Fill":{"__isSmartRef__":true,"id":6},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4":{"x":25,"y":75,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"6":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"8":{"x":660,"y":185,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"10":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12":{"x":21,"y":68,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13":{},"14":{"submorphs":[],"scripts":[],"id":397,"shape":{"__isSmartRef__":true,"id":15},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":20},"showsHalos":false,"name":"LeftBar","partsBinMetaInfo":{"__isSmartRef__":true,"id":21},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":22},"eventHandler":{"__isSmartRef__":true,"id":23},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":24},"layout":{"__isSmartRef__":true,"id":25},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box"},"15":{"position":{"__isSmartRef__":true,"id":16},"_Extent":{"__isSmartRef__":true,"id":17},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5},"_Fill":{"__isSmartRef__":true,"id":18},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":19},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"17":{"x":25,"y":75,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"18":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"19":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20":{"x":15,"y":179,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"21":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"22":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"23":{"morph":{"__isSmartRef__":true,"id":14},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24":{"x":21,"y":68,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"25":{},"26":{"submorphs":[],"scripts":[],"id":8440,"shape":{"__isSmartRef__":true,"id":27},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"_Position":{"__isSmartRef__":true,"id":33},"name":"Ball","partsBinMetaInfo":{"__isSmartRef__":true,"id":34},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":35},"eventHandler":{"__isSmartRef__":true,"id":36},"layout":{"__isSmartRef__":true,"id":37},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":38},"direction":{"__isSmartRef__":true,"id":39},"_origin":{"__isSmartRef__":true,"id":40},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Morph"},"27":{"position":{"__isSmartRef__":true,"id":28},"_Extent":{"__isSmartRef__":true,"id":29},"_Fill":{"__isSmartRef__":true,"id":30},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":31},"_Position":{"__isSmartRef__":true,"id":32},"_BorderWidth":3.85,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_BorderColor":{"__isSmartRef__":true,"id":5},"__LivelyClassName__":"lively.morphic.Shapes.Ellipse"},"28":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"29":{"x":25,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"30":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"31":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"32":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"33":{"x":335,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"34":{"partsSpaceName":"PartsBin/Basic","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"an Ellipse","partName":"Ellipse","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"35":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"36":{"morph":{"__isSmartRef__":true,"id":26},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"37":{},"38":{"x":32,"y":30,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"39":{"x":-1,"y":-1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"40":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"41":{"submorphs":[{"__isSmartRef__":true,"id":42}],"scripts":[],"id":1604,"shape":{"__isSmartRef__":true,"id":56},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":62},"showsHalos":false,"name":"StopButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":63},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":64},"eventHandler":{"__isSmartRef__":true,"id":65},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":66},"layout":{"__isSmartRef__":true,"id":67},"owner":{"__isSmartRef__":true,"id":0},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":68},"scriptAnnotations":{"__isSmartRef__":true,"id":69},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":72},"__LivelyClassName__":"lively.morphic.Box"},"42":{"submorphs":[],"scripts":[],"id":1605,"shape":{"__isSmartRef__":true,"id":43},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":48},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":46},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":49},"textChunks":[{"__isSmartRef__":true,"id":50}],"charsReplaced":"start","lastFindLoc":-5,"priorSelectionRange":[0,4],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":52},"renderContextTable":{"__isSmartRef__":true,"id":53},"eventHandler":{"__isSmartRef__":true,"id":54},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":41},"distanceToDragEvent":{"__isSmartRef__":true,"id":55},"_Rotation":0,"_Scale":1,"eventsAreIgnored":true,"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"43":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":44},"_Extent":{"__isSmartRef__":true,"id":45},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":46},"renderContextTable":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"44":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"45":{"x":168,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"46":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"47":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"48":{"x":22.954023000020698,"y":7.105427357601002e-13,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"49":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"50":{"style":{"__isSmartRef__":true,"id":51},"morph":{"__isSmartRef__":true,"id":42},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":42},"storedString":"stop","__LivelyClassName__":"lively.morphic.TextChunk"},"51":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"52":{"x":168,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"53":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"54":{"morph":{"__isSmartRef__":true,"id":42},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"55":{"x":100.99800099998515,"y":-9.97401300000061,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"56":{"position":{"__isSmartRef__":true,"id":57},"_Extent":{"__isSmartRef__":true,"id":58},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":59},"_Fill":{"__isSmartRef__":true,"id":60},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":61},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"57":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"58":{"x":76,"y":23,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"59":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"60":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"61":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"62":{"x":361.27636200000006,"y":323.35232400000007,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"63":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"64":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"65":{"morph":{"__isSmartRef__":true,"id":41},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"66":{"x":76,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"67":{},"68":{"x":112,"y":-7.000000000000057,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"69":{"onMouseDown":{"__isSmartRef__":true,"id":70}},"70":{"time":{"__isSmartRef__":true,"id":71},"user":"fbo"},"71":{"isSerializedDate":true,"string":"Fri Jul 29 2011 13:53:56 GMT+0200 (CEST)"},"72":{"onMouseDown":{"__isSmartRef__":true,"id":73}},"73":{"varMapping":{"__isSmartRef__":true,"id":74},"source":"function onMouseDown() {\n\tthis.get(\"Pong\").stopGame();\n}","funcProperties":{"__isSmartRef__":true,"id":79},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"74":{"this":{"__isSmartRef__":true,"id":41},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":75}},"75":{"$super":{"__isSmartRef__":true,"id":76}},"76":{"varMapping":{"__isSmartRef__":true,"id":77},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":78},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"77":{"obj":{"__isSmartRef__":true,"id":41},"name":"onMouseDown"},"78":{},"79":{},"80":{"submorphs":[{"__isSmartRef__":true,"id":81}],"scripts":[],"id":99,"shape":{"__isSmartRef__":true,"id":95},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":101},"showsHalos":false,"name":"StartButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":102},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":103},"eventHandler":{"__isSmartRef__":true,"id":104},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":105},"layout":{"__isSmartRef__":true,"id":106},"scriptAnnotations":{"__isSmartRef__":true,"id":107},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":110},"__LivelyClassName__":"lively.morphic.Box"},"81":{"submorphs":[],"scripts":[],"id":164,"shape":{"__isSmartRef__":true,"id":82},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":87},"_MaxTextWidth":61,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":85},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":88},"textChunks":[{"__isSmartRef__":true,"id":89}],"charsReplaced":"startmmmmsxmkkmmmmssmxmxmmmmmxmxxmxxmxmxxmxxmxmxmxxmxxxxxxxxxxxxxsssssssssssssssssssssssssssssssssskkkkkkkkkkkmmmmmkkkmmmkmmkk","lastFindLoc":-126,"priorSelectionRange":[0,5],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":91},"renderContextTable":{"__isSmartRef__":true,"id":92},"eventHandler":{"__isSmartRef__":true,"id":93},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":80},"distanceToDragEvent":{"__isSmartRef__":true,"id":94},"_Rotation":0,"_Scale":1,"eventsAreIgnored":true,"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"82":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":83},"_Extent":{"__isSmartRef__":true,"id":84},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":85},"renderContextTable":{"__isSmartRef__":true,"id":86},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"83":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"84":{"x":61,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"85":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"86":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"87":{"x":21.956022000014684,"y":-0.998000999998709,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"88":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"89":{"style":{"__isSmartRef__":true,"id":90},"chunkOwner":{"__isSmartRef__":true,"id":81},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"start","__LivelyClassName__":"lively.morphic.TextChunk"},"90":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"91":{"x":61,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"92":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"93":{"morph":{"__isSmartRef__":true,"id":81},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"94":{"x":92.04397799998549,"y":-2.0000000000005116,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"95":{"position":{"__isSmartRef__":true,"id":96},"_Extent":{"__isSmartRef__":true,"id":97},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":98},"_Fill":{"__isSmartRef__":true,"id":99},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":100},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"96":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"97":{"x":76,"y":23,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"98":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"99":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"100":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"101":{"x":282.43428299999994,"y":323.35232399999995,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"102":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"103":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"104":{"morph":{"__isSmartRef__":true,"id":80},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"105":{"x":76,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"106":{},"107":{"onMouseDown":{"__isSmartRef__":true,"id":108}},"108":{"time":{"__isSmartRef__":true,"id":109},"user":"fbo"},"109":{"isSerializedDate":true,"string":"Fri Jul 29 2011 13:51:55 GMT+0200 (CEST)"},"110":{"onMouseDown":{"__isSmartRef__":true,"id":111}},"111":{"varMapping":{"__isSmartRef__":true,"id":112},"source":"function onMouseDown() {\n\tthis.get(\"Pong\").startGame();\n}","funcProperties":{"__isSmartRef__":true,"id":117},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"112":{"this":{"__isSmartRef__":true,"id":80},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":113}},"113":{"$super":{"__isSmartRef__":true,"id":114}},"114":{"varMapping":{"__isSmartRef__":true,"id":115},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":116},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"115":{"obj":{"__isSmartRef__":true,"id":80},"name":"onMouseDown"},"116":{},"117":{},"118":{"submorphs":[],"scripts":[],"id":1399,"shape":{"__isSmartRef__":true,"id":119},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":124},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":122},"showsHalos":false,"_FontSize":22,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"PointsRight","partsBinMetaInfo":{"__isSmartRef__":true,"id":125},"textChunks":[{"__isSmartRef__":true,"id":126}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,0],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":128},"renderContextTable":{"__isSmartRef__":true,"id":129},"eventHandler":{"__isSmartRef__":true,"id":130},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"layout":{"__isSmartRef__":true,"id":131},"_TextColor":{"__isSmartRef__":true,"id":132},"owner":{"__isSmartRef__":true,"id":0},"distanceToDragEvent":{"__isSmartRef__":true,"id":133},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"119":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":120},"_Extent":{"__isSmartRef__":true,"id":121},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":122},"renderContextTable":{"__isSmartRef__":true,"id":123},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"120":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"121":{"x":168,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"122":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"123":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"124":{"x":368.26236900000055,"y":13.972013999999717,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"125":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"126":{"style":{"__isSmartRef__":true,"id":127},"chunkOwner":{"__isSmartRef__":true,"id":118},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"127":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"128":{"x":168,"y":34,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"129":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"130":{"morph":{"__isSmartRef__":true,"id":118},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"131":{},"132":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"133":{"x":104.73163399999959,"y":-14.97201399999966,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"134":{"submorphs":[],"scripts":[],"id":111,"shape":{"__isSmartRef__":true,"id":135},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":140},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":138},"showsHalos":false,"_FontSize":22,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"PointsLeft","partsBinMetaInfo":{"__isSmartRef__":true,"id":141},"textChunks":[{"__isSmartRef__":true,"id":142}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,1],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":144},"renderContextTable":{"__isSmartRef__":true,"id":145},"eventHandler":{"__isSmartRef__":true,"id":146},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"layout":{"__isSmartRef__":true,"id":147},"_TextColor":{"__isSmartRef__":true,"id":148},"distanceToDragEvent":{"__isSmartRef__":true,"id":149},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"135":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":136},"_Extent":{"__isSmartRef__":true,"id":137},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":138},"renderContextTable":{"__isSmartRef__":true,"id":139},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"136":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"137":{"x":168,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"138":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"139":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"140":{"x":332.33433300000024,"y":13.972013999999533,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"141":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"142":{"style":{"__isSmartRef__":true,"id":143},"chunkOwner":{"__isSmartRef__":true,"id":134},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"143":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"144":{"x":168,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"145":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"146":{"morph":{"__isSmartRef__":true,"id":134},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"147":{},"148":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"149":{"x":111.63168399999995,"y":-8.974013000000042,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"150":{"submorphs":[],"scripts":[],"id":1496,"shape":{"__isSmartRef__":true,"id":151},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":156},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":154},"showsHalos":false,"_FontSize":22,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Display","partsBinMetaInfo":{"__isSmartRef__":true,"id":157},"textChunks":[{"__isSmartRef__":true,"id":158}],"charsReplaced":"0","lastFindLoc":-1,"priorSelectionRange":[0,1],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":160},"renderContextTable":{"__isSmartRef__":true,"id":161},"eventHandler":{"__isSmartRef__":true,"id":162},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"layout":{"__isSmartRef__":true,"id":163},"_TextColor":{"__isSmartRef__":true,"id":164},"owner":{"__isSmartRef__":true,"id":0},"distanceToDragEvent":{"__isSmartRef__":true,"id":165},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"151":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":152},"_Extent":{"__isSmartRef__":true,"id":153},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":154},"renderContextTable":{"__isSmartRef__":true,"id":155},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"152":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"153":{"x":168,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"154":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"155":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"156":{"x":353.29235400000016,"y":10.97801099999981,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"157":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"158":{"style":{"__isSmartRef__":true,"id":159},"chunkOwner":{"__isSmartRef__":true,"id":150},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"159":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"160":{"x":168,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"161":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"162":{"morph":{"__isSmartRef__":true,"id":150},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"163":{},"164":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"165":{"x":106.67366299999992,"y":-11.980009999999865,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"166":{"position":{"__isSmartRef__":true,"id":167},"_Extent":{"__isSmartRef__":true,"id":168},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":169},"_Fill":{"__isSmartRef__":true,"id":170},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":171},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"167":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"168":{"x":700,"y":350,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"169":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"170":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"171":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"172":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Pong","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"173":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"174":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"175":{"x":537,"y":256,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"176":{},"177":{"registerEvents":{"__isSmartRef__":true,"id":178},"moveBarUp":{"__isSmartRef__":true,"id":180},"getLeftBar":{"__isSmartRef__":true,"id":182},"getRightBar":{"__isSmartRef__":true,"id":184},"moveBarDown":{"__isSmartRef__":true,"id":186},"moveBall":{"__isSmartRef__":true,"id":188},"getBall":{"__isSmartRef__":true,"id":190},"startGame":{"__isSmartRef__":true,"id":192},"stopGame":{"__isSmartRef__":true,"id":194},"reset":{"__isSmartRef__":true,"id":196},"onKeyPress":{"__isSmartRef__":true,"id":198},"pauseOrResume":{"__isSmartRef__":true,"id":200},"handleBarCollisions":{"__isSmartRef__":true,"id":202},"handleCollisionsOf":{"__isSmartRef__":true,"id":204}},"178":{"time":{"__isSmartRef__":true,"id":179},"user":"fbo"},"179":{"isSerializedDate":true,"string":"Fri Jul 29 2011 14:15:21 GMT+0200 (CEST)"},"180":{"time":{"__isSmartRef__":true,"id":181},"user":"fbo"},"181":{"isSerializedDate":true,"string":"Fri Jul 29 2011 14:14:29 GMT+0200 (CEST)"},"182":{"time":{"__isSmartRef__":true,"id":183},"user":"lauritz"},"183":{"isSerializedDate":true,"string":"Thu Jul 28 2011 16:11:07 GMT+0200 (CEST)"},"184":{"time":{"__isSmartRef__":true,"id":185},"user":"lauritz"},"185":{"isSerializedDate":true,"string":"Thu Jul 28 2011 16:11:16 GMT+0200 (CEST)"},"186":{"time":{"__isSmartRef__":true,"id":187},"user":"fbo"},"187":{"isSerializedDate":true,"string":"Fri Jul 29 2011 14:14:23 GMT+0200 (CEST)"},"188":{"time":{"__isSmartRef__":true,"id":189},"user":"fbo"},"189":{"isSerializedDate":true,"string":"Fri Jul 29 2011 14:22:55 GMT+0200 (CEST)"},"190":{"time":{"__isSmartRef__":true,"id":191},"user":"lauritz"},"191":{"isSerializedDate":true,"string":"Thu Jul 28 2011 16:33:22 GMT+0200 (CEST)"},"192":{"time":{"__isSmartRef__":true,"id":193},"user":"lauritz"},"193":{"isSerializedDate":true,"string":"Fri Jul 29 2011 15:10:05 GMT+0200 (CEST)"},"194":{"time":{"__isSmartRef__":true,"id":195},"user":"lauritz"},"195":{"isSerializedDate":true,"string":"Fri Jul 29 2011 15:24:07 GMT+0200 (CEST)"},"196":{"time":{"__isSmartRef__":true,"id":197},"user":"lauritz"},"197":{"isSerializedDate":true,"string":"Fri Jul 29 2011 15:10:00 GMT+0200 (CEST)"},"198":{"time":{"__isSmartRef__":true,"id":199},"user":"lauritz"},"199":{"isSerializedDate":true,"string":"Fri Jul 29 2011 15:17:29 GMT+0200 (CEST)"},"200":{"time":{"__isSmartRef__":true,"id":201},"user":"fbo"},"201":{"isSerializedDate":true,"string":"Fri Jul 29 2011 14:12:56 GMT+0200 (CEST)"},"202":{"time":{"__isSmartRef__":true,"id":203},"user":"fbo"},"203":{"isSerializedDate":true,"string":"Fri Jul 29 2011 14:24:50 GMT+0200 (CEST)"},"204":{"time":{"__isSmartRef__":true,"id":205},"user":"lauritz"},"205":{"isSerializedDate":true,"string":"Fri Jul 29 2011 15:15:35 GMT+0200 (CEST)"},"206":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"207":{"x":425.00000000000017,"y":-25.999999999999886,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"208":{"registerEvents":{"__isSmartRef__":true,"id":209},"moveBarUp":{"__isSmartRef__":true,"id":212},"getLeftBar":{"__isSmartRef__":true,"id":215},"getRightBar":{"__isSmartRef__":true,"id":218},"moveBarDown":{"__isSmartRef__":true,"id":221},"moveBall":{"__isSmartRef__":true,"id":224},"getBall":{"__isSmartRef__":true,"id":227},"startGame":{"__isSmartRef__":true,"id":230},"stopGame":{"__isSmartRef__":true,"id":233},"reset":{"__isSmartRef__":true,"id":236},"onKeyPress":{"__isSmartRef__":true,"id":239},"pauseOrResume":{"__isSmartRef__":true,"id":246},"handleBarCollisions":{"__isSmartRef__":true,"id":249},"handleCollisionsOf":{"__isSmartRef__":true,"id":252}},"209":{"varMapping":{"__isSmartRef__":true,"id":210},"source":"function registerEvents() {\n    this.onKeyPress = function (evt) {\n        var key = String.fromCharCode(evt.getKeyCode());\n        switch (key) {\n            case \"a\":\n                this.moveBarUp(this.getLeftBar());\n                break;\n            case \"y\":\n                this.moveBarDown(this.getLeftBar());\n                break;\n           case \"k\":\n                this.moveBarUp(this.getRightBar());\n                break;\n            case \"m\":\n                this.moveBarDown(this.getRightBar());\n                break; \n            case \"n\":\n                this.startGame();\n                break;\n            case \"q\":\n                this.stopGame();\n                break;\n            case \"p\":\n                this.pauseOrResume();\n                break;\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":211},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"210":{"this":{"__isSmartRef__":true,"id":0}},"211":{},"212":{"varMapping":{"__isSmartRef__":true,"id":213},"source":"function moveBarUp(bar) {\n    var barPosition = bar.getPosition();\n    if (barPosition.y > 0) {\n        var newPosition = barPosition.subPt(new Point(0, this.speed));\n        bar.setPosition(newPosition);\n    }    \n}","funcProperties":{"__isSmartRef__":true,"id":214},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"213":{"this":{"__isSmartRef__":true,"id":0}},"214":{},"215":{"varMapping":{"__isSmartRef__":true,"id":216},"source":"function getLeftBar() {\n\treturn this.get(\"LeftBar\");\n}","funcProperties":{"__isSmartRef__":true,"id":217},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"216":{"this":{"__isSmartRef__":true,"id":0}},"217":{},"218":{"varMapping":{"__isSmartRef__":true,"id":219},"source":"function getRightBar() {\n\treturn this.get(\"RightBar\");\n}","funcProperties":{"__isSmartRef__":true,"id":220},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"219":{"this":{"__isSmartRef__":true,"id":0}},"220":{},"221":{"varMapping":{"__isSmartRef__":true,"id":222},"source":"function moveBarDown(bar) {\n   var barPosition = bar.getPosition();\n    if (barPosition.y < (this.getExtent().y - bar.getExtent().y)) {\n        var newPosition = barPosition.addPt(new Point(0, this.speed));\n        bar.setPosition(newPosition);\n    }    \n}","funcProperties":{"__isSmartRef__":true,"id":223},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"222":{"this":{"__isSmartRef__":true,"id":0}},"223":{},"224":{"varMapping":{"__isSmartRef__":true,"id":225},"source":"function moveBall() {\n\tvar ball = this.getBall();\n        var ballPosition = ball.getPosition();\n        var ballY = ballPosition.y;\n        var ballX = ballPosition.x;\n        var ballExtent = ball.getExtent();\n        var ballHeight = ballExtent.y;\n        var ballWidth = ballExtent.x;\n        this.handleBarCollisions();\n        if (ballY < 0 || ballY > (this.getExtent().y - ballHeight)) {\n            ball.direction.y *= -1;\n        } else if (ballX < 0 || ballX > (this.getExtent().x - ballWidth)) {\n            var display = this.get((ball.direction.x === 1) ? \"PointsLeft\" : \"PointsRight\");\n            display.setTextString(1+parseInt(display.getTextString()));\n            ball.direction.x *= -1;\n        }\n        var positionDiff = pt(ball.direction.x * this.speed, ball.direction.y * this.speed);\n        ball.setPosition(ball.getPosition().addPt(positionDiff));\n}","funcProperties":{"__isSmartRef__":true,"id":226},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"225":{"this":{"__isSmartRef__":true,"id":0}},"226":{},"227":{"varMapping":{"__isSmartRef__":true,"id":228},"source":"function getBall() {\n\treturn this.get(\"Ball\");\n}","funcProperties":{"__isSmartRef__":true,"id":229},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"228":{"this":{"__isSmartRef__":true,"id":0}},"229":{},"230":{"varMapping":{"__isSmartRef__":true,"id":231},"source":"function startGame() {\n        // initialize\n\n        this.reset();\n\n        // stepping\n        this.startStepping(50, 'moveBall');\n}","funcProperties":{"__isSmartRef__":true,"id":232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"231":{"this":{"__isSmartRef__":true,"id":0}},"232":{},"233":{"varMapping":{"__isSmartRef__":true,"id":234},"source":"function stopGame() {\n        this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"234":{"this":{"__isSmartRef__":true,"id":0}},"235":{},"236":{"varMapping":{"__isSmartRef__":true,"id":237},"source":"function reset() {\n\tthis.get(\"PointsLeft\").setTextString(\"0\");\n        this.get(\"PointsRight\").setTextString(\"0\");\n        var dx = (Math.random() > 0.5) ? 1 :- 1;\n        var dy = (Math.random() > 0.5) ? 1 :- 1;\n        var ball = this.getBall();\n        ball.direction = new Point(dx, dy);\n        ball.setPosition(pt(this.getExtent().x / 2, this.getExtent().y / 2));\n        this.speed = 5;\n}","funcProperties":{"__isSmartRef__":true,"id":238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"237":{"this":{"__isSmartRef__":true,"id":0}},"238":{},"239":{"varMapping":{"__isSmartRef__":true,"id":240},"source":"function onKeyPress(evt) {\n    var key = String.fromCharCode(evt.getKeyCode());\n    switch (key) {\n        case \"s\":\n            this.moveBarUp(this.getLeftBar());\n            break;\n        case \"x\":\n            this.moveBarDown(this.getLeftBar());\n            break;\n       case \"k\":\n            this.moveBarUp(this.getRightBar());\n            break;\n        case \"m\":\n            this.moveBarDown(this.getRightBar());\n            break; \n        case \"n\":\n            this.startGame();\n            break;\n        case \"q\":\n            this.stopGame();\n            break;\n        case \"p\":\n            this.pauseOrResume();\n            break;\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"240":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":241}},"241":{"$super":{"__isSmartRef__":true,"id":242}},"242":{"varMapping":{"__isSmartRef__":true,"id":243},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"243":{"obj":{"__isSmartRef__":true,"id":0},"name":"onKeyPress"},"244":{},"245":{},"246":{"varMapping":{"__isSmartRef__":true,"id":247},"source":"function pauseOrResume() {\n    this.speed = this.speed ? 0 : 5;\n}","funcProperties":{"__isSmartRef__":true,"id":248},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"247":{"this":{"__isSmartRef__":true,"id":0}},"248":{},"249":{"varMapping":{"__isSmartRef__":true,"id":250},"source":"function handleBarCollisions() {\n    \n    var ball = this.getBall();\n    this.handleCollisionsOf(ball, this.getLeftBar());\n    this.handleCollisionsOf(ball, this.getRightBar());\n}","funcProperties":{"__isSmartRef__":true,"id":251},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"250":{"this":{"__isSmartRef__":true,"id":0}},"251":{},"252":{"varMapping":{"__isSmartRef__":true,"id":253},"source":"function handleCollisionsOf(ball, bar) {\n        var ballPos = ball.getPosition();\n        var ballExtent = ball.getExtent();\n        var barPos = bar.getPosition();\n        var barExtent = bar.getExtent();\n\n        if (! (ballPos.y > barPos.y && ballPos.y < barPos.y + barExtent.y)) {\n            return;\n        }\n\tif (barPos.x < ballPos.x && ballPos.x < barPos.x + barExtent.x) {\n            ball.direction.x *= -1;\n        } else if (barPos.x < ballPos.x + ballExtent.x && ballPos.x + ballExtent.x < barPos.x + barExtent.x) {\n            ball.direction.x *= -1;\n        }\n}","funcProperties":{"__isSmartRef__":true,"id":254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"253":{"this":{"__isSmartRef__":true,"id":0}},"254":{},"isSimplifiedRegistry":true}}