diff --git a/pyras.p8 b/pyras.p8 index 8fb5c15..389caaa 100644 --- a/pyras.p8 +++ b/pyras.p8 @@ -16,7 +16,7 @@ end function _draw() cls() - print(#pyras,7) + drawbg() drawguy() drawpyras() end @@ -79,6 +79,14 @@ function eatpyras() deli(pyras,index) 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__ 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000