diff --git a/demos/pythondemo.py b/demos/pythondemo.py index 7e0dcc7a9..bc66dbbbd 100644 --- a/demos/pythondemo.py +++ b/demos/pythondemo.py @@ -10,27 +10,26 @@ x=96 y=24 -def TIC() : - global t - global x - global y - - if btn(0) : y-=1 - if btn(1) : y+=1 - if btn(2) : x-=1 - if btn(3) : x+=1 - - cls(13) - spr( - 1+t%60//30*2, - x, y, - colorkey=14, - scale=3, - w=2, h=2 - ) - print("HELLO WORLD!", 84, 84) - t+=1 - +def TIC(): + global t + global x + global y + + if btn(0): y-=1 + if btn(1): y+=1 + if btn(2): x-=1 + if btn(3): x+=1 + + cls(13) + spr( + 1+t%60//30*2, + x,y, + colorkey=14, + scale=3, + w=2,h=2 + ) + print("HELLO WORLD!",84,84) + t+=1 # # 001:eccccccccc888888caaaaaaaca888888cacccccccacc0ccccacc0ccccacc0ccc