Coder Social home page Coder Social logo

pyrpg_mini's Introduction

PyRPG_Mini

A text RPG written in Python 3 with many technical RPG features you'd want.

Requirements / Dependencies

  • Python3
  • sqlite3
  • textwrap
  • time
  • pickle
  • os
  • datetime
  • difflib
  • random
  • Read/write access to the project folder for database creation, reading, and saved games.

Quick Preview

Game Features

  • OOP Python RPG with simple class names, convenient calls like ourhero.heal() and ourhero.isalive()
  • 15 levels of stats, weapons, items, and monsters
  • 3 hero classes, each with unique gear and base stats, which makes them all a unique experience.
  • Save / Load system for saving your character's progress
  • A customizable set of CSVs for modifying the game , and creating your own turn-based RPG.
  • A database population module which implements new changes and makes a new database. (Schema changes coming soon)
  • 5 buyable, findable, usable items with added status effects (damage, healing, regen, dodge, weapon repair)

What you will experience

  • Randomized battle system ensuring a fun grinding and leveling experience. Later levels require more effort, gear, items.
  • 75 enemies with different HP, XP, Gold, Atk, Def
  • A miserable old traveler who gives unsolicited life advice
  • A Blacksmith who sells and repairs gear
  • Riddles which reward gold and EXP
  • A Store which sells items

Check back soon for new features!

How to use

  1. For your convenience, you can skip any prompt and default [n]ew game, [w]arrior, [1] easy, [a]dventure, [a]ttack by simply pressing [enter].

  2. Run __init__.py. If the database was deleted, it will reload the database from the CSVs in ./csv/ folder.

  3. Press [ENTER] to play regular game. Enter [1] to go into debugging mode.

  4. Select [n]ew game

  5. Choose your class: [w]arrior [m]age [h]unter

  6. Choose difficulty: [1]easy [2]med [3]hard

  7. Enter your character's name

  8. [a]dventure or [c]amp

  9. [a]dventure will be a random choice of a battle, item, riddle, traveler.

  10. [c]amp will regerate your health, and offer features like: [a]dventure, [i]tem, [h]ero, [p]eddler, [b]lacksmith, [l]oad, [s]ave, [q]uit

  11. Battle will give you several battle commands: [a]tk, [d]ef, [r]un, [i]tem, [c]oinflip to [h]eal (100g)

  12. Upon finishing a battle, you are rewarded with gold and exp.

  13. Have fun!

Saving / loading

If loading game run game.py, and select [l]oad when prompted.

If saving, go to camp, select [s]ave, and name the save file. (The script needs permissions to write to the directory!)

If you liked it:

Contribute, so I can dedicate more time to projects like this.

About the Author

https://linkedin.com/in/colingburke

pyrpg_mini's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyrpg_mini's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.