🎮 My first video game was developed in Python using the Pyxel package. In this game, a character must navigate through a level, avoiding enemies and obstacles. Although the game has several errors, it served as a valuable learning experience for Python and provided an introduction to game development.
To run the game developed using Pyxel, follow these steps:
- Install Python: Make sure Python (version 3.6 or higher) is installed on your system.
- Install Pyxel: Install the Pyxel package via pip if you haven't already. Open your terminal or command prompt and run:
pip install pyxel
- Download the Source Code: Clone or download the repository containing the game's source code from GitHub.
- Navigate to the Project Directory: Open your terminal or command prompt and change to the directory where the source code is located.
- Run the Main Script: Execute the main script to start the game. Assuming the main script is named mario.py, run: python mario.py
- Using the Pyxel Environment: If the game requires Pyxel’s built-in environment, ensure all dependencies and assets are correctly set up. The game window should open, and you can start playing.
- The game is a basic implementation and may contain bugs or unfinished features.