Skip to content
Browse files

Forgot to delete designer meta files

  • Loading branch information...
1 parent 92be07d commit 837a409b4fb4fde04a3cfed07a66658c9e8c1542 @arthurakay committed Mar 9, 2012
View
72 .metadata/Application
@@ -1,72 +0,0 @@
-{
- "id": "ExtBox1-ext-gen1882",
- "type": "application",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "views": [
- "Surface",
- "Ball",
- "Paddle"
- ],
- "designer|launch": "",
- "name": "MyApp"
- },
- "customConfigs": [],
- "designerId": "application",
- "$viewOrder": 0,
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen23293",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "startGame",
- "implHandler": " MyApp.app.ball = Ext.ComponentQuery.query('ball')[0];\n MyApp.app.paddleLeft = Ext.ComponentQuery.query('#cpu')[0];\n MyApp.app.paddleRight = Ext.ComponentQuery.query('#player')[0];\n\n Ball.reset();\n\n MyApp.intervalID = setInterval(MyApp.app.loop, 10);",
- "designer|userClassName": "startGame"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen23761",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "loop",
- "implHandler": " MyApp.app.dispatch({\n controller : 'Ball',\n action : 'update',\n args : [ MyApp.app.ball ]\n });",
- "designer|userClassName": "loop"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen24169",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "stopGame",
- "implHandler": " clearInterval(MyApp.intervalID);\n MyApp.intervalID = null;",
- "designer|userClassName": "stopGame"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
-}
View
84 .metadata/controller/Audio
@@ -1,84 +0,0 @@
-{
- "id": "ExtBox1-ext-gen4479",
- "type": "controller",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "views": null,
- "designer|init": "",
- "designer|userClassName": "Audio"
- },
- "customConfigs": [],
- "designerId": "93a6f7d6-1d39-4237-afd3-cc1bb5f17057",
- "$viewOrder": 3,
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen6720",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "playPong",
- "implHandler": " var audio = Ext.ComponentQuery.query('#Sound')[0].down('#pong');\n\n audio.play();",
- "designer|userClassName": "playPong"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen12324",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "playCollision",
- "implHandler": " var audio = Ext.ComponentQuery.query('#Sound')[0].down('#collision');\n\n audio.play();",
- "designer|userClassName": "playCollision"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen12432",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "playWin",
- "implHandler": " var audio = Ext.ComponentQuery.query('#Sound')[0].down('#win');\n\n audio.play();",
- "designer|userClassName": "playWin"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen12540",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "playLose",
- "implHandler": " var audio = Ext.ComponentQuery.query('#Sound')[0].down('#lose');\n\n audio.play();",
- "designer|userClassName": "playLose"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
-}
View
96 .metadata/controller/Ball
@@ -1,96 +0,0 @@
-{
- "id": "ExtBox1-ext-gen2416",
- "type": "controller",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "designer|init": "",
- "designer|userClassName": "Ball"
- },
- "customConfigs": [],
- "designerId": "8c6f99fe-29e7-4209-af7d-638350f6e65a",
- "$viewOrder": 0,
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen6441",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "checkCollisions",
- "designer|params": [
- "ball"
- ],
- "implHandler": " var leftPaddle = MyApp.app.paddleLeft.element.getBox(),\n rightPaddle = MyApp.app.paddleRight.element.getBox(),\n ballBox = ball.getBox(),\n ballHeight = ball.getHeight(),\n collisionX = false,\n collisionY = false,\n surfaceBox;\n\n if (!MyApp.app.surface) { \n MyApp.app.surface = Ext.ComponentQuery.query('viewport > panel')[0].element.down('.x-panel-inner'); \n }\n surfaceBox = MyApp.app.surface.getBox();\n\n //check collision with borders\n if (ballBox.left < surfaceBox.left) {\n MyApp.app.dispatch({\n controller : 'Referee',\n action : 'incrementScore',\n args : [ true ]\n });\n\n return false;\n }\n else if (ballBox.right > surfaceBox.right) {\n MyApp.app.dispatch({\n controller : 'Referee',\n action : 'incrementScore',\n args : [ false ]\n });\n\n return false;\n }\n if (ballBox.top < surfaceBox.top || ballBox.bottom > surfaceBox.bottom) {\n collisionY = true;\n\n MyApp.app.dispatch({\n controller : 'Audio',\n action : 'playCollision'\n });\n }\n //check collision with paddles\n if (Ball.direction[0] < 0) {\n if (ballBox.bottom >= leftPaddle.top && ballBox.top <= leftPaddle.bottom) {\n if (ballBox.left <= leftPaddle.right && ballBox.left >= leftPaddle.right - Ball.speed - Ball.xConstant) { \n collisionX = true;\n Ball.checkSpeed();\n this.getDeflection(ballBox, leftPaddle);\n\n MyApp.app.dispatch({\n controller : 'Audio',\n action : 'playPong'\n });\n }\n }\n }\n else {\n if (ballBox.bottom >= rightPaddle.top && ballBox.top <= rightPaddle.bottom) {\n if (ballBox.right >= rightPaddle.left && ballBox.right <= rightPaddle.left + Ball.speed + Ball.xConstant) { \n collisionX = true; \n Ball.checkSpeed();\n this.getDeflection(ballBox, rightPaddle);\n\n MyApp.app.dispatch({\n controller : 'Audio',\n action : 'playPong'\n });\n }\n }\n }\n\n //change ball direction, if necessary\n this.getDirection(collisionX, collisionY);\n\n return true;",
- "designer|userClassName": "checkCollisions"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen6629",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "update",
- "designer|params": [
- "ball"
- ],
- "implHandler": " var el = ball.element,\n pos = el.getXY(),\n xy = Ball.getXY(pos);\n\n el.setXY(xy);\n MyApp.controller.Paddle.prototype.updateCPU(xy);\n\n //check XY coordinates to see if player has scored\n this.checkCollisions(el);",
- "designer|userClassName": "update"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen11772",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "getDirection",
- "designer|params": [
- "collisionX",
- "collisionY"
- ],
- "implHandler": " if (collisionX) { \n Ball.direction[0] *= -1; \n Ball.vollies++;\n }\n if (collisionY) { Ball.direction[1] *= -1; }",
- "designer|userClassName": "getDirection"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen5076",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "getDeflection",
- "designer|params": [
- "ball, paddle"
- ],
- "implHandler": " var ballMiddle = ball.top + (ball.height / 2),\n paddleSection = paddle.height / 5;\n\n if (ballMiddle <= paddle.top + paddleSection || ballMiddle >= paddle.bottom - paddleSection) {\n Ball.angle = Ball.angles.high;\n return;\n }\n\n paddleSection *= 2;\n\n if (ballMiddle <= paddle.top + paddleSection || ballMiddle >= paddle.bottom - paddleSection) {\n Ball.angle = Ball.angles.mid;\n return;\n }\n\n Ball.angle = Ball.angles.low;\n Ball.resetSpeed(); //only an low angle returns\n return;",
- "designer|userClassName": "getDeflection"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
-}
View
38 .metadata/controller/Paddle
@@ -1,38 +0,0 @@
-{
- "id": "ExtBox1-ext-gen4743",
- "type": "controller",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "designer|init": "",
- "designer|userClassName": "Paddle"
- },
- "customConfigs": [],
- "designerId": "3d6dcaca-aa33-4b63-85be-5a71e0c478fa",
- "$viewOrder": 1,
- "expanded": false,
- "cn": [
- {
- "id": "ExtBox1-ext-gen31606",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "updateCPU",
- "designer|params": [
- "xy"
- ],
- "implHandler": " var paddleBox = MyApp.app.paddleLeft.element.getBox();\n\n var delta = Math.floor(Math.random() * (constants.difficulty / 2));\n\n if (xy[1] < paddleBox.top) {\n MyApp.app.paddleLeft.element.setY(paddleBox.y - constants.cpuSpeed - delta);\n }\n if (xy[1] > paddleBox.bottom) {\n MyApp.app.paddleLeft.element.setY(paddleBox.y + constants.cpuSpeed + delta);\n }",
- "designer|userClassName": "updateCPU"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
-}
View
76 .metadata/controller/Referee
@@ -1,76 +0,0 @@
-{
- "id": "ExtBox1-ext-gen5883",
- "type": "controller",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "designer|init": "",
- "designer|userClassName": "Referee"
- },
- "customConfigs": [],
- "designerId": "40d38f98-1840-43d0-a2b9-d42b955bddcb",
- "$viewOrder": 2,
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen11282",
- "type": "basicfunction",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "incrementScore",
- "designer|params": [
- "isPlayer"
- ],
- "implHandler": "MyApp.app.stopGame();\n\nif (!this.scoreCPU) { this.scoreCPU = 0; }\nif (!this.scorePlayer) { this.scorePlayer = 0; }\n\nif (isPlayer) {\n Ext.ComponentQuery.query('#scorePlayer')[0].setHtml('Player: ' + ++this.scorePlayer);\n\n MyApp.app.dispatch({\n controller : 'Audio',\n action : 'playWin'\n });\n}\nelse {\n Ext.ComponentQuery.query('#scoreCPU')[0].setHtml('CPU: ' + ++this.scoreCPU);\n\n MyApp.app.dispatch({\n controller : 'Audio',\n action : 'playLose'\n });\n}\n\nvar box = MyApp.app.surface.getBox();\n\n//center the ball\nMyApp.app.ball.element.setXY(\n[ Math.floor(box.width / 2), Math.floor( box.height / 2) ]\n);\n\nif (this.scoreCPU >= 10 && this.scoreCPU > this.scorePlayer) {\n Ext.Msg.alert('Your Lose!', 'You Lose!');\n Ext.ComponentQuery.query('#playpause')[0].disable();\n}\nelse {\n MyApp.app.startGame();\n}",
- "designer|userClassName": "incrementScore"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen50611",
- "type": "controlleraction",
- "reference": {
- "name": "listeners",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "playPause",
- "implHandler": " if (MyApp.intervalID) { MyApp.app.stopGame(); }\n else { MyApp.app.startGame(); }",
- "name": "tap",
- "designer|targetType": "Ext.Button",
- "designer|controlQuery": "button#playpause",
- "designer|userClassName": "playPause"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen57670",
- "type": "controlleraction",
- "reference": {
- "name": "listeners",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "fn": "setDifficulty",
- "implHandler": " constants.difficulty = slider.getValue()[0];\n Ball.speed += constants.difficulty - 1;",
- "name": "change",
- "designer|targetType": "Ext.field.Slider",
- "designer|controlQuery": "sliderfield",
- "designer|userClassName": "setDifficulty"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
-}
View
24 .metadata/view/Ball
@@ -1,24 +0,0 @@
-{
- "id": "ExtBox1-ext-gen2594",
- "type": "component",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "centered": true,
- "cls": [
- "ball"
- ],
- "height": 20,
- "itemId": null,
- "width": 20,
- "designer|userClassName": "Ball",
- "designer|userAlias": "ball"
- },
- "customConfigs": [],
- "designerId": "93018c53-c79a-488b-b1b4-a85dc61506d7",
- "$viewOrder": 1,
- "expanded": true
-}
View
24 .metadata/view/Paddle
@@ -1,24 +0,0 @@
-{
- "id": "ExtBox1-ext-gen3672",
- "type": "component",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "cls": [
- "paddle"
- ],
- "height": 150,
- "right": null,
- "top": null,
- "width": 40,
- "designer|userClassName": "Paddle",
- "designer|userAlias": "paddle"
- },
- "customConfigs": [],
- "designerId": "b111a2b2-af54-4e2a-8c46-bca2b04bae66",
- "$viewOrder": 2,
- "expanded": true
-}
View
322 .metadata/view/Surface
@@ -1,322 +0,0 @@
-{
- "id": "ExtBox1-ext-gen1929",
- "type": "panel",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "designer|initialView": true,
- "itemId": null,
- "layout": "fit",
- "designer|userClassName": "Surface"
- },
- "customConfigs": [],
- "designerId": "12451e1e-7c1f-492e-a4c3-d7d72321a69d",
- "$viewOrder": 0,
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen2191",
- "type": "toolbar",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "docked": "top",
- "height": 75,
- "title": "Pong",
- "designer|userClassName": "MyToolbar"
- },
- "customConfigs": [],
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen50085",
- "type": "button",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "itemId": "playpause",
- "ui": "confirm",
- "text": "Play / Pause",
- "designer|userClassName": "MyButton"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen55174",
- "type": "spacer",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "designer|userClassName": "MySpacer1"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen56651",
- "type": "sliderfield",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "itemId": "mysliderfield",
- "width": 300,
- "label": "Difficulty",
- "labelWidth": 100,
- "value": [
- 1
- ],
- "maxValue": 5,
- "minValue": 1,
- "designer|userClassName": "MySliderField"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
- },
- {
- "id": "ExtBox1-ext-gen2726",
- "type": "linkedinstance",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "itemId": "ball"
- },
- "customConfigs": [],
- "iconCls": "icon-linkedinstance",
- "expanded": true,
- "masterInstanceId": "ExtBox1-ext-gen2594"
- },
- {
- "id": "ExtBox1-ext-gen3793",
- "type": "linkedinstance",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "draggable": true,
- "itemId": "player",
- "right": 100
- },
- "customConfigs": [],
- "iconCls": "icon-linkedinstance",
- "expanded": true,
- "masterInstanceId": "ExtBox1-ext-gen3672"
- },
- {
- "id": "ExtBox1-ext-gen3636",
- "type": "linkedinstance",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "height": null,
- "itemId": "cpu",
- "left": 100
- },
- "customConfigs": [],
- "iconCls": "icon-linkedinstance",
- "expanded": true,
- "masterInstanceId": "ExtBox1-ext-gen3672"
- },
- {
- "id": "ExtBox1-ext-gen4546",
- "type": "toolbar",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "docked": "top",
- "designer|userClassName": "MyToolbar1"
- },
- "customConfigs": [],
- "expanded": false,
- "cn": [
- {
- "id": "ExtBox1-ext-gen4743",
- "type": "component",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "cls": [
- "score"
- ],
- "html": "CPU: 0",
- "itemId": "scoreCPU",
- "designer|userClassName": "MyComponent5"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen5210",
- "type": "spacer",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "designer|userClassName": "MySpacer"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen5000",
- "type": "component",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "cls": [
- "score"
- ],
- "html": "Player: 0",
- "itemId": "scorePlayer",
- "designer|userClassName": "MyComponent6"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
- },
- {
- "id": "ExtBox1-ext-gen4977",
- "type": "container",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "height": null,
- "hidden": true,
- "itemId": "Sound",
- "width": null,
- "designer|userClassName": "Sound",
- "designer|userAlias": null
- },
- "customConfigs": [],
- "expanded": true,
- "cn": [
- {
- "id": "ExtBox1-ext-gen5730",
- "type": "audio",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "hidden": true,
- "itemId": "collision",
- "autoPause": false,
- "autoResume": true,
- "enableControls": false,
- "muted": false,
- "url": "assets/sounds/border.wav",
- "designer|userClassName": "Audio"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen6005",
- "type": "audio",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "hidden": true,
- "itemId": "win",
- "autoPause": false,
- "autoResume": true,
- "enableControls": false,
- "muted": false,
- "url": "assets/sounds/cheer.wav",
- "designer|userClassName": "Audio"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen6227",
- "type": "audio",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "hidden": true,
- "itemId": "lose",
- "autoPause": false,
- "autoResume": true,
- "enableControls": false,
- "muted": false,
- "url": "assets/sounds/boo.wav",
- "volume": null,
- "designer|userClassName": "Audio"
- },
- "customConfigs": [],
- "expanded": true
- },
- {
- "id": "ExtBox1-ext-gen3707",
- "type": "audio",
- "reference": {
- "name": "items",
- "type": "array"
- },
- "codeClass": null,
- "userConfig": {
- "height": 22,
- "hidden": true,
- "itemId": "pong",
- "width": 22,
- "autoPause": false,
- "autoResume": true,
- "muted": false,
- "url": "assets/sounds/pong.wav",
- "designer|userClassName": "Audio"
- },
- "customConfigs": [],
- "expanded": true
- }
- ]
- }
- ]
-}

0 comments on commit 837a409

Please sign in to comment.
Something went wrong with that request. Please try again.