This project is inspired by the Clear Code YouTube tutorial on creating a Stardew Valley-inspired game using Python and Pygame. It serves as a learning exercise to explore game development concepts, Python programming, and Pygame functionalities.
Current Version: 1.0.2
- Fixed some bugs:
- EXE and the source files are working now.
- Money appears all the time.
- Settings are being added
- Farming mechanics.
- Day and night cycle.
- Weather effects.
- Merchant interactions.
- Tile-based map and sprite animations.
- Saving Mechanism: progress is automatically saved when the player sleeps, ensuring a seamless experience and preventing data loss. Players can resume their game from their last rest point.
The primary goal of this project is to:
- Learn and practice Python programming.
- Understand game development principles.
- Explore Pygame for creating 2D games.
- Understand and explore Tiled for making tile-based games.
- Add seasons to the game.
- Add a visible inventory for the player. (In progress)
- Money will be visible all time.
- More items will be added to the game.
- Enhance plants and soil logic.
- Change saving mechanism to save at any time. (In progress)
- Add settings to the game. (In progress)
- Save the time and the state of the trees in the game.
- To move use arrows.
- To sleep go to the bed and press Enter.
- To use a tool press space key.
- To change a tool press q.
- To change the seed use e key.
- To plant a seed press left ctrl.
- To trade with the merchant press Enter.
- To end trading press Escape key.
- To buy or sell something press space.
- To switch between items in the inventory use a and d keys.
- To select a tool from the inventory press Enter.
- For unknown reason some the sprites might not appear in the screen. As a temporary solution I sorted the sprite groups.
- If long time was spent in the game without sleeping, the display gets weird. (In progress)
- Clone this repository to your local machine.
- Ensure Python is installed (Python version >= 3.6 is required).
You can verify your Python version with:python --version
- Install the required dependencies:
pip install pygame, pytmx
- If you are not in code file write this into the terminal:
cd code - Run the main script:
python main.py
OR simply you can run the EXE file.
- YouTube Tutorial: Creating a Stardew Valley-inspired game in Python by Clear Code.
- GitHub Repository: PyDew Valley
- for code and resources in the game.
- Asset packs:
Contributions to this project are welcome and encouraged! Whether it's improving the code, fixing problems, suggesting new features, or sharing ideas, feel free to get involved.
To contribute:
- Fork the project.
- Make your changes.
- Create a pull request!
Special thanks to Clear Code for providing an excellent tutorial and resources to guide this learning journey.
This project is open-source and available under the MIT License. Feel free to use, modify, and distribute the code, provided proper attribution is given. For more information see the included license.
For any questions, issues, or feedback, don't hesitate to open an issue on GitHub or email me at hmdoonwork71@gmail.com.