PYXEL STUDIO
www.pyxelstudio.net/studio/z8gamn
  • app.py
  • res.pyxres
  • 2.pyxres
  • 3.pyxres
  • 5.pyxres
  • 6.pyxres
  • 8.pyxres
  • 9.pyxres
  • awsdd.pyxres
  • ennemy.pyxres
  • fghj.py
  • hay.py
  • jogo.pyxres
  • myImg.pyxres
  • realreal.pyxres
  • sg_beta.pyxres
  • sprites.pyxres
  • test.py
  • vrai.pyxres
app.py
import pyxel pyxel.init(255, 112, title="bataille", fps=90) pyxel.load("2.pyxres") pyxel.load("realreal.pyxres") direction=False def bouge_perso(): global perso_x, perso_y if pyxel.btn(pyxel.KEY_RIGHT): if (perso_x < 255) : perso_x = perso_x + 1 if (perso_x == 241) : perso_x = perso_x - 1 if pyxel.btn(pyxel.KEY_LEFT): if (perso_x > 0) : perso_x = perso_x - 1 if pyxel.btn(pyxel.KEY_DOWN): if (perso_y < 112) : perso_y = perso_y + 1 if (perso_y == 97): perso_y = perso_y - 1 if pyxel.btn(pyxel.KEY_UP): if (perso_y > 54) : perso_y = perso_y - 1 def affiche_perso(): pyxel.blt(perso_x,perso_y,0,0,16,16,16,2) while pyxel.btn(pyxel.KEY_RIGHT): pyxel.blt(perso_x,perso_y,0,0,16,16,16,2) while pyxel.btn(pyxel.KEY_LEFT): pyxel.blt(perso_x,perso_y,0,0,16,-16,16,2) def draw(): pyxel.blt(0,0,1,0,0,255,112) affiche_perso() def update(): affiche_perso() bouge_perso() perso_x = 16 perso_y = 80 pyxel.run(update, draw)
Description
Documentation
PACKAGES
If your project uses packages, list them bellow (names separated by commas). Packages that can be added are only packages built in Pyodide.
Example: numpy,pandas
Layout
Packages
If your project uses packages, list them bellow (names separated by commas). Packages that can be added are only packages built in Pyodide.
Example: numpy,pandas
File to execute with the public link
PYXEL DOCUMENTATION
Official documentation: