this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove whitespaces before colons in pythondemo.py

This is the more common syntax and it is PEP 8 compliant.

Although PEP default indentation width is 4, the default indentation width of TIC-80 is 1, so this commit changes it to 1. As is typical for TIC-80's brevity, this commit removes spaces after commas as well.

https://peps.python.org/pep-0008/

authored by

sudo-piko and committed by
piko
38acafd6 68b94ee5

+19 -20
+19 -20
demos/pythondemo.py
··· 10 10 x=96 11 11 y=24 12 12 13 - def TIC() : 14 - global t 15 - global x 16 - global y 17 - 18 - if btn(0) : y-=1 19 - if btn(1) : y+=1 20 - if btn(2) : x-=1 21 - if btn(3) : x+=1 22 - 23 - cls(13) 24 - spr( 25 - 1+t%60//30*2, 26 - x, y, 27 - colorkey=14, 28 - scale=3, 29 - w=2, h=2 30 - ) 31 - print("HELLO WORLD!", 84, 84) 32 - t+=1 13 + def TIC(): 14 + global t 15 + global x 16 + global y 17 + 18 + if btn(0): y-=1 19 + if btn(1): y+=1 20 + if btn(2): x-=1 21 + if btn(3): x+=1 33 22 23 + cls(13) 24 + spr( 25 + 1+t%60//30*2, 26 + x,y, 27 + colorkey=14, 28 + scale=3, 29 + w=2,h=2 30 + ) 31 + print("HELLO WORLD!",84,84) 32 + t+=1 34 33 35 34 # <TILES> 36 35 # 001:eccccccccc888888caaaaaaaca888888cacccccccacc0ccccacc0ccccacc0ccc