From 54ec578b6cace1ec155c89bbe38d16d7cfe450b9 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Mon, 9 Sep 2024 19:15:25 -0300 Subject: [PATCH 1/3] Create "Ball movement" example category. --- src/components/ActionEditor.vue | 2 ++ src/components/blockly-toolbox-ball-movement.xml | 4 ++++ src/components/blockly-toolbox.xml.hbs | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 src/components/blockly-toolbox-ball-movement.xml 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..ac0661a --- /dev/null +++ b/src/components/blockly-toolbox-ball-movement.xml @@ -0,0 +1,4 @@ + + + + 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 From 0097820c0fe604daf935081aa44c81358f3d2aa9 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Mon, 9 Sep 2024 19:20:38 -0300 Subject: [PATCH 2/3] Add "vertically bouncing ball" example --- .../blockly-toolbox-ball-movement.xml | 154 +++++++++++++++++- 1 file changed, 153 insertions(+), 1 deletion(-) diff --git a/src/components/blockly-toolbox-ball-movement.xml b/src/components/blockly-toolbox-ball-movement.xml index ac0661a..8785e4a 100644 --- a/src/components/blockly-toolbox-ball-movement.xml +++ b/src/components/blockly-toolbox-ball-movement.xml @@ -1,4 +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 + + + + + + + + + + + + + + From 43b39ef297207fbc660ca53c7587237a65b74272 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Mon, 9 Sep 2024 19:25:51 -0300 Subject: [PATCH 3/3] Bump version to 0.24.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",