-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
161 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<category name="Ball movement" colour="#ff8800"> | ||
<category name="Vertically bouncing ball" colour="#ff8800"> | ||
|
||
<block type="controls_if"> | ||
<value name="IF0"> | ||
<block type="logic_negate"> | ||
<value name="BOOL"> | ||
<block type="variables_get"> | ||
<field name="VAR">Ball Y Speed</field> | ||
</block> | ||
</value> | ||
</block> | ||
</value> | ||
<statement name="DO0"> | ||
<block type="variables_set"> | ||
<field name="VAR">Ball X Speed</field> | ||
<value name="VALUE"> | ||
<block type="math_number"> | ||
<field name="NUM">0</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="variables_set"> | ||
<field name="VAR">Ball Y Speed</field> | ||
<value name="VALUE"> | ||
<block type="math_number"> | ||
<field name="NUM">1</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="sprite_ball_set"> | ||
<field name="VAR">ballx</field> | ||
<value name="VALUE"> | ||
<shadow type="math_number"> | ||
<field name="NUM">80</field> | ||
</shadow> | ||
</value> | ||
<next> | ||
<block type="sprite_ball_set"> | ||
<field name="VAR">bally</field> | ||
<value name="VALUE"> | ||
<shadow type="math_number"> | ||
<field name="NUM">64</field> | ||
</shadow> | ||
</value> | ||
<next> | ||
<block type="sprite_ball_set"> | ||
<field name="VAR">ballheight</field> | ||
<value name="VALUE"> | ||
<shadow type="math_number"> | ||
<field name="NUM">6</field> | ||
</shadow> | ||
</value> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
<next> | ||
<block type="sprite_ball_change"> | ||
<field name="VAR">bally</field> | ||
<value name="DELTA"> | ||
<shadow type="math_number"> | ||
<field name="NUM">1</field> | ||
</shadow> | ||
<block type="variables_get"> | ||
<field name="VAR">Ball Y Speed</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="controls_if"> | ||
<value name="IF0"> | ||
<block type="collision_get"> | ||
<field name="VAR0">playfield</field> | ||
<field name="VAR1">ball</field> | ||
</block> | ||
</value> | ||
<statement name="DO0"> | ||
<block type="controls_if"> | ||
<mutation else="1"></mutation> | ||
<value name="IF0"> | ||
<block type="logic_compare"> | ||
<field name="OP">LT</field> | ||
<value name="A"> | ||
<block type="variables_get"> | ||
<field name="VAR">Ball Y Speed</field> | ||
</block> | ||
</value> | ||
<value name="B"> | ||
<block type="math_number"> | ||
<field name="NUM">2</field> | ||
</block> | ||
</value> | ||
</block> | ||
</value> | ||
<statement name="DO0"> | ||
<block type="variables_set"> | ||
<field name="VAR">Ball Y Speed</field> | ||
<value name="VALUE"> | ||
<block type="math_number"> | ||
<field name="NUM">255</field> | ||
</block> | ||
</value> | ||
</block> | ||
</statement> | ||
<statement name="ELSE"> | ||
<block type="variables_set"> | ||
<field name="VAR">Ball Y Speed</field> | ||
<value name="VALUE"> | ||
<block type="math_number"> | ||
<field name="NUM">1</field> | ||
</block> | ||
</value> | ||
</block> | ||
</statement> | ||
<next> | ||
<block type="sprite_ball_change"> | ||
<field name="VAR">bally</field> | ||
<value name="DELTA"> | ||
<shadow type="math_number"> | ||
<field name="NUM">1</field> | ||
</shadow> | ||
<block type="variables_get"> | ||
<field name="VAR">Ball Y Speed</field> | ||
</block> | ||
</value> | ||
<next> | ||
<block type="sprite_ball_change"> | ||
<field name="VAR">bally</field> | ||
<value name="DELTA"> | ||
<shadow type="math_number"> | ||
<field name="NUM">1</field> | ||
</shadow> | ||
<block type="variables_get"> | ||
<field name="VAR">Ball Y Speed</field> | ||
</block> | ||
</value> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
</statement> | ||
</block> | ||
</next> | ||
</block> | ||
</next> | ||
</block> | ||
|
||
</category> | ||
</category> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,5 +211,7 @@ | |
|
||
{{{blocklyToolboxPlayer1Movement}}} | ||
|
||
{{{blocklyToolboxBallMovement}}} | ||
|
||
</category> | ||
</xml> |