Zelda-with-Python ⚔
A Zelda-like game I made with Python following this tutorial https://youtu.be/QU1pPzEGrqw. This is one of the best and longest Python projects I ever made, it's a really great way to learn OOP (Object Oriented Programming) in Python!
How to Download and Run ⬇
- Make sure you have Python installed and Pygame too. If you have Python, go to the Command Line and type
pip install pygame
. - Download this Repository (You can clone it) or head to the
releases page
. - Extract the ZIP file and find the
Main.py
file which is located in theCode
folder. - Run this file and enjoy!
Also, there is a folder with pictures included to help you with the download process.
Goal 🎯
The goal of the game is to kill many monsters and get EXP to upgrade your skills! If your health runs out, the game will close automatically, so DON'T DIE! Goodluck! Also, this code is not a full game, its just a nice project to pass time. It shows how powerful Python really is!
Controls ⌨
Key | Description |
---|---|
Arrow Keys |
Move |
Space Bar |
Attack |
Left Control |
Magic |
Q |
Change Weapon |
E |
Change Magic |
M |
Toggle Upgrade Menu |
How to Use Upgrade Menu 🔼
You can upgrade your skills using the EXP you get from killing monsters. Each skill has a cost. Navigate the menu with the Left and Right buttons, and press Space to upgrade a skill! After you're done, press M again to exit and continue playing.
Magic and Spells ✨
There is two types of spells: Flame and Heal. Flame is a long-range attack. And Heal will heal you... Obviously. Casting a spell will decrease your energy. Energy will recharge over time.
UI 🖥
Red Bar: Health
Blue Bar: Energy (Will decrease everytime you use magic and recharges after a while)
Two Boxes on the Bottom Left: Weapon and Magic Selection
Bottom Right Box: EXP
Python and Pygame 🐍
Python: https://www.python.org/downloads/
Pygame (Download using Command Prompt or Terminal): https://pypi.org/project/pygame/