-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
7 lines (7 loc) · 9.29 KB
/
main.blocks
1
2
3
4
5
6
7
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="}GlFX,Fr=0JFj[o0Pl)|">Speler</variable><variable id="s){b~3S6Qe0oMY$H[c]k">PauzeTijd</variable><variable id="{6qD{X9Socj1c+S}qP2U">Munt</variable><variable id="Ty|N9;%Ob}3pFz1]A_z~">Gewonnen</variable></variables><block type="pxt-on-start" id="ncCai1~mpG?A8dtHIQ8;" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="C=K{zy,Qc?RQ63ncZ`S+"><field name="VAR" id="}GlFX,Fr=0JFj[o0Pl)|">Speler</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="UoRMF3zOVg7_Ip?7*+;L"><value name="x"><shadow type="math_number" id="*eSO3Yd^)T[mAuQ9Ct(p"><field name="NUM">2</field></shadow></value><value name="y"><shadow type="math_number" id="[O%DczEA/XSCboq!CKX,"><field name="NUM">4</field></shadow></value></block></value><next><block type="variables_set" id="/^pFNW*f5mzt9VXf^o)j"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="@;h6gt^p9)n/cTs7Am{O"><value name="x"><shadow type="math_number" id="6!xc2?o39ryEJoCJjqDe"><field name="NUM">2</field></shadow></value><value name="y"><shadow type="math_number" id="H:th(h9ZD/{F49+~XwP?"><field name="NUM">0</field></shadow></value></block></value><next><block type="game_turn_sprite" id="Bj$:jr0jD!WUVT^+x(CK"><field name="direction">Direction.Right</field><value name="sprite"><block type="variables_get" id="Iz5cfwqwo;PMSjqadQ*c"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field></block></value><value name="degrees"><shadow type="math_number" id=")/f5zTEz#k-KTkcPiNyj"><field name="NUM">90</field></shadow></value><next><block type="game_set_score" id="[`a_@rKqEPJ/||]9!,eL"><value name="points"><shadow type="math_number" id="h+*E*bf%3p+5s+)KdJuZ"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="leVaAr]/.;hp(cli2AGq"><field name="VAR" id="s){b~3S6Qe0oMY$H[c]k">PauzeTijd</field><value name="VALUE"><shadow type="math_number" id=",fd}NG{.fqigBZ_1{@iX"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="!V@Mbz8{p#;y9p9+O|Si" x="549" y="69"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="game_sprite_change_xy" id="I$N-ET#4ca=o6~ufpGZI"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="$=sM#kfMlH!?m1F$go+m"><field name="VAR" id="}GlFX,Fr=0JFj[o0Pl)|">Speler</field></block></value><value name="value"><shadow type="math_number" id="V_4B1_qDuxt=UgM}gWq0"><field name="NUM">-1</field></shadow></value></block></statement></block><block type="device_button_event" id="M$(}M?jGy`(WSi!?]g1o" x="882" y="71"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="game_sprite_change_xy" id="E7DbmZ7q{sK.A4x;|hl7"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="Un@cuoO_ZCZKXVP]Az(a"><field name="VAR" id="}GlFX,Fr=0JFj[o0Pl)|">Speler</field></block></value><value name="value"><shadow type="math_number" id="ldZTZ2r%`phnYr9SgKLU"><field name="NUM">1</field></shadow></value></block></statement></block><block type="device_forever" id="AdN6djE1qMmd)V8!{q{F" x="4" y="297"><statement name="HANDLER"><block type="device_pause" id="OXAZW{|6zG}$gq#^|esZ"><value name="pause"><shadow type="timePicker"></shadow><block type="variables_get" id="!l4tNDF;xQ+z5CXrdKs."><field name="VAR" id="s){b~3S6Qe0oMY$H[c]k">PauzeTijd</field></block></value><next><block type="game_move_sprite" id="u(h[79MUoPh|*vz/1a;k"><value name="sprite"><block type="variables_get" id="`$jid]JTH5-WG`zl-[]l"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field></block></value><value name="leds"><shadow type="math_number" id="+S^!+PmXBrx9[.!o%@Gb"><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="y}VU:ilHxuRC`/xj2^Dh"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="game_sprite_touching_sprite" id="D@N($0*M*!jg)bKFx}7|"><value name="sprite"><block type="variables_get" id="e]83cKfQ%]a3C3N3s60|"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field></block></value><value name="other"><block type="variables_get" id="mX#McfZxOe@e[RpYpQ.u"><field name="VAR" id="}GlFX,Fr=0JFj[o0Pl)|">Speler</field></block></value></block></value><statement name="DO0"><block type="game_add_score" id="gvNwm_1LQUku^R(=60%9"><value name="points"><shadow type="math_number" id="2pQN)R%HE:0G;Owu!.e("><field name="NUM">1</field></shadow></value><next><block type="game_sprite_set_property" id="N^Vwoff+CTc7y~h+H1q`"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="Y!@JZf,5/}pao.J#lc*l"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field></block></value><value name="value"><shadow type="math_number" id="J?cjL1c7`a*DA?mWv)t8"><field name="NUM">0</field></shadow></value><next><block type="game_sprite_set_property" id="2G}jO(JjyFL^.1]0Mdn{"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="^Iw4{1s9,4hFvl;22}(Z"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field></block></value><value name="value"><block type="device_random" id="}~-]s5z5OWs.t+zQhS/g"><value name="min"><shadow type="math_number" id="J:5VyY]GH$Z^}M4Be.u@"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="sv3KYdV?Liqfyw0:Yg[1"><field name="NUM">4</field></shadow></value></block></value><next><block type="variables_change" id="}Xg-{|yJwj![r;@128Qf"><field name="VAR" id="s){b~3S6Qe0oMY$H[c]k">PauzeTijd</field><value name="VALUE"><shadow type="math_number" id="W4IX8;KBK^i|?sLFes|B"><field name="NUM">-25</field></shadow></value></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="`1qN+|lvZi*oOzo=pO.S"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="xdxAB.U]W66MB0j?sN)J"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_sprite_property" id="~lt%a=:4)MRw0:zzu~Gn"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="Z-1i-~oCJidnG:!d|2HR"><field name="VAR" id="{6qD{X9Socj1c+S}qP2U">Munt</field></block></value></block></value><value name="B"><shadow type="math_number" id="*`I]B}OzZ$(5SbX^@)J5"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="game_game_over" id="K_XCdON0r@zD(S@Ey[.i"><next><block type="game_set_score" id="{gUBG}.v^}?;z4e5-I6v"><value name="points"><shadow type="math_number" id="a19u3Jb?x^o!{p_+@|_c"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="jf;s@Odez6P60gJbY/8p"><field name="VAR" id="s){b~3S6Qe0oMY$H[c]k">PauzeTijd</field><value name="VALUE"><shadow type="math_number" id="s%$WK/Plk*.:t;9r8hpg"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id=":Z8Qb:~A*CMDrJ$Wp%fn"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="dRGB0]`@yr34yaaf^mA?"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_score" id="TswJk9`6i`*0rmRGJV.|"></block></value><value name="B"><shadow type="math_number" id="E5VVDMY.p!px?L`kzmTa"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="|g7$14aa^i#sH+2Rei98"><field name="VAR" id="Ty|N9;%Ob}3pFz1]A_z~">Gewonnen</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="/*(]}CCw`4u#RocPr-d]"><field name="BOOL">TRUE</field></block></value><next><block type="device_while" id="yLCh~K;kl(al/G{A|u-s"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="vwQ,/-oCkVux:wFet*V["><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="/:[Cp1|Wr|9Y}rq$f_zm"><field name="VAR" id="Ty|N9;%Ob}3pFz1]A_z~">Gewonnen</field></block></value><value name="B"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="logic_boolean" id="2}jVPv0_c%:btqW_Asqu"><field name="BOOL">TRUE</field></block></value></block></value><statement name="DO"><block type="device_show_leds" id="yH5NvY!/fS3]S8fO+[~D"><field name="LEDS">`
. # . # .
. . . . .
# . . . #
# . . . #
. # # # .
`</field><next><block type="device_pause" id="UJ5{KVww:=BgG,i|FDPG"><value name="pause"><shadow type="timePicker" id="2K4E.0y6NH}*PR*K,zIm"><field name="ms">1000</field></shadow></value><next><block type="device_print_message" id="%pgG!EvQz(h!=JfX8I.E"><value name="text"><shadow type="text" id="kq2I4bzgGRJ,r/|b9fU,"><field name="TEXT">Je hebt het uitgespeeld!!! Proficiat</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></xml>