Dernière activité 1731086600

Révision 31757b582b0f00e0a441c5359c86f80959061d20

Pyxel-7.py Brut
1import pyxel
2
3class App:
4 def __init__(self):
5 pyxel.init(160, 120)
6 self.x = 0
7 pyxel.run(self.update, self.draw)
8
9 def update(self):
10 self.x = (self.x + 1) % pyxel.width
11
12 def draw(self):
13 pyxel.cls(0)
14 pyxel.rect(self.x, 0, 8, 8, 9)
15
16App()