-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_history
More file actions
1 lines (1 loc) · 71.1 KB
/
_history
File metadata and controls
1 lines (1 loc) · 71.1 KB
1
{"entries":[{"timestamp":1763215446762,"editorVersion":"8.0.18","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":15258,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"NtVB.71KWI3r6af_cP4E\">level</variable><variable id=\"W2zqABGxRc6%!~OMgkF,\">player</variable><variable id=\"jauQxt7.uIMEq~I,/=%{\">grond1</variable><variable id=\"HrLHoGg/1bA#4,0|!RwG\">grond2</variable><variable id=\"g=~o_O$!wfcd`3u]zj:s\">grond3</variable><variable id=\"Cs@W!c0zZ9VFxG}sma;m\">grond4</variable><variable id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</variable><variable id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"function_call\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation></block></statement></block><block type=\"device_button_event\" x=\"205\" y=\"0\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"608\" y=\"0\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.B</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">200</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.A</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">GTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">800</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_negate\"><value name=\"BOOL\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><mutation else=\"1\"></mutation><comment pinned=\"false\" h=\"80\" w=\"160\">Controleer level en maak spike aan indien nodig</comment><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"variables_set\"><field name=\"VAR\" id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"device_clear_display\"><next><block type=\"device_print_message\"><data>{\"commentRefs\":[],\"fieldData\":{}}</data><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Game over!</field></shadow></value><next><block type=\"function_call\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation></block></next></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set\"><field name=\"VAR\" id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></statement></block></next></block></next></block></statement></block><block type=\"onButtonEvent\" x=\"1523\" y=\"0\"><field name=\"button\">joystickbit.JoystickBitPin.P15</field><field name=\"event\">joystickbit.ButtonType.down</field><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></next></block></statement></block></statement></block><block type=\"function_definition\" x=\"2005\" y=\"0\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation><field name=\"function_name\">start</field><statement name=\"STACK\"><block type=\"device_clear_display\"><next><block type=\"initJoystickBit\"><next><block type=\"variables_set\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"jauQxt7.uIMEq~I,/=%{\">grond1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"HrLHoGg/1bA#4,0|!RwG\">grond2</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"g=~o_O$!wfcd`3u]zj:s\">grond3</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"Cs@W!c0zZ9VFxG}sma;m\">grond4</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"variables_set\" disabled-reasons=\"pxt_automatic_disabled\" x=\"2069\" y=\"545\"><field name=\"VAR\" id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\" disabled-reasons=\"pxt_automatic_disabled\"><value name=\"x\"><shadow type=\"math_number\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\" disabled-reasons=\"pxt_automatic_disabled\"><field name=\"NUM\">4</field></shadow></value></block></value></block></xml>"]]}]},{"type":"edited","filename":"main.py","patch":[{"start1":2138,"length1":0,"diffs":[[1," else:\n spike1 = game.create_sprite(4, 4)\n"]]}]},{"type":"edited","filename":"main.ts","patch":[{"start1":771,"length1":37,"diffs":[[1,""]]},{"start1":2087,"length1":0,"diffs":[[1," } else {\n spike1 = game.createSprite(4, 4)\n"]]}]}]},{"timestamp":1763215932292,"editorVersion":"8.0.18","changes":[{"type":"edited","filename":"main.blocks","patch":[{"start1":0,"length1":19594,"diffs":[[1,"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"Xk.-|R9=x8.HQTepy^:G\">player</variable><variable id=\"eZbt1O|i2Byrx=x1QtP^\">level</variable><variable id=\"7kPU$$m1E)UMl+CIk6?-\">grond1</variable><variable id=\"RQXqdyR4[8`B1@VWX|4V\">grond2</variable><variable id=\"]8|{PcOeO4YIjpk5PiQ1\">grond3</variable><variable id=\"-y81-{ZC`lQ95YhlblEt\">grond4</variable><variable id=\"J)8Ld%C1@5$6I4AgYY:N\">grond5</variable><variable id=\"$Klc?*S33RMW7V1A;^jR\">spike1</variable></variables><block type=\"pxt-on-start\" x=\"20\" y=\"20\"><statement name=\"HANDLER\"><block type=\"function_call\"><mutation name=\"start\" functionid=\"MP@YD(@z4hS#LWo)Zq[s\"></mutation></block></statement></block><block type=\"device_button_event\" x=\"225\" y=\"20\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"628\" y=\"20\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.B</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">200</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"eZbt1O|i2Byrx=x1QtP^\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.A</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">GTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">800</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_negate\"><value name=\"BOOL\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"eZbt1O|i2Byrx=x1QtP^\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"eZbt1O|i2Byrx=x1QtP^\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><comment pinned=\"false\" h=\"80\" w=\"160\">Controleer level en maak spike aan indien nodig</comment><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"eZbt1O|i2Byrx=x1QtP^\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"variables_set\"><field name=\"VAR\" id=\"$Klc?*S33RMW7V1A;^jR\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"device_clear_display\"><next><block type=\"device_print_message\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Game over!</field></shadow></value><next><block type=\"function_call\"><mutation name=\"start\" functionid=\"MP@YD(@z4hS#LWo)Zq[s\"></mutation></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></statement></block><block type=\"onButtonEvent\" x=\"1543\" y=\"20\"><field name=\"button\">joystickbit.JoystickBitPin.P15</field><field name=\"event\">joystickbit.ButtonType.down</field><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></next></block></statement></block></statement></block><block type=\"function_definition\" x=\"2025\" y=\"20\"><mutation name=\"start\" functionid=\"MP@YD(@z4hS#LWo)Zq[s\"></mutation><field name=\"function_name\">start</field><statement name=\"STACK\"><block type=\"device_clear_display\"><next><block type=\"initJoystickBit\"><next><block type=\"variables_set\"><field name=\"VAR\" id=\"eZbt1O|i2Byrx=x1QtP^\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"Xk.-|R9=x8.HQTepy^:G\">player</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"7kPU$$m1E)UMl+CIk6?-\">grond1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"RQXqdyR4[8`B1@VWX|4V\">grond2</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"]8|{PcOeO4YIjpk5PiQ1\">grond3</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"-y81-{ZC`lQ95YhlblEt\">grond4</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"J)8Ld%C1@5$6I4AgYY:N\">grond5</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"$Klc?*S33RMW7V1A;^jR\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>"]]}]},{"type":"edited","filename":"pxt.json","patch":[{"start1":314,"length1":44,"diffs":[[1,""]]}]},{"type":"added","filename":"test.ts","value":"// tests go here; this will not be compiled when this package is used as an extension.\n"}]}],"snapshots":[{"timestamp":1762956916679,"editorVersion":"8.0.18","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"NtVB.71KWI3r6af_cP4E\">level</variable><variable id=\"W2zqABGxRc6%!~OMgkF,\">player</variable><variable id=\"jauQxt7.uIMEq~I,/=%{\">grond1</variable><variable id=\"HrLHoGg/1bA#4,0|!RwG\">grond2</variable><variable id=\"g=~o_O$!wfcd`3u]zj:s\">grond3</variable><variable id=\"Cs@W!c0zZ9VFxG}sma;m\">grond4</variable><variable id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</variable><variable id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</variable></variables><block type=\"pxt-on-start\" x=\"20\" y=\"20\"><statement name=\"HANDLER\"><block type=\"function_call\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation></block></statement></block><block type=\"device_button_event\" x=\"225\" y=\"20\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"628\" y=\"20\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.B</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">200</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.A</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">GTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">800</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_negate\"><value name=\"BOOL\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><mutation else=\"1\"></mutation><comment pinned=\"false\" h=\"80\" w=\"160\">Controleer level en maak spike aan indien nodig</comment><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"variables_set\"><field name=\"VAR\" id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"device_clear_display\"><next><block type=\"device_print_message\"><data>{\"commentRefs\":[],\"fieldData\":{}}</data><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Game over!</field></shadow></value><next><block type=\"function_call\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation></block></next></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set\"><field name=\"VAR\" id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></statement></block></next></block></next></block></statement></block><block type=\"onButtonEvent\" x=\"1543\" y=\"20\"><field name=\"button\">joystickbit.JoystickBitPin.P15</field><field name=\"event\">joystickbit.ButtonType.down</field><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></next></block></statement></block></statement></block><block type=\"function_definition\" x=\"2025\" y=\"20\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation><field name=\"function_name\">start</field><statement name=\"STACK\"><block type=\"device_clear_display\"><next><block type=\"initJoystickBit\"><next><block type=\"variables_set\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"jauQxt7.uIMEq~I,/=%{\">grond1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"HrLHoGg/1bA#4,0|!RwG\">grond2</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"g=~o_O$!wfcd`3u]zj:s\">grond3</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"Cs@W!c0zZ9VFxG}sma;m\">grond4</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>","main.ts":"","README.md":"","main.py":"def my_function():\n if player.get(LedSpriteProperty.Y) == 3:\n player.change(LedSpriteProperty.Y, -1)\n basic.pause(200)\n player.change(LedSpriteProperty.Y, 1)\n basic.pause(100)\njoystickbit.on_button_event(joystickbit.JoystickBitPin.P15,\n joystickbit.ButtonType.DOWN,\n my_function)\n\ndef on_button_pressed_ab():\n player.change(LedSpriteProperty.Y, -1)\n basic.pause(200)\n player.change(LedSpriteProperty.Y, 1)\ninput.on_button_pressed(Button.AB, on_button_pressed_ab)\n\ndef start():\n global level, player, grond1, grond2, grond3, grond4, grond5\n basic.clear_screen()\n joystickbit.init_joystick_bit()\n level = 1\n player = game.create_sprite(0, 3)\n grond1 = game.create_sprite(0, 4)\n grond2 = game.create_sprite(1, 4)\n grond3 = game.create_sprite(2, 4)\n grond4 = game.create_sprite(3, 4)\n grond5 = game.create_sprite(4, 4)\nspike1: game.LedSprite = None\ngrond5: game.LedSprite = None\ngrond4: game.LedSprite = None\ngrond3: game.LedSprite = None\ngrond2: game.LedSprite = None\ngrond1: game.LedSprite = None\nlevel = 0\nplayer: game.LedSprite = None\nstart()\n\ndef on_forever():\n global level, spike1\n if input.button_is_pressed(Button.B) or joystickbit.get_rocker_value(joystickbit.rockerType.X) <= 200:\n if player.get(LedSpriteProperty.X) == 4:\n player.set(LedSpriteProperty.X, 0)\n level += 1\n basic.pause(100)\n else:\n player.move(1)\n basic.pause(100)\n if input.button_is_pressed(Button.A) or joystickbit.get_rocker_value(joystickbit.rockerType.X) >= 800:\n if not (level == 1) and player.get(LedSpriteProperty.X) == 0:\n player.set(LedSpriteProperty.X, 4)\n level += -1\n basic.pause(100)\n else:\n player.move(-1)\n basic.pause(100)\n # Controleer level en maak spike aan indien nodig\n if level == 2:\n spike1 = game.create_sprite(2, 3)\n if player.get(LedSpriteProperty.X) == 2 and player.get(LedSpriteProperty.Y) == 3:\n basic.clear_screen()\n basic.show_string(\"Game over!\")\n start()\n else:\n spike1 = game.create_sprite(4, 4)\nbasic.forever(on_forever)\n","pxt.json":"{\n \"name\": \"lol\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\",\n \"joystickbit\": \"github:tinkertanker/pxt-joystickbit#v1.0.4\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"main.py\"\n ],\n \"targetVersions\": {\n \"branch\": \"stable8.0\",\n \"tag\": \"v8.0.18\",\n \"commits\": \"https://github.com/microsoft/pxt-microbit/commits/ec67ee1ad9a7c41ee95376e7577127b32d4d233a\",\n \"target\": \"8.0.18\",\n \"pxt\": \"12.0.16\"\n },\n \"preferredEditor\": \"blocksprj\"\n}\n"}},{"timestamp":1763215446762,"editorVersion":"8.0.18","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"NtVB.71KWI3r6af_cP4E\">level</variable><variable id=\"W2zqABGxRc6%!~OMgkF,\">player</variable><variable id=\"jauQxt7.uIMEq~I,/=%{\">grond1</variable><variable id=\"HrLHoGg/1bA#4,0|!RwG\">grond2</variable><variable id=\"g=~o_O$!wfcd`3u]zj:s\">grond3</variable><variable id=\"Cs@W!c0zZ9VFxG}sma;m\">grond4</variable><variable id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</variable><variable id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</variable></variables><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"function_call\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation></block></statement></block><block type=\"device_button_event\" x=\"205\" y=\"0\"><field name=\"NAME\">Button.AB</field><statement name=\"HANDLER\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"608\" y=\"0\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.B</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">LTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">200</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">OR</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"device_get_button2\"><field name=\"NAME\">Button.A</field></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">GTE</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"getRockerValue\"><field name=\"rocker\">joystickbit.rockerType.X</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">800</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_negate\"><value name=\"BOOL\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value></block></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_set_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><next><block type=\"variables_change\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"game_move_sprite\"><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"leds\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></statement></block></statement><next><block type=\"controls_if\"><mutation else=\"1\"></mutation><comment pinned=\"false\" h=\"80\" w=\"160\">Controleer level en maak spike aan indien nodig</comment><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"variables_set\"><field name=\"VAR\" id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.X</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value></block></value><statement name=\"DO0\"><block type=\"device_clear_display\"><next><block type=\"device_print_message\"><data>{\"commentRefs\":[],\"fieldData\":{}}</data><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Game over!</field></shadow></value><next><block type=\"function_call\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation></block></next></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set\"><field name=\"VAR\" id=\"-dD%[Eg68aIVIyLX,u1;\">spike1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></statement></block></next></block></next></block></statement></block><block type=\"onButtonEvent\" x=\"1523\" y=\"0\"><field name=\"button\">joystickbit.JoystickBitPin.P15</field><field name=\"event\">joystickbit.ButtonType.down</field><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_sprite_property\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">200</field></shadow></value><next><block type=\"game_sprite_change_xy\"><field name=\"property\">LedSpriteProperty.Y</field><value name=\"sprite\"><block type=\"variables_get\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field></block></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"device_pause\"><value name=\"pause\"><shadow type=\"timePicker\"><field name=\"ms\">100</field></shadow></value></block></next></block></next></block></next></block></statement></block></statement></block><block type=\"function_definition\" x=\"2005\" y=\"0\"><mutation name=\"start\" functionid=\"qDddr@IRkzG?w9Lo$B!#\"></mutation><field name=\"function_name\">start</field><statement name=\"STACK\"><block type=\"device_clear_display\"><next><block type=\"initJoystickBit\"><next><block type=\"variables_set\"><field name=\"VAR\" id=\"NtVB.71KWI3r6af_cP4E\">level</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"W2zqABGxRc6%!~OMgkF,\">player</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"jauQxt7.uIMEq~I,/=%{\">grond1</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"HrLHoGg/1bA#4,0|!RwG\">grond2</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"g=~o_O$!wfcd`3u]zj:s\">grond3</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"Cs@W!c0zZ9VFxG}sma;m\">grond4</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value><next><block type=\"variables_set\"><field name=\"VAR\" id=\"1uT2|m!Qwa}/dgbP-Bn=\">grond5</field><value name=\"VALUE\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"game_create_sprite\"><value name=\"x\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"y\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>","main.ts":"","README.md":"","main.py":"def my_function():\n if player.get(LedSpriteProperty.Y) == 3:\n player.change(LedSpriteProperty.Y, -1)\n basic.pause(200)\n player.change(LedSpriteProperty.Y, 1)\n basic.pause(100)\njoystickbit.on_button_event(joystickbit.JoystickBitPin.P15,\n joystickbit.ButtonType.DOWN,\n my_function)\n\ndef on_button_pressed_ab():\n player.change(LedSpriteProperty.Y, -1)\n basic.pause(200)\n player.change(LedSpriteProperty.Y, 1)\ninput.on_button_pressed(Button.AB, on_button_pressed_ab)\n\ndef start():\n global level, player, grond1, grond2, grond3, grond4, grond5\n basic.clear_screen()\n joystickbit.init_joystick_bit()\n level = 1\n player = game.create_sprite(0, 3)\n grond1 = game.create_sprite(0, 4)\n grond2 = game.create_sprite(1, 4)\n grond3 = game.create_sprite(2, 4)\n grond4 = game.create_sprite(3, 4)\n grond5 = game.create_sprite(4, 4)\nspike1: game.LedSprite = None\ngrond5: game.LedSprite = None\ngrond4: game.LedSprite = None\ngrond3: game.LedSprite = None\ngrond2: game.LedSprite = None\ngrond1: game.LedSprite = None\nlevel = 0\nplayer: game.LedSprite = None\nstart()\n\ndef on_forever():\n global level, spike1\n if input.button_is_pressed(Button.B) or joystickbit.get_rocker_value(joystickbit.rockerType.X) <= 200:\n if player.get(LedSpriteProperty.X) == 4:\n player.set(LedSpriteProperty.X, 0)\n level += 1\n basic.pause(100)\n else:\n player.move(1)\n basic.pause(100)\n if input.button_is_pressed(Button.A) or joystickbit.get_rocker_value(joystickbit.rockerType.X) >= 800:\n if not (level == 1) and player.get(LedSpriteProperty.X) == 0:\n player.set(LedSpriteProperty.X, 4)\n level += -1\n basic.pause(100)\n else:\n player.move(-1)\n basic.pause(100)\n # Controleer level en maak spike aan indien nodig\n if level == 2:\n spike1 = game.create_sprite(2, 3)\n if player.get(LedSpriteProperty.X) == 2 and player.get(LedSpriteProperty.Y) == 3:\n basic.clear_screen()\n basic.show_string(\"Game over!\")\n start()\n else:\n spike1 = game.create_sprite(4, 4)\nbasic.forever(on_forever)\n","pxt.json":"{\n \"name\": \"lol\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\",\n \"joystickbit\": \"github:tinkertanker/pxt-joystickbit#v1.0.4\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"main.py\"\n ],\n \"targetVersions\": {\n \"branch\": \"stable8.0\",\n \"tag\": \"v8.0.18\",\n \"commits\": \"https://github.com/microsoft/pxt-microbit/commits/ec67ee1ad9a7c41ee95376e7577127b32d4d233a\",\n \"target\": \"8.0.18\",\n \"pxt\": \"12.0.16\"\n },\n \"preferredEditor\": \"blocksprj\"\n}\n"}}],"shares":[],"lastSaveTime":1763216201799}