-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 17.4 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id="U_X`fM)7Y~=C]SX^6/3s">Pointer_Kind</variable><variable type="KIND_SpriteKind" id="yW{41`b)4Ln8`n@yJ=42">LockBtn_Kind</variable><variable type="KIND_SpriteKind" id="eaZc:{oQ)=3#X:OYO|r1">toonsBtn_Kind</variable><variable type="KIND_SpriteKind" id="rKYe2[KM]N#?V-Qx.*v%">nonInteractiveIcon</variable><variable type="KIND_SpriteKind" id="Fe[w,}gU7a[t0X.v[/nW">hangUpBtn_Kind</variable><variable type="KIND_SpriteKind" id="b$9J)Q~y/kG.=nC_]bld">Player</variable><variable type="KIND_SpriteKind" id="3)jw#CJ3;[+ggH?7rx$q">Projectile</variable><variable type="KIND_SpriteKind" id="%|H8UNKlf#y@9[-UH}=x">Food</variable><variable type="KIND_SpriteKind" id="f4EYI.zs^v]fvUnrDA*a">Enemy</variable><variable id="UKQF7I]:EiW:(fB6)=bO">Locked</variable><variable id="x9.DAB5%TY$T]6d{8K0i">Pointer</variable><variable id="/HqFX#.bkSKtv_UScq91">lockBtn</variable><variable id="*f~7D-:J9fC!Fs7t$OM3">toonsBtn</variable><variable id="Jk1nElK8Mgn[()+%gD,J">Music1p</variable></variables><block type="pxt-on-start" id="1ZTmw7j_w1u_2`5o[-t," x="0" y="0"><statement name="HANDLER"><block type="function_call" id="!e.|{FiZdp|)KS%HAlgJ"><mutation name="lockDevice" functionid="a8^^#w3s/h{]ptQ3%QN["></mutation></block></statement></block><block type="buttonCombosAttach" id="c^L$9iO]iGi#e=h8WIqJ" x="220" y="0"><value name="combo"><shadow type="text" id="d[6YBe_(-jaX|(uL.DDC"><field name="TEXT">a+b</field></shadow></value><statement name="HANDLER"><block type="function_call" id="W_{bn?QwXR2fFM%DA-ql"><mutation name="unlockDevice" functionid="a$$nf~Nw5q}+@?~p/eqQ"></mutation></block></statement></block><block type="spritesoverlap" id="f$A-y4xSK@7GjjpL:cf6" x="-30" y="370"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="`AA=);GSX8f1Ml(V)jNh"><mutation typename="Sprite"></mutation><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="Fj(Bcm[RkSH6WVx|4sMP"><field name="MEMBER">Pointer_Kind</field></shadow></value><value name="HANDLER_DRAG_PARAM_otherSprite"><shadow type="argument_reporter_custom" id="@EGOGW1F8.SpkShP|EBJ"><mutation typename="Sprite"></mutation><field name="VALUE">otherSprite</field></shadow></value><value name="otherKind"><shadow type="spritekind" id="ZHeH$^[P`vuAHudWN`!h"><field name="MEMBER">toonsBtn_Kind</field></shadow></value><statement name="HANDLER"><block type="controls_if" id="RQIybRex3qWDi8:|67,d"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="keyispressed" id="303Z9(cp*Bi;*!(!m]ZG"><field name="button">controller.A</field></block></value><statement name="DO0"><block type="function_call" id="y[xzvK#_sLWbzF*TvRz?"><mutation name="openToonsApp" functionid="-B[Y4u6;neDpD`I6sn|M"></mutation></block></statement></block></statement></block><block type="spritesoverlap" id="VyOEiADdfo2PyjVt!~y*" x="0" y="599"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="VFjcv|H3AsUB~tVEMz)="><mutation typename="Sprite"></mutation><field name="VALUE">sprite2</field></shadow></value><value name="kind"><shadow type="spritekind" id="0J@eV5Rzm6[JOsE1CEu1"><field name="MEMBER">Pointer_Kind</field></shadow></value><value name="HANDLER_DRAG_PARAM_otherSprite"><shadow type="argument_reporter_custom" id="@X1|ZoF[$7]*YW5Dmd~V"><mutation typename="Sprite"></mutation><field name="VALUE">otherSprite2</field></shadow></value><value name="otherKind"><shadow type="spritekind" id="2#Z:/7bDdu7.~Lg(KBu2"><field name="MEMBER">LockBtn_Kind</field></shadow></value><statement name="HANDLER"><block type="controls_if" id="-41:KHhs:Oy87jl_|4NK"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="keyispressed" id="OXB!JXqZZq*O];97cnrV"><field name="button">controller.A</field></block></value><statement name="DO0"><block type="console_log" id="K*f-ZN0^W^wO-P,1~%cO"><value name="value"><shadow type="text" id="t3CdHaxeMt@8lvkdB9]0"><field name="TEXT">[NNOS INFO]: The device has locked</field></shadow></value><next><block type="function_call" id="7?T*s?|dMRhK(J(yp@Fu"><mutation name="lockDevice" functionid="a8^^#w3s/h{]ptQ3%QN["></mutation></block></next></block></statement></block></statement></block><block type="function_definition" id="91)v=qpn1/69dpj=dR37" x="0" y="1475"><mutation name="lockDevice" functionid="a8^^#w3s/h{]ptQ3%QN["></mutation><field name="function_name">lockDevice</field><statement name="STACK"><block type="controls_if" id="fH.3vU{Ti`7i_Sp[jIf="><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="*4Zprb0}fGUsLuro?]V,"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="g[.WO=)Ih$if/JU2n*il"><field name="VAR" id="UKQF7I]:EiW:(fB6)=bO">Locked</field></block></value><value name="B"><shadow type="math_number" id="[K1+7[M1GSt:?J{j*?N^"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="I.7%;MV/)+Hw`MFUBRqE"><mutation name="destroyIcons" functionid="$J@:p+{oQS.lB[HbI98f"></mutation><next><block type="spritedestroy2" id="18.a1OSdMxlNcG#!{6PF"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.spray</field><value name="sprite"><shadow type="variables_get" id="h-xQ_X:-@(!AsZ4wyR}i"><field name="VAR" id="x9.DAB5%TY$T]6d{8K0i">Pointer</field></shadow></value></block></next></block></statement><next><block type="variables_set" id="_AS9`sr[sq`TYI}$Db_B"><field name="VAR" id="UKQF7I]:EiW:(fB6)=bO">Locked</field><value name="VALUE"><shadow type="math_number" id="0D-wpP1?o`$Ozi%=6$-{"><field name="NUM">1</field></shadow></value><next><block type="gamesetbackgroundimage" id="pK#,]A/E|LHe6:Ef.wLv"><value name="img"><shadow type="background_image_picker" id="zhe/4l18ol|Gn3/WqzJF"><field name="img">assets.image`Lock Screen`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.V]3Z_ny9/vv~W?n!M2B5"}}</data></shadow></value></block></next></block></next></block></statement></block><block type="function_definition" id="vEl,^R;Bi0Ff6aB|%reo" x="0" y="1920"><mutation name="openToonsApp" functionid="-B[Y4u6;neDpD`I6sn|M"></mutation><field name="function_name">openToonsApp</field><statement name="STACK"><block type="console_log" id="bh./IDIPEcb.Ex`5i|R]"><value name="value"><shadow type="text" id="+ko31jv}}:9;f}lOH|%^"><field name="TEXT">[NNOS SERVICES/toons]: Playing computer noises ambiance</field></shadow></value><next><block type="controls_if" id="yXzmZx-*^Xn|wqWO7x`|"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="!u2XmW/D!LvBzqJ)Bu,]"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="/(yqKYCu(;#YDa-+]qwP"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="T?JN)AxUQ}goWYAbxvT5" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="GT)@3bmo]MI]Ex4`2{{a"><field name="VAR" id="Jk1nElK8Mgn[()+%gD,J">Music1p</field></block></value><value name="B"><shadow type="math_number" id="32LxJ^nV!^j6k?~PcpA}"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="device_while" id="/6Pi,s1T+Fk`,6rU:bT@"><value name="COND"><shadow type="logic_boolean" id="4J?BPT^p2Z?,6~yb8{m,"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="music_playable_play" id="8stOd-lN!nD.T$H.;8IX"><field name="playbackMode">music.PlaybackMode.UntilDone</field><value name="toPlay"><shadow type="music_song_field_editor" id="vvTE;emTJWO4[H|,r;2y"><field name="song">assets.song`Ringtone`</field><data>{"commentRefs":[],"fieldData":{"song":"mySongs.quQ5~a9ClA;W`3VU*uWP"}}</data></shadow></value></block></statement></block></statement><statement name="ELSE"><block type="variables_set" id="4#+~Wh)D95+tG5;frgyJ"><field name="VAR" id="Jk1nElK8Mgn[()+%gD,J">Music1p</field><value name="VALUE"><shadow type="math_number" id="o?dE8sFH(a~3PxZpSv0U"><field name="NUM">1</field></shadow></value><next><block type="device_while" id="3T[,-T%u57C+1Vf;t`ri"><value name="COND"><shadow type="logic_boolean" id="t`A]vX[4FxCkkGa}0:{="><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="music_playable_play" id="NDg;C4jpQb{|S-/lOIaa"><field name="playbackMode">music.PlaybackMode.UntilDone</field><value name="toPlay"><shadow type="music_melody_playable"></shadow><block type="soundExpression_generateSimilarSound" id="G,@k=#(nM~s3K,sAnm5;"><value name="sound"><shadow type="soundExpression_createSoundEffect" id="$;oqdmn;#xCzU-hg7433" inline="true"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="waveShape">WaveShape.Noise</field><field name="effect">SoundExpressionEffect.None</field><field name="interpolation">InterpolationCurve.Linear</field><value name="startFrequency"><shadow type="math_number_minmax" id="a)2ASp)d_ZapXpMYw}C%"><mutation min="0" max="5000" label="Number" precision="0"></mutation><field name="SLIDER">5000</field></shadow></value><value name="endFrequency"><shadow type="math_number_minmax" id="{}9T^Sc,1+U`vqr@L)~b"><mutation min="0" max="5000" label="Number" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><value name="duration"><shadow type="math_number_minmax" id="-SNTCQ83ufpy^*|1G3Lq"><mutation min="1" max="9999" label="Number" precision="0"></mutation><field name="SLIDER">500</field></shadow></value><value name="startVolume"><shadow type="math_number_minmax" id="oUxK|y_MPH=Uzl(Rc{Kf"><mutation min="0" max="255" label="Number" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><value name="endVolume"><shadow type="math_number_minmax" id="`DF08;JegasZ(-)X,Pp)"><mutation min="0" max="255" label="Number" precision="0"></mutation><field name="SLIDER">0</field></shadow></value></shadow></value></block></value></block></statement></block></next></block></statement></block></next></block></statement></block><block type="function_definition" id="+gPD!-dV3X`,,@+?7u=;" x="310" y="2267"><mutation name="unlockDevice" functionid="a$$nf~Nw5q}+@?~p/eqQ"></mutation><field name="function_name">unlockDevice</field><statement name="STACK"><block type="controls_if" id="#n)j%;,9/j~X.P*PbVdi"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="pA`9Y|zUC[SQ0dgD3y(S"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Q#X3-99v{)rb?p|-SED_"><field name="VAR" id="UKQF7I]:EiW:(fB6)=bO">Locked</field></block></value><value name="B"><shadow type="math_number" id="T!c_=21liwc%nzq$UM^v"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="console_log" id="C9um0e2UJRG!?O3o$c|_"><value name="value"><shadow type="text" id="8B[#lHfN^}O*Hv*3VHGI"><field name="TEXT">[NNOS INFO]: Device has been unlocked.</field></shadow></value><next><block type="variables_set" id="O}mA[TR*S0djs9c#duMg"><field name="VAR" id="UKQF7I]:EiW:(fB6)=bO">Locked</field><value name="VALUE"><shadow type="math_number" id="bCFN*(m?Q;cPLI01D71i"><field name="NUM">0</field></shadow></value><next><block type="gamesetbackgroundimage" id="4_jzRh?-y_[p1d9m,v::"><value name="img"><shadow type="background_image_picker" id="g|ol`hI}uTx%GPM!OIIX"><field name="img">assets.image`Background`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.OVUi1[dqofqBgznmnFn-"}}</data></shadow></value><next><block type="variables_set" id="~_iN6[8I^,5_GGwQ6#]S"><field name="VAR" id="x9.DAB5%TY$T]6d{8K0i">Pointer</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="XVldrhEnmhlV3mcBf#N0"><value name="img"><shadow type="screen_image_picker" id="j^+MC`R@FD^|6~OyIa`%"><field name="img">assets.image`Cursor`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.sA339w"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="VVU8)B6*N_p.^x8)@,4D"><field name="MEMBER">Pointer_Kind</field></shadow></value></block></value><next><block type="console_log" id="mq;.Y_`[x!?ZWe,9#/8c"><value name="value"><shadow type="text" id="s2}EczREg98z{4H??h^E"><field name="TEXT">[NNOS INFO]: Created Pointer</field></shadow></value><next><block type="spritesetsetstayinscreen" id="2:vguo7;ECc,PhOx;4rd"><value name="sprite"><block type="variables_get" id="*Msj^_se{rF@/)li,*iO"><field name="VAR" id="x9.DAB5%TY$T]6d{8K0i">Pointer</field></block></value><value name="on"><shadow type="toggleOnOff" id="LL@o|)?jKg})H;Q{t^Z9"><field name="on">true</field></shadow></value><next><block type="game_control_sprite" id="ptZq5itjgIEwePuQ]!aI"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><value name="sprite"><shadow type="variables_get" id="soa1Nk?S}L?R2_[3yl#/"><field name="VAR" id="x9.DAB5%TY$T]6d{8K0i">Pointer</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="Ig;MmQc=/,zOOZg%cl_N"><field name="speed">50</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="ZwTxr_:Hg1W=P}w?b6P6"><field name="speed">50</field></shadow></value><next><block type="console_log" id="hy@IuFawHD:Fp6s,-o_A"><value name="value"><shadow type="text" id=".g#S[%#dR)ozrFsAJDrB"><field name="TEXT">[NNOS INFO]: Set settings for Pointer</field></shadow></value><next><block type="variables_set" id="3C`{6$!t_x%$;tR::[7q"><field name="VAR" id="/HqFX#.bkSKtv_UScq91">lockBtn</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="-O?koH8a8OSzfV;yi4/7"><value name="img"><shadow type="screen_image_picker" id="u+kP5amOkkI7#rsJ.DcI"><field name="img">assets.image`lockIcon`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.6)iLLWB_G{6fCKj#Q6QX"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id=")RZ6MD8#($~Y^lcE]uU}"><field name="MEMBER">LockBtn_Kind</field></shadow></value></block></value><next><block type="console_log" id="MU35wVVWyaHznm5KCq+d"><value name="value"><shadow type="text" id="$IJ4I%k{(A!:zNZWKIGw"><field name="TEXT">[NNOS INFO]: Created lockBtn</field></shadow></value><next><block type="spritesetpos" id="fxXwF4.[KTeOJv._uuT7"><value name="sprite"><block type="variables_get" id="{{C@P:+g}o_VcTHWvko)"><field name="VAR" id="/HqFX#.bkSKtv_UScq91">lockBtn</field></block></value><value name="x"><shadow type="positionPicker" id="(#SIX_|hnIKq2-A|DWE`"><field name="index">20</field></shadow></value><value name="y"><shadow type="positionPicker" id="A:jaX_cH^yN);Kmr~1AR"><field name="index">20</field></shadow></value><next><block type="console_log" id="0X_TAwtH8u(++Vr^T:92"><value name="value"><shadow type="text" id="$44*C,k4:h3QvY%;W$:B"><field name="TEXT">[NNOS INFO]: Modified position for lockBtn</field></shadow></value><next><block type="variables_set" id="N_J$UM4f!Li4gmTjQbOq"><field name="VAR" id="*f~7D-:J9fC!Fs7t$OM3">toonsBtn</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="OM-pEf7~R~_[9b+UZEo;"><value name="img"><shadow type="screen_image_picker" id="Q%mgE^Z$amV_XaGl`%6$"><field name="img">assets.image`toonsIcon`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.#lmHd(D1f$C_:;+%2a:D"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="La4S/[O+L$%dQh0?%B59"><field name="MEMBER">toonsBtn_Kind</field></shadow></value></block></value><next><block type="console_log" id=";VOpp(NN5x]:T|5~.Kta"><value name="value"><shadow type="text" id="dI6(WPY$v@sDEa_Y4_FI"><field name="TEXT">[NNOS INFO]: Created toonsBtn</field></shadow></value><next><block type="spritesetpos" id="#UvN6X_1.e,^olm]1S_^"><value name="sprite"><block type="variables_get" id="gq7*Y!xq?+1@[*IagPTI"><field name="VAR" id="*f~7D-:J9fC!Fs7t$OM3">toonsBtn</field></block></value><value name="x"><shadow type="positionPicker" id="3=DG8}jZ{])C0K6j9VYs"><field name="index">20</field></shadow></value><value name="y"><shadow type="positionPicker" id="Mo~y?vNmxW(HY1j_)Nl="><field name="index">50</field></shadow></value><next><block type="console_log" id="*;g=Q9jo3vr|e|v~0z7Z"><value name="value"><shadow type="text" id="Jnq(:XRMA}@oe~@8{$xb"><field name="TEXT">[NNOS INFO]: Modified position for toonsBtn</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="function_definition" id="9E;FNrftiL*Y|sGSLOV|" x="56" y="2325"><mutation name="destroyIcons" functionid="$J@:p+{oQS.lB[HbI98f"></mutation><field name="function_name">destroyIcons</field><statement name="STACK"><block type="spritedestroy2" id="9*u{3XOy$/(Q?zL0P-a`"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.spray</field><value name="sprite"><shadow type="variables_get" id=";x!YJS;1Y^k(WXbM?nv?"><field name="VAR" id="/HqFX#.bkSKtv_UScq91">lockBtn</field></shadow></value><next><block type="spritedestroy2" id="LvT35/bAzmuwv(tD$s3j"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.spray</field><value name="sprite"><shadow type="variables_get" id="B-AMC1zl-/GUqr`Qj8{="><field name="VAR" id="*f~7D-:J9fC!Fs7t$OM3">toonsBtn</field></shadow></value></block></next></block></statement></block></xml>