www.pyxelstudio.net/studio/p6geq9bl
|
app.py
# This is an example.
# Create your own game / app.
# Pyxel documentation: https://github.com/kitao/pyxel
import pyxel
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(0)
pyxel.rect(self.x, 0, 8, 8, 9)
App()
Description
Documentation
PACKAGES
If your projet uses packages, list them bellow (names separated by commas). Packages that can be added are only packages built in Pyodide. Example: numpy,pandas SETTINGS
Layout
File to execute with the public link
PYXEL DOCUMENTATION
source: github.com/kitao/pyxel
source: github.com/kitao/pyxel
|