Python Pandemonium

A place to read and write about all things Python. If you want to become a writer for this…

Follow publication

Member-only story

Python RPG Game (Part 1)

David Torres
Python Pandemonium
Published in
3 min readFeb 22, 2021

--

Photo by Cláudio Luiz Castro on Unsplash

I spent 15 days creating this RPG Game in Python, if you want to skip the tutorial and go straight to the code and read it, here’s the project in GitHub!

By the end of this series of articles, you’ll be able to create something like the GIF you see down below, where you’ll have a text-based RPG which I’ll be covering in a set of articles.

If you have any improvements on the code or any suggestions, please let me know. Have fun and enjoy the article!

In the following article I’ll be covering the:

  • Hero Class (with its Getters and Setters)
  • Enemy Class (with its Getters and Setters)

Step 1: Hero Class

Hero Class:

There are 7 different attributes for the Hero class, which would be the hero:

  • Health = Hhealth
  • Attack = Hattack
  • Luck = Hluck
  • Ranged = Hranged

--

--

Python Pandemonium
Python Pandemonium

Published in Python Pandemonium

A place to read and write about all things Python. If you want to become a writer for this publication then let me know.

David Torres
David Torres

Written by David Torres

Full Stack Developer | MSc Candidate in Artificial Intelligence | Mexican. LinkedIn: https://www.linkedin.com/in/david-tc/

Responses (1)

Write a response