diff --git a/parts/scenes/app_cubefield.lua b/parts/scenes/app_cubefield.lua index c97275b4..eba75a83 100644 --- a/parts/scenes/app_cubefield.lua +++ b/parts/scenes/app_cubefield.lua @@ -29,8 +29,6 @@ local menu,ct,play local score local sunH,color,rot -local drawn=false - local function near(o,t) return o>t and max(o-.01,t)or o420 and y<480 and x<8 and x+size>-8 and inv==0 then + cubesX[i]=cubesX[i]-3 + hurt(650) + inv=40 + end + end + end + end + --Screen rotation if moveDir~=0 then player=player+moveDir*dt*.003*speed^.8 @@ -193,7 +206,6 @@ function scene.update(dt) end function scene.draw() - drawn=true --Health bar if life1>0 then gc.setColor(1,0,0) @@ -245,12 +257,6 @@ function scene.draw() gc.setColor(1,1,1) gc.rectangle('line',x,y-485,size,size) end - - if play and y>420 and y<480 and x<8 and x+size>-8 and inv==0 then - cubesX[i]=cubesX[i]-3 - hurt(650) - inv=40 - end end end