From 864fd552807586f3b63c1e5af432d605da6f4bf5 Mon Sep 17 00:00:00 2001 From: djib Date: Thu, 11 Nov 2021 23:30:48 +0100 Subject: [PATCH] Improving background --- pyras.p8 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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