This is a game I made just for fun. You move around inside a random field of blocks and bombs and place your explosive to kill enemies.

## Gameplay Edit

You are a cross. Your enemies appear as four corners of a square. Blocks appear as black squares, and bombs are missing the center dot of a block. You place an explosive and set it off near enemies to kill them. If you set it off near a bomb, the bomb will explode as well, and chain reactions can be created this way. Blocks and bombs can both be moved by you. You can only move a block or bomb into an empty space, not another occupied square. When moving a bomb, there is a small chance it explodes when you push it. You can also move your own mine, but it is probable easier to pick it up and put it down somewhere else. Blocks are destructible, except for the walls keeping you in the map. Enemies can also move blocks. They sometimes detonate themselves when near you. When they get close to you, they kill you. You can blow yourself up. The game ends when all enemies are dead or you are. You get points whenever you kill an enemy. Killing multiple enemies at once or chaining explosions earn you more points. You also get more points for fighting multiple enemies. The points you can get in a game range from 9 to over 100 billion (in theory).

## Controls Edit

The arrow keys move you around. Pressing 2nd places a your explosive. Press 2nd again when next to it to pick it up. Press ALPHA to detonate it. Explosions destroy blocks in contact with their sides or corners.

## Code Edit

:ClrHome :Func :Full :FnOff :FnOn :PlotsOff :CoordOff :GridOff :AxesOff :LabelOff :ExprOff :0→Xmin :-62→Ymin :1→ΔX :1→ΔY :SetUpEditor L1 :SetUpEditor L2 :SetUpEditor L3 :SetUpEditor LHBLOK :If 8≠dim(LHBLOK :{0,0,0,0,0,0,0,0→LHBLOK :Lbl 0 :ClrHome :Output(1,4,"BLOK GAME :Output(2,1,"---------------- :Output(3,1,">PLAY :Output(4,2,"SCORES :Output(5,2,"EXIT :3→N:Repeat FV=105 :getKey→FV :If (FV=25 andN≠3) or (FV=34 andN≠4 :Then :Output(N,1," " :N+(FV=34)-(FV=25→N:Output(N,1,"> :End :End :ClrHome :IfN=3 :Goto 1 :IfN=4 :Goto 2 :ClrHome :DelVar L1 :DelVar L2 :DelVar L3 :Delvar Pic0 :Output(1,1," :Stop :Lbl 1 :ClrDraw :For(X,-5,0 :Horizontal X :Horizontal X-57 :End :For(X,0,6 :Vertical X :Vertical X+88 :End :randInt(75,125→I% :For(X,1,I% :Repeat not(pxl-Test(e2fPart(Ans),iPart(Ans :3randInt(3,29)-1+.01(1+3randInt(2,18 :End :Pt-On(iPart(Ans),-fPart(Ans)e2,2 :Pt-On(iPart(Ans).-e2fPart(Ans :End :randInt(25,75→I% :For(X,1,I% :Repeat not(pxl-Test(e2fPart(Ans),iPart(Ans :3randInt(3,29)-1+.01(1+3randInt(2,18 :End :Pt-On(iPart(Ans),-fPart(Ans)e2,2 :End :Repeat not(pxl-Test(e2fPart(Ans)-1,iPart(Ans :3randInt(3,29)-1+.01(1+3randInt(2,18 :End :Ans→N:Pt-On(iPart(N),-fPart(N)e2,3 :randInt(1,5→I% :I%→dim(L2 :For(X,1,I% :Repeat not(pxl-Test(e2fPart(Ans)-1,iPart(Ans :3randInt(3,29)-1+.01(1+3randInt(2,18 :End :Ans→L2(X :Pt-On(iPart(Ans),-fPart(Ans)e2,2 :Pt-Off(iPart(Ans),-fPart(Ans)e2,3 :End :0→PV :0→PMT :0→dim(L1 :augment({N},L2→L3 :StorePic 0 :Lbl X :Repeat FV=45 or not(dim(L2 :getKey→FV :If FV=34 or (24≤FV and FV≤26 :Then :Pt-Off(iPart(N),-fPart(N)e2,3-2(N=PV :If not(pxl-Test(e2fPart(N)-1+3(FV=34)-3(FV=25),iPart(N)+3((FV=26)-(Fv=24 :Then :N+3((FV=26)-(FV=24)+.01((FV=34)-(FV=25→N:Else :If not(pxl-Test(e2fPart(N)-1+6(FV=34)-6(FV=25),iPart(N)+6((FV=26)-(FV=24 :Then :N+3((FV=26)-(FV=24)+.01((FV=34)-(FV=25→N:IfN=PV :Then :PV+3((FV=26)-(FV=24)+.01((FV=34)-(FV=25→PV :Pt-Off(iPart(N),-fPart(N)e2,3 :Pt-On(iPart(PV),-fPart(PV)e2,3 :Pt-Off(iPart(PV),-e2fPart)PV :Else :If pxl-Test(e2fPart(N),iPart(N:Then :Pt-Off(iPart(N),-fPart(N)e2,2 :Pt-On(iPart(N)+3(FV=26)-3(FV=24),-fPart(Ans)e2+3(FV=34)-3(FV=25),2 :Pt-On(iPart(N)+3(FV=26)-3(FV=24),3(FV=34)-3(FV=25)-e2fPart(Ans :Else :Pt-Off(iPart(N),-fPart(N)e2,2 :Pt-On(iPart(N)+3(FV=26)-3(FV=24),-fPart(Ans)e2+3(FV=34)-3(FV=25),2 :If not(randInt(0,19 :{N+3((FV=26)-(FV=24)+.01((FV=34)-(FV=25→L1 :End :End :End :End :Pt-On(iPart(N),-fPart(N)e2,3 :End :If FV=21 :Then :If PV :Then :If 3≥√((iPart(N)-iPart(PV))^{2}+(e2fPart(N)-e2fPart(PV))2 :Then :Pt-Off(iPart(PV),-fPart(PV)e2,3 :0→PV :N→PV :End :End :If FV=31 and PV :Then :If dim(L1 :augment(L1,{PV→L1 :If not(dim(L1 :Then :1→X :Repeat X>dimL1 :L1(X→PMT :If pxl-Test(e2fPart(PMT)-1,iPart(PMT)) and not(pxl-Test(e2fPart(PMT),iPart(PMT :Then :If not(max(L1=(PMT-3.03 :PMT-3.03→L1(1+sum(L1≠0 :If not(max(L1=(PMT-.03 :PMT-.03→L1(1+sum(L1≠0 :If not(max(L1=(PMT+2.97 :PMT+2.97→L1(1+sum(L1≠0 :If not(max(L1=(PMT-3 :PMT-3→L1(1+sum(L1≠0 :If not(max(L1=(PMT+3 :PMT+3→L1(1+sum(L1≠0 :If not(max(L1=(PMT-2.97 :PMT-2.97→L1(1+sum(L1≠0 :If not(max(L1=(PMT+.03 :PMT+.03→L1(1+sum(L1≠0 :If not(max(L1=(PMT+3.03 :PMT+3.03→L1(1+sum(L1≠0 :sum(L1≠0→dim(L1 :End :If PV=PMT :0→PV :IfN=PMT :45→FV :If max(PMT=L2 :L2-(L2*(PMT=L2→L2 :If iPart(PMT)≠5 and iPart(PMT)≠89 and fPart(PMT)≠.04 and .58≠fPart(PMT :Then :Pt-Off(iPart(PMT),-fPart(PMT)e2,2 :Pt-Off(iPart(PMT),-e2fPart(PMT :End :X+1→X :End :If FV=31 and not(min(L2 :n+dim(L2)(iPart(√(dim(L3)-1)dim(L1)^(sum(not(L2→n:0→dim(L1 :End :If not(min(L2 :Then :SortD(L2 :sum(L2≠0→dim(L2 :End :If dim(L2 :Then :For(X,1,dim(L2 :L2(X→I% :randInt(0,4 :If Ans :Then :Pt-Off(iPart(I%),-fPart(I%)e2,2 :If Ans=1 or Ans=2 :Then :If Ans=1 :Then :I%+3randInt(-1,1→PMT :Else :I%+.03randInt(-1,1→PMT :End :Else :If Ans=3 :Then :I%+3(N>I%)-3(N<I%→PMT :Else :I%+.03(fPart(N)>fPart(I%))-.03(fPart(N)<fPart(I%→PMT :End :End :If PV=PMT :Pt-Off(iPart(PV),-fPart(PV)e2,3 :PV+(PMT-I%→I% :Pt-On(iPart(PV),-fPart(PV)e2,3 :Pt-Off(iPart(PV),-e2fPart(PV :End :If pxl-Test(e2fPart(PMT)-1,iPart(PMT :Then :If pxl-Test(e2fPart(2PMT-I%)-1,iPart(2PMT-I% :Then :I%→PMT :Else :Pt-On(iPart(2PMT-I%),-fPart(2PMT-I%)e2,2 :If pxl-Test(e2fPart(PMT),iPart(PMT :Pt-On(iPart(2PMT-I%),-e2fPart(2PMT-I% :End :End :PMT→L2(X :Pt-On(iPart(PMT),-fPart(PMT)e2,2 :Pt-Off(iPart(PMT),-fPart(PMT)e2,3 :End :√((iPart(N)-iPart(Ans))^{2}+(e2fPart(N)-e2fPart(Ans))^{2}:If Ans≤6 :Then :If Ans≤3 :Then :45→FV :Else :If randInt(0,1) and 3≤dim(L2 :Then :Pt-On(iPart(L2(X)),-fPart(L2(X))e2,2 :{L2(X→L1 :End :End :End :End :End :End :If FV=45 :Then :For(X,1,100 :If fPart(X/2 :Pt-Off(iPart(N),-fPart(N)e2,2 :If not(fPart(X/2 :Then :Pt-On(iPart(N),-fPart(N)e2,2 :Pt-Off(iPart(N),-fPart(N)e2,3 :Pt-On(iPart(N),-e2fPart(N:End :End :For(X,0,200 :0 :End :End :Pt-Off(iPart(N),-fPart(N)e2,2 :Pt-Off(iPart(N),-e2fPart(N:getKey :Repeat Ans :getKey :End :ClrDraw :If FV=45 :Then :Output(1,5,"YOU DIED :Output(2,1,"---------------- :Output(3,1,">TRY AGAIN :Output(4,2,"RETURN TO MAIN :3→N:Repeat FV=105 :getKey→FV :If (FV=25 andN≠3) or (FV=34 andN≠4 :Then :Output(N,1," " :N+(FV=34)-(FV=25→N:Output(N,1,"> :End :End :ClrHome :Else :Output(1,2," YOU WON :Output(2,1,"SCORE: :Output(2,8,n:Output(3,1,"---------------->MAIN MENU :4→N:getKey :Repeat Ans=105 :getKey :End :Ifn>min(LHBLOK :Then :ClrHome :Output(1,3,"HIGH SCORE! :n→LHBLOK(8 :SortD(LHBLOK :getKey :Repeat Ans :getKey :End :5→N:End :End :IfN=5 :Goto 2 :IfN=4 :Goto 0 :L3(1→N:seq(L3(n),n,2,dim(L3→L2 :0→PV :0→n:RecallPic 0 :Goto X :Lbl 2 :ClrHome :For(X,1,8 :Output(X,1,X :Output(X,2,": :Output(X,4,LHBLOK :End :getKey :Repeat Ans :getKey :End :ClrHome :Goto 0

Made by LordoftheBleak.