戻る
■機能の確認
■作成 hello/app.py
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()
■実行 >python app.py ■リソースの作成 >pyxeleditor ■単体実行ファイルの作成 >pyxelpackager app.py 15秒ほど待つと dist/app.exe が作成され、単体で実行できた