From 938ce8c22b1e2cdcf94a3a327d13ffd08672fe79 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Thu, 31 Oct 2024 20:25:55 -0300 Subject: [PATCH 1/4] Add example on how to create a simple platformer movement. See #84 --- .../blockly-toolbox-player0-movement.xml | 330 ++++++++++++++++++ 1 file changed, 330 insertions(+) diff --git a/src/components/blockly-toolbox-player0-movement.xml b/src/components/blockly-toolbox-player0-movement.xml index fe580f2..0252c39 100644 --- a/src/components/blockly-toolbox-player0-movement.xml +++ b/src/components/blockly-toolbox-player0-movement.xml @@ -359,4 +359,334 @@ + + + + + Player 0 on Ground + + + FALSE + + + + + + + player0 + playfield + + + + + + + AND + + + GT + + + Player 0 Y Speed + + + + + 0 + + + + + + + LT + + + Player 0 Y Speed + + + + + 128 + + + + + + + + + Player 0 on Ground + + + TRUE + + + + + + + Player 0 Y Speed + + + NEG + + + Player 0 Y Speed + + + + + + + player0y + + + 1 + + + Player 0 Y Speed + + + + + Player 0 Y Speed + + + 0 + + + + + + + + + + + + + Player 0 X Speed + + + 0 + + + + + + + joy0left + + + + + Player 0 X Speed + + + 254 + + + + + + + + + joy0right + + + + + Player 0 X Speed + + + 2 + + + + + + + player0x + + + 1 + + + Player 0 X Speed + + + + + + + + + + + + + + + + + + + player0 + playfield + + + + + + + Player 0 X Speed + + + + + Player 0 X Speed + + + NEG + + + Player 0 X Speed + + + + + + + player0x + + + 1 + + + Player 0 X Speed + + + + + + + + + + + Player 0 Y Speed + + + 1 + + + + + + + AND + + + GT + + + Player 0 Y Speed + + + + + 6 + + + + + + + LT + + + Player 0 Y Speed + + + + + 128 + + + + + + + + + Player 0 Y Speed + + + 6 + + + + + + + + + Player 0 on Ground + + + + + + + joy0fire + + + + + Player 0 Y Speed + + + 250 + + + + + Player 0 on Ground + + + FALSE + + + + + + + + + + + player0y + + + 1 + + + Player 0 Y Speed + + + + + + + + + + + + + + + From dc92638a984576f82df9a468dc4ce711065fb9d2 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Thu, 31 Oct 2024 20:31:50 -0300 Subject: [PATCH 2/4] Cleanup the platformer block, --- .../blockly-toolbox-player0-movement.xml | 184 +++++++++--------- 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/src/components/blockly-toolbox-player0-movement.xml b/src/components/blockly-toolbox-player0-movement.xml index 0252c39..6bd9ac3 100644 --- a/src/components/blockly-toolbox-player0-movement.xml +++ b/src/components/blockly-toolbox-player0-movement.xml @@ -360,53 +360,53 @@ - + - - Player 0 on Ground + + Player 0 on Ground - + FALSE - + - + player0 playfield - + - + AND - + GT - - Player 0 Y Speed + + Player 0 Y Speed - + 0 - + LT - - Player 0 Y Speed + + Player 0 Y Speed - + 128 @@ -415,44 +415,44 @@ - - Player 0 on Ground + + Player 0 on Ground - + TRUE - - Player 0 Y Speed + + Player 0 Y Speed - + NEG - - Player 0 Y Speed + + Player 0 Y Speed - + player0y - + 1 - - Player 0 Y Speed + + Player 0 Y Speed - - Player 0 Y Speed + + Player 0 Y Speed - + 0 @@ -465,56 +465,56 @@ - - Player 0 X Speed + + Player 0 X Speed - + 0 - + - + joy0left - - Player 0 X Speed + + Player 0 X Speed - + 254 - + - + joy0right - - Player 0 X Speed + + Player 0 X Speed - + 2 - + player0x - + 1 - - Player 0 X Speed + + Player 0 X Speed @@ -530,42 +530,42 @@ - + - + player0 playfield - + - - Player 0 X Speed + + Player 0 X Speed - - Player 0 X Speed + + Player 0 X Speed - + NEG - - Player 0 X Speed + + Player 0 X Speed - + player0x - + 1 - - Player 0 X Speed + + Player 0 X Speed @@ -575,43 +575,43 @@ - - Player 0 Y Speed + + Player 0 Y Speed - + 1 - + - + AND - + GT - - Player 0 Y Speed + + Player 0 Y Speed - + 6 - + LT - - Player 0 Y Speed + + Player 0 Y Speed - + 128 @@ -620,42 +620,42 @@ - - Player 0 Y Speed + + Player 0 Y Speed - + 6 - + - - Player 0 on Ground + + Player 0 on Ground - + - + joy0fire - - Player 0 Y Speed + + Player 0 Y Speed - + 250 - - Player 0 on Ground + + Player 0 on Ground - + FALSE @@ -666,14 +666,14 @@ - + player0y 1 - - Player 0 Y Speed + + Player 0 Y Speed From c65cf803ca511e378324a290c874947d9b5953f4 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Thu, 31 Oct 2024 20:35:28 -0300 Subject: [PATCH 3/4] Improve the diagonal ball bouncing example. --- .../blockly-toolbox-ball-movement.xml | 76 ++++--------------- 1 file changed, 13 insertions(+), 63 deletions(-) diff --git a/src/components/blockly-toolbox-ball-movement.xml b/src/components/blockly-toolbox-ball-movement.xml index 7c1ce4a..48cb6d4 100644 --- a/src/components/blockly-toolbox-ball-movement.xml +++ b/src/components/blockly-toolbox-ball-movement.xml @@ -156,7 +156,7 @@ - + @@ -234,43 +234,18 @@ 5 0 - - - - - EQ - + + Ball Y Speed + + + NEG + Ball Y Speed - - - 1 - - - - - Ball Y Speed - - - 255 - - - - - - - Ball Y Speed - - - 1 - - - - bally @@ -319,43 +294,18 @@ 5 0 - - - - - EQ - + + Ball X Speed + + + NEG + Ball X Speed - - - 1 - - - - - Ball X Speed - - - 255 - - - - - - - Ball X Speed - - - 1 - - - - ballx From 4ae01344457fdee30b1b2029d7ab5dba4c291c93 Mon Sep 17 00:00:00 2001 From: Haroldo de Oliveira Pinheiro Date: Thu, 31 Oct 2024 20:37:29 -0300 Subject: [PATCH 4/4] Bump version to 0.29.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0c158b..0d5bfb2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vcs-game-maker", - "version": "0.28.0", + "version": "0.29.0", "private": true, "scripts": { "serve": "vue-cli-service serve",