repl.it
Pyxel

No description

fork
loading
Files
  • main.py
  • nohup.out
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pyxel
from random import choice

class App:
  def __init__(self):
    pyxel.init(160, 120)
    self.x = 0
    pyxel.run(self.update, self.draw)

  def update(self):
    self.x = (self.x + 1) % pyxel.width

  def draw(self):
    pyxel.cls("black")
    pyxel.rect(self.x, 0, self.x + 7, 7, 9)

App()
Fetching token
?