Improving background

This commit is contained in:
2021-11-11 23:30:48 +01:00
parent c0a7eb1ee2
commit 864fd55280

View File

@ -16,7 +16,7 @@ end
function _draw() function _draw()
cls() cls()
print(#pyras,7) drawbg()
drawguy() drawguy()
drawpyras() drawpyras()
end end
@ -79,6 +79,14 @@ function eatpyras()
deli(pyras,index) deli(pyras,index)
end end
end end
-->8
function drawbg()
offset=1
if(#pyras>9)offset+=1
if(#pyras>99)offset+=1
rectfill(0,0,127,127,1)
print(#pyras,128-4*offset,1,7)
end
__gfx__ __gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000