python/Newest.py

14 lines
193 B
Python
Raw Normal View History

2024-03-11 20:05:37 -04:00
import pyxel
pyxel.init(160, 120)
def update():
if pyxel.btnp(pyxel.KEY_Q):
pyxel.quit()
def draw():
pyxel.cls(0)
pyxel.rect(10, 10, 20, 20, 11)
pyxel.run(update, draw)