Son aktif 1731086600

Pyxel-7.py Ham
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()