diff --git a/package.json b/package.json index 547aad8..7c79a05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vcs-game-maker", - "version": "0.23.1", + "version": "0.24.0", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/components/ActionEditor.vue b/src/components/ActionEditor.vue index 2dc3183..acca31b 100644 --- a/src/components/ActionEditor.vue +++ b/src/components/ActionEditor.vue @@ -30,6 +30,7 @@ import '../blocks/sprites'; import blocklyToolboxTemplate from 'raw-loader!./blockly-toolbox.xml.hbs'; import blocklyToolboxPlayer0Movement from 'raw-loader!./blockly-toolbox-player0-movement.xml'; import blocklyToolboxPlayer1Movement from 'raw-loader!./blockly-toolbox-player1-movement.xml'; +import blocklyToolboxBallMovement from 'raw-loader!./blockly-toolbox-ball-movement.xml'; import BlocklyBB from '../generators/bbasic'; import {useWorkspaceStorage, useErrorStorage} from '../hooks/project'; @@ -78,6 +79,7 @@ export default { toolbox: Handlebars.compile(blocklyToolboxTemplate)({ blocklyToolboxPlayer0Movement, blocklyToolboxPlayer1Movement, + blocklyToolboxBallMovement, }), }, workspaceStorage: useWorkspaceStorage(), diff --git a/src/components/blockly-toolbox-ball-movement.xml b/src/components/blockly-toolbox-ball-movement.xml new file mode 100644 index 0000000..8785e4a --- /dev/null +++ b/src/components/blockly-toolbox-ball-movement.xml @@ -0,0 +1,156 @@ + + + + + + + + + Ball Y Speed + + + + + + + Ball X Speed + + + 0 + + + + + Ball Y Speed + + + 1 + + + + + ballx + + + 80 + + + + + bally + + + 64 + + + + + ballheight + + + 6 + + + + + + + + + + + + + + + bally + + + 1 + + + Ball Y Speed + + + + + + + playfield + ball + + + + + + + + LT + + + Ball Y Speed + + + + + 2 + + + + + + + Ball Y Speed + + + 255 + + + + + + + Ball Y Speed + + + 1 + + + + + + + bally + + + 1 + + + Ball Y Speed + + + + + bally + + + 1 + + + Ball Y Speed + + + + + + + + + + + + + + + + diff --git a/src/components/blockly-toolbox.xml.hbs b/src/components/blockly-toolbox.xml.hbs index 88fbf82..17841f3 100644 --- a/src/components/blockly-toolbox.xml.hbs +++ b/src/components/blockly-toolbox.xml.hbs @@ -211,5 +211,7 @@ {{{blocklyToolboxPlayer1Movement}}} + {{{blocklyToolboxBallMovement}}} + \ No newline at end of file