Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [role-playing-game]

A role-playing game (RPG and sometimes roleplaying game) is a game in which players assume the roles of characters in a fictional setting. Players take responsibility for acting out these roles within a narrative, either through literal acting or through a process of structured decision-making or character development. Actions taken within many games succeed or fail according to a formal system of rules and guidelines.

-1
votes
0answers
17 views

C++ Monster Roaming Functionality [migrated]

I have a working monster system that follows players around by moving a certain distance towards the players 2D (X, Y) location. However, I now want to make it so these monsters roam around at random ...
2
votes
0answers
71 views

Text Dungeon in Python

I created this game in Python as a learning experience and was hoping for advice to make it better. I also used global and was hoping for good alternatives. ...
1
vote
2answers
130 views

Item class/system for RPG/DND type game

Thanks for the enormous response on my last question! I've returned with another question, hoping for more insight. I'm developing an Item class and system, and I ...
14
votes
5answers
4k views

Player class for RPG/DND type game

I am recreating a game that I used to play on the Nintendo DSI, 'Dragon Quest IX'. I've made a player class, but have run into a code efficiency issue. When the ...
1
vote
1answer
36 views

Simple text-based inventory manipulator

I was bored so I crapped out a simple game that responds to commands and manipulates an inventory. I am interested in other possible ways to handle the inventory, and I think I went overboard with ...
9
votes
4answers
836 views

Simple (Very Easy to Make) RPG Game Simulation in Python and Turtle

The code creates a very simple/easy RPG game, with 2 classes Jedi and Orc. The data is visualized using ...
6
votes
1answer
217 views

First C# RPG game and project as a beginner [closed]

I wanted your opinion on the first RPG game I made in C#. What things can I improve on with the code? Events: ...
8
votes
3answers
372 views

Simple text-based RPG leveling system

I have two issues/questions with figuring out a proper way to write this code for a player leveling system. My First question/issue is that when this code is run it works as intended with a slight ...
5
votes
3answers
123 views

Map generator for a text-based role-playing game

I am semi new to coding and have been following a tutorial on making a "text based RPG" on CodeClub. Here is the full code: ...
5
votes
2answers
317 views

creating procedural generated RPG Dungeon maps

Intro I am building a rogue like RPG, currently it is still a work in progress, but I would like to get an intermediate review of my Procedural map generation code. I've chosen to use the Binary ...
1
vote
0answers
454 views

Text-Based Adventure RPG with PyGame

I'm creating a text-based adventure game using PyGame. I plan on also implementing kind of a Pokemon/Final Fantasy style combat system that works with menus instead of commands, but I haven't started ...
1
vote
0answers
68 views

Python Text RPG Item Management System (with CLI tool for creating JSON files)

I've been working on a full RPG skeleton for a while, and I've just now reached a point on the module dealing with items where I feel comfortable sharing. My intent was to create a structure for the ...
1
vote
1answer
109 views

Combat game - character factory

I decided to improve my OOP design knowledge and learn python at the same time so I started to write a simple program which will be a fight "simulator". For now, there are only 2 character types : ...
7
votes
1answer
122 views

RPG text game WIP

I would appreciate any constructive feedback on my game, I intend to add simple 2d graphics at some point but want to make the "skeleton' of the game first using just text. One question I had is a ...
1
vote
0answers
91 views

Yet Another Python 3 inline RPG

I wrote this little RPG in Python. It still needs a good battle system and real enemies, but since it's my first attempt to create a rather "big" project, I'm happy with the result. Everything is ...
2
votes
1answer
56 views

Mongoose schema to store items from Wynncraft's API

I am making a Schema to store items from Wynncraft's API. See an example assortment of items here: https://api.wynncraft.com/public_api.php?action=itemDB&search=a I have not finished making the ...
1
vote
0answers
39 views

XML world loader and populator + bonus entity printer

This not-so-little Python project I was working on for over 8 hours, is actually the skeleton of my RPG engine. Basically the test script uses the engine module to ...
7
votes
1answer
3k views

Python 3 text adventure game

After posting here before, reading that advice, and doing some research, I re-planned and started over. I appreciate the comments I get here at Code Review. The first thing I did was to create a ...
5
votes
2answers
208 views

Python 3 text-based RPG (to be upgraded to Pygame)

I've been working on a text-based RPG for a while now on-and-off. After a long hiatus, I've come back to the project. My goal as of right now is to port the game from it's current Print-output ...
5
votes
3answers
1k views

Python3 Health System

I made a code for a health system for the game I'm creating. I made it myself and I wanted some criticism on how to make it better. Thanks for viewing. ...
1
vote
2answers
491 views

Basic Battle Simulator GUI RPG Game

I created a game that allows you to battle an enemy until one is defeated. It's my first attempt at writing a game like this in Java and I have been using it as a means to practice OOP and other ...
2
votes
1answer
3k views

Text-based Python RPG game

This is a little text-based Python adventure game I found in one of my old folders. This one has a battle system, a shop, a save option and more. You can fight creatures for gold, and so much more! <...
1
vote
0answers
71 views

Character class (for all characters) for text-based adventure

I've expanded a lot of the character classes since the last time I've posted up a question. It's becoming quite big and convoluted. Any feedback to tone it down or structure it better - especially ...
3
votes
1answer
3k views

Simple RPG game

I decided to make a simple RPG game to practice JavaScript. I don't know a lot about JS best practices or things like that, so I rather have my code criticized now than build more code on top of bad ...
4
votes
2answers
539 views

Stats classes for a text-based adventure

I'm learning Python by creating a text-based adventure. I've put the stat creation and storage classes into separate files (modules?), and common functions (ValueError handling etc.) into another one ...
2
votes
0answers
149 views

Inventory and stats for a game with Tkinter

It's an inventory UI and also displays the player's stats. I have been programming for a year or more and I want to improve my code. ...
5
votes
1answer
170 views

Strategy RPG in Java

I recently got into coding and built a small game in Java to practice and test myself. As I started plugging away at it, it very soon became...not so small. As of this moment, everything works the way ...
10
votes
1answer
1k views

Very simple Python RPG

I am new to Python and am working on a small RPG game project to practice the language and OOP. I honestly don't know what I am doing though, so before I get into developing the battle system I ...
3
votes
1answer
428 views

Character class with name, gender, and inventory list

I am trying to create a class to test my understanding, and it takes an ArrayList as parameter. The decision of choosing an ...
14
votes
4answers
5k views

Fight against Enemies (RPG in Java)

I've written a program that simulates a fight between the player and an enemy to gain experience in the programming of such role-playing games. Above all, it was important to me to have good, object-...
3
votes
1answer
76 views

Translate a problem to OO code in Java, especially an RPG idea

I think that I have big problems with object-oriented analysis of a problem and with writing really good, object-oriented code based on the analysis. When I was trying to write an RPG, it struck me ...
2
votes
2answers
354 views

Calculate the total sum of points that cost to level up a character

I'm learning JavaFX and how to make good code in general. I created a little aplication that let you calculate how many points cost to level up a character stats. But I noticed that I usually repeteat ...
4
votes
1answer
211 views

Python3 Terminal Based 'Combat' System

This is my first leap into Python and I had a lot of fun writing this - it is not complete yet. I'm interested in adding a perk system next, instead of generically increasing stats I'd like the ...
7
votes
2answers
437 views

Item implementation for a role-playing game

I'm working on a cross-platform, implementation-independent Python library to make RPG-style game development easier, or at the very least more accessible. This code is designed to run on Python 3.6 ...
7
votes
2answers
150 views

Revised version of my Python text game

Following all the good notes I've received from my question, I've edited my code quite a lot, so there are probably even more problems than there was before. Anyway, here are some details of the ...
1
vote
1answer
96 views

Java Text_RPG Game

I am looking for help with my code, new to programming/development and looking for advice on how to improve. I’ve been having issues with objects made in do loops, ...
2
votes
3answers
126 views

Object-oriented RPG in Java, determining the data of a generated location

I've been coding for around a month, learning through CodeHS and coding within their sandbox tool. I am currently working on a text-based explorer/RPG game in order to practice Object-Oriented ...
0
votes
1answer
315 views

Object-oriented text-based RPG with randomized enemies and loot in Java

I'm currently in the process of creating a RPG in Java in order to practice and learn the ins and outs of the language. I have been learning to code for around 1 month through Code HS, and coding ...
4
votes
2answers
3k views

RPG Game (Beginner)

I recently picked up a copy of Learn Python 3 The Hard Way, but found that editing and revamping other peoples code was a lot easier for me to learn. I've done a couple so far, but am having a really ...
29
votes
4answers
9k views

Beginner object-oriented text-based RPG

I'm in the process of writing a text-based RPG in Java using object-oriented programming. I'm fairly new to programming and currently learning through CodeHS and coding this within their sandbox, any ...
1
vote
1answer
368 views

Inventory system for RPG

I'm working on a inventory system for a rpg. I want to be able to compare items, restrict access for specific items(i.e. consumables) for specific inventory slots(i.e. leg, head), summarize items ...
1
vote
1answer
191 views

Basic console game, with combatants and inventory items

I've tried to improve upon my last design of a basic console game, practicing OOP and treating more things as objects. So here is my revision. Is this good software design or is it really bad? I know ...
2
votes
2answers
377 views

Console-based game in Java to demonstrate Solid principles and abstractions

I've written a console-based demo while learning about the Solid principles. Along the way, I've become exceedingly paranoid about whether I'm writing good code or not. Here is the code I have so far:...
4
votes
2answers
603 views

Text-based fighting simulation in C++

This is my first attempt at a big project in C++ (made in Visual Studios). It is a culmination of concepts I have been learning, like classes, inheritance, and the STL (only vectors). The basic idea ...
7
votes
3answers
6k views

Very simple console RPG

I'm currently teaching myself C# and am looking for some feedback on my most recent project, creating a very simple c# RPG. I wasn't concerned at all with the balance of the game (it's VERY easy to ...
48
votes
6answers
11k views

ASCII text-based RPG game in C++

I started to make a C++ RPG game just for fun. It does have quests but it isn't just one long adventure that lasts like 30 minutes. I would like to know what I did well on and things on which I can do ...
6
votes
3answers
1k views

Learning C++ with an RPG game

I'm particularly focused on learning object oriented design right now there's some SDL code but it does nothing save generate a window. For now I am working with text until I get a better ...
5
votes
1answer
554 views

Python Character Creator Program

Q1. Can the following code be made more efficient and simple? Q2. How is the general structure of the code? Q3. Would this be better written in def/classes? If yes, what would the code look like? ...
3
votes
1answer
2k views

Text-Based RPG Dungeon Game in Java

I'm trying to follow as many OO concepts as possible. This project is for my github, as a means to enhance my portfolio for possible internships in the future. Question 1: Is there anything that's ...
5
votes
1answer
276 views

In-Progress Unnamed “D&D” Style Game (Python 3.5)

Short (Non-Explanatory) Summary of Code I just started learning Python a month or 2 ago, and this (small) 955 line mess is what I've worked on since summer started in June. I am basing it on Dungeons ...