14 lines
193 B
Python
14 lines
193 B
Python
|
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)
|