This is a clone of Dragon Warrior for the Nintendo Entertainment System, done in Python.
Python 3.10 (or higher), PyGame, PyGame Menu
Run it from the command line using the interpreter. If you are in the DragonWarrior directory, type: python src/game.py
If you're using Visual Studio Code:
-
Open the project folder in VS Code (File > Open Folder > select the Dragon_Warrior directory)
-
Install dependencies:
- Open the integrated terminal (View > Terminal or Ctrl+`)
- Create a virtual environment (optional but recommended):
python -m venv venv # On Windows: venv\Scripts\activate # On macOS/Linux: source venv/bin/activate
- Install required packages:
pip install pygame pygame-menu
-
Run the game:
- Option 1 - Using the terminal: In the VS Code terminal, run:
python src/game.py
- Option 2 - Using Run/Debug:
- Press F5 or click Run > Start Debugging
- If prompted, select "Python File"
- Navigate to src/game.py and run it
- Option 1 - Using the terminal: In the VS Code terminal, run:
-
Run tests (optional):
pytest
WASD / ↑←↓→ : Move
K: Open Command Menu
J: Close Command Menu
Enter: Select menu option
I: Pause
h264low.mp4
For quick demonstration purposes, you can run this in the browser on repl.it, but ideally this should be run normally through the command line as delineated above, since performance suffers greatly in the browser. Additionally, the version of the code currently on repl.it does not have the latest code improvements that this repository does.
