Skip to content

Commit

Permalink
character no longer goes out of the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChamp-SS committed Jan 30, 2021
1 parent 2c6c418 commit 5bd44b3
Show file tree
Hide file tree
Showing 7 changed files with 881 additions and 351 deletions.
Binary file modified .github/makecode/blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/makecode/blocksdiff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions images.g.jres

Large diffs are not rendered by default.

902 changes: 673 additions & 229 deletions images.g.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions main.blocks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id="ny;W{Whr?Gp;z.zEEe4@">Player</variable><variable type="KIND_SpriteKind" id="RH|p|RqoX:t$L$+4{Q^#">Projectile</variable><variable type="KIND_SpriteKind" id="*Qbz,3#JPh_nhs7ehpXP">Food</variable><variable type="KIND_SpriteKind" id="0h%$#s*~=RUa*=L|sq}j">Enemy</variable><variable id=",I)w4^.B9t1UtPPjeWx0">hacker</variable><variable id="and@ep0@/R6Ph!C9nmH0">mySprite</variable><variable id="V;u[shjT9v^cXJxjZDxj">projectile</variable><variable id="_:u]g;plN;xDIP;kZ-Cx">projectile2</variable></variables><block type="pxt-on-start" id="jklA:2+%8I!;1ybm8^#j" x="0" y="0"><statement name="HANDLER"><block type="gamesetbackgroundimage" id="8QCb52LYPiSJ%O-]{p2{"><value name="img"><shadow type="background_image_picker" id="Km+Gu5PGv[kmz+/o#:j2"><field name="img">img`
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="P5PMf5`MqWgZl2fEKm5Y">hacker</variable><variable id="@)#nIpa;H`.?2Y2TSUE.">projectile</variable><variable type="KIND_SpriteKind" id="%W4yfn_WoArsN}^:8:fl">Player</variable><variable type="KIND_SpriteKind" id="#nl%hVCHHY|31wVUmD?A">Projectile</variable><variable type="KIND_SpriteKind" id="(HXRN~ERhG?go0blE!~P">Food</variable><variable type="KIND_SpriteKind" id="lZxc2Ovf5GeU/`MNKI=G">Enemy</variable></variables><block type="pxt-on-start" id="jgm|Gu,3e9#4BIzQutN(" x="0" y="0"><statement name="HANDLER"><block type="gamesetbackgroundimage" id="_ln*{]@e(S5d_ChA6$z4"><value name="img"><shadow type="background_image_picker" id="L}}KAiAoA$E?3,9dw~)X"><field name="img">img`
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
Expand Down Expand Up @@ -119,7 +119,7 @@
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image1"}}</data></shadow></value><next><block type="variables_set" id="U([%g}bJ36PxqYtM`Eir"><field name="VAR" id=",I)w4^.B9t1UtPPjeWx0">hacker</field><value name="VALUE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="=12J1={Wu6$@mk0[aUBK"><value name="img"><shadow type="screen_image_picker" id="|3H$ONw}A@;I_9U$%SG%"><field name="img">assets.image`Temporary asset`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image6"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="brvOd.K4AXpRLt8eU..)"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="run_image_animation" id="bEYaWP2kWw|YMuB2#n}."><value name="sprite"><block type="variables_get" id="li3u-h+xB[IhfFl|S~6u"><field name="VAR" id=",I)w4^.B9t1UtPPjeWx0">hacker</field></block></value><value name="frames"><block type="animation_editor" id="z+wqK_G4LqFkrTLbg3LM"><field name="frames">[img`
`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image4"}}</data></shadow></value><next><block type="variables_set" id="DN%r?q+6*8Y|l/xd[XAc"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="E20tT@WN-T:##Q$D:w2U"><value name="img"><shadow type="screen_image_picker" id="3SpPnS,7HX3yH9jPVZGo"><field name="img">assets.image`Temporary asset`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image6"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="(#Y~vtX241NGE:A-p)(;"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="run_image_animation" id="NNH6U9b#yu_XAb^@9pKP"><value name="sprite"><shadow type="variables_get" id="$oJOLaTjps~6|d8a.eb?"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></shadow></value><value name="frames"><shadow type="animation_editor" id="5WSI:|~1pV-qtISeM]Jq"><field name="frames">[img`
............................................................
............................................................
............................................................
Expand Down Expand Up @@ -241,7 +241,7 @@
............................................................
............................................................
............................................................
`]</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim1"}}</data></block></value><value name="frameInterval"><shadow type="timePicker" id="h;zONNNAGDKI+*2=XeL6"><field name="ms">500</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="SevNFODL4O..LcA6Q-rP"><field name="on">true</field></shadow></value><next><block type="spritesetpos" id="0_f(Bj:Qz7|%X)P{Sysg"><value name="sprite"><block type="variables_get" id="!KO?C;i/xs0])|aSXa%/"><field name="VAR" id=",I)w4^.B9t1UtPPjeWx0">hacker</field></block></value><value name="x"><shadow type="positionPicker" id="g2)}Vdp{Ct)umQf.?j}q"><field name="index">40</field></shadow></value><value name="y"><shadow type="positionPicker" id=")SBGf/fZ81/X7]4Gkym4"><field name="index">80</field></shadow></value><next><block type="Sprite_blockCombine_set" id="[5$g?LlP$*6Le1kYu^m$"><field name="property">Sprite.ay@set</field><value name="mySprite"><block type="variables_get" id="hPoYq@:13.|A5tLx,uC2"><field name="VAR" id=",I)w4^.B9t1UtPPjeWx0">hacker</field></block></value><value name="value"><shadow type="math_number" id="HoJDs#m9XmOW4*DVvwj`"><field name="NUM">80</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="keyonevent" id="+X5IMjXuG:wHI*:u7D:`" x="610" y="50"><field name="button">controller.anyButton</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="Sprite_blockCombine_set" id="{R~,f}fDz?=,UcWy_HlH"><field name="property">Sprite.vy@set</field><value name="mySprite"><block type="variables_get" id="Sz2V(dpD{/P=X}(m)c7p"><field name="VAR" id=",I)w4^.B9t1UtPPjeWx0">hacker</field></block></value><value name="value"><shadow type="math_number" id="~y}C?q.4pEbDqAj3n[N]"><field name="NUM">-60</field></shadow></value></block></statement></block><block type="gameinterval" id="d}d{^.IXr5=,[CMLZJlN" x="510" y="330"><value name="period"><shadow type="timePicker" id="bBVEjSl2P/pS*.$(usIo"><field name="ms">3000</field></shadow></value><statement name="HANDLER"><block type="variables_set" id="7J;?9R_wFPHI^N:{bgwd"><field name="VAR" id="V;u[shjT9v^cXJxjZDxj">projectile</field><value name="VALUE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0</field></shadow><block type="spritescreateprojectilefromside" id="^3.ENr;%Tn^E%jDF3{v5"><value name="img"><shadow type="screen_image_picker" id="h^bg,WPCpe#~mk/}{St0"><field name="img">img`
`]</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim2"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="]kdqde,u_fbiEl@UB6DD"><field name="ms">500</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="ApEpsc_l/0A9u)g#-Pv4"><field name="on">true</field></shadow></value><next><block type="spritesetpos" id="_MUKLx6H)~w/.gNwNhN]"><value name="sprite"><block type="variables_get" id="%YRmT%Ph+6;=@HbuL5HW"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="x"><shadow type="positionPicker" id="Hu5MMv!Dv9h$7EHrZ-VM"><field name="index">40</field></shadow></value><value name="y"><shadow type="positionPicker" id="dM(k=I1dVKj/bD4]pK`4"><field name="index">90</field></shadow></value><next><block type="Sprite_blockCombine_set" id="Ud9Og|VI?*i,Tfsx*FlN"><field name="property">Sprite.ay@set</field><value name="mySprite"><block type="variables_get" id="[v(CyeyqC?nS%QE/?$fR"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="A-][?GUX.N_ePGLs?_+f"><field name="NUM">80</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="keyonevent" id="ynwwj;wYNd7]n#0baDn3" x="580" y="20"><field name="button">controller.anyButton</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="Sprite_blockCombine_set" id="2TK61b7FU1C4,@Cg_5?j"><field name="property">Sprite.vy@set</field><value name="mySprite"><block type="variables_get" id=")1{o.^,d_4sx/A(U9@A+"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="@016~#B*%}sR{^VCVYD;"><field name="NUM">-60</field></shadow></value></block></statement></block><block type="gameinterval" id="dFlH8*Qy`zV59R4idE/v" x="480" y="300"><value name="period"><shadow type="timePicker" id="ket3e%%0j+M//D7@!F;^"><field name="ms">3000</field></shadow></value><statement name="HANDLER"><block type="variables_set" id=".J:MNh.5Ya%+tc-,:t7`"><field name="VAR" id="@)#nIpa;H`.?2Y2TSUE.">projectile</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreateprojectilefromside" id="lCk)3Y{)qvv}$|9J_F-3"><value name="img"><shadow type="screen_image_picker" id="No}yQmr2)O)[Al}SM-rO"><field name="img">img`
...........fffffff...ccfff..........
..........fbbbbbbbffcbbbbf..........
..........fbb111bbbbbffbf...........
Expand All @@ -258,4 +258,4 @@
............cc1111fbdbbfdddc...fbbf.
..............cccfffbdbbfcc.....fbbf
....................fffff........fff
`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image4"}}</data></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="h-4cW58:t-F-t{LVCyUx"><field name="speed">-100</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="N[.a*TF@9sz2MDVcl)BF"><field name="speed">0</field></shadow></value></block></value><next><block type="Sprite_blockCombine_set" id="N$|Zl~veYaYp%c|.WKro"><field name="property">Sprite.y@set</field><value name="mySprite"><block type="variables_get" id="`|3j-;DY^|yT@C1daMKY"><field name="VAR" id="V;u[shjT9v^cXJxjZDxj">projectile</field></block></value><value name="value"><shadow type="math_number" id="]KVTL!j{|qA#wuvi{tRa"><field name="NUM">80</field></shadow></value></block></next></block></statement></block></xml>
`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image8"}}</data></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="n7^Q?uZfa^]#D.VODps_"><field name="speed">-100</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="R:;BC~+eFafHV[(`rqmF"><field name="speed">0</field></shadow></value></block></value><next><block type="Sprite_blockCombine_set" id="n+dt=!V1wX?NBgK1nxBe"><field name="property">Sprite.y@set</field><value name="mySprite"><block type="variables_get" id="*1{ZsHSyHZCf!2tpuMvg"><field name="VAR" id="@)#nIpa;H`.?2Y2TSUE.">projectile</field></block></value><value name="value"><shadow type="math_number" id="(E-K?HVDyf;`?p#n=Ee$"><field name="NUM">80</field></shadow></value></block></next></block></statement></block><block type="gameupdate" id="F7eQ2*`F{/Cz`PMPm_0j" x="40" y="600"><statement name="HANDLER"><block type="controls_if" id="nehep.yrMs;ZqFh@}i6l"><mutation elseif="1" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="?vVMUh%Xp-Q6w^Din%Sl"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="8G`|t+|=TJ*Zh+$MpCcc"><field name="property">Sprite.y</field><value name="mySprite"><block type="variables_get" id="/i-Q;{|)RZi[u_.yH-cQ"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value></block></value><value name="B"><shadow type="math_number" id=".BjrYw3G5v,mceeV8Oue"><field name="NUM">20</field></shadow></value></block></value><statement name="DO0"><block type="Sprite_blockCombine_set" id="%.$^}{W#tf?otX3P85=v"><field name="property">Sprite.vy@set</field><value name="mySprite"><block type="variables_get" id="gL@H$1g.O3-SI+!cR*fG"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="pa-EV#gom^#mKy~Qs:!5"><field name="NUM">10</field></shadow></value><next><block type="Sprite_blockCombine_set" id="2E;;KKL+nO}Ds|Z,#(Jx"><field name="property">Sprite.ay@set</field><value name="mySprite"><block type="variables_get" id="Q)j|5^X=I]6L7erYUmPB"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="i4p1Wh0foA@e2Ie1U*eX"><field name="NUM">100</field></shadow></value></block></next></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="[G_Aio.p/`c*T{Tc}PED"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="1E1G%cr;p0p,(+6aA4|c"><field name="property">Sprite.y</field><value name="mySprite"><block type="variables_get" id="%:%u,=-Qf?/%}oG!wFA~"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value></block></value><value name="B"><shadow type="math_number" id="vQqv?{~+`:7Od@G`OI(,"><field name="NUM">90</field></shadow></value></block></value><statement name="DO1"><block type="Sprite_blockCombine_set" id="Iw%S3+O%o85{GVt(/.9."><field name="property">Sprite.ay@set</field><value name="mySprite"><block type="variables_get" id="{Et?@G0Rlh[[I*~66$(e"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="l,%cXji.]F[v#iEIe1=6"><field name="NUM">100</field></shadow></value></block></statement><statement name="ELSE"><block type="Sprite_blockCombine_set" id="-wEk[g=WP~lC8ap4D52!"><field name="property">Sprite.ay@set</field><value name="mySprite"><block type="variables_get" id="zN/!x1fRzSioc@x-y*~_"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="snXgJmh,t*4mFGiT(o=M"><field name="NUM">0</field></shadow></value><next><block type="Sprite_blockCombine_set" id="it/(,wGQHB6mnQtdc==k"><field name="property">Sprite.vy@set</field><value name="mySprite"><block type="variables_get" id="Tt2a?hzM;ri]3]w8X4PC"><field name="VAR" id="P5PMf5`MqWgZl2fEKm5Y">hacker</field></block></value><value name="value"><shadow type="math_number" id="-$z8$0QyU#=MQRbk85RD"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></statement></block></xml>
Loading

1 comment on commit 5bd44b3

@CodeChamp-SS
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.