Skip to main content

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.

Filter by
Sorted by
Tagged with
3 votes
0 answers
94 views

Text-Based Multiplayer RPG Engine using Flask & React

As a final project for a software engineering bootcamp, I decided to make a text-based multiplayer RPG game engine. Using Python, Flask, & Flask-SocketIO for the backend and React & TypeScript ...
Thomas Makurat's user avatar
1 vote
1 answer
202 views

ASCII game in console [closed]

Overall, I want to make a game in console, something Pokemon-like but with typical rpg scenery - swords, magic and all that. I want to make player able to move around the map, find dungeons, fight ...
supermaciu's user avatar
5 votes
1 answer
428 views

Text RPG in Python

I'm a beginner in python and my code looks a little cluttered and a lot of lines are being duplicated, so I was wondering if I could get some suggestions on how to declutter and improve? ...
vCian's user avatar
  • 59
4 votes
1 answer
248 views

Command design pattern for RPG prototype

I'm writing an assistant for the tabletop RPG Pathfinder in Java. I already have a few building blocks and decided to make a small side-project to play around the Command pattern. I know that there ...
Anab's user avatar
  • 385
10 votes
3 answers
2k views

Text-based role-playing game

I created a text-based RPG. game.py ...
Niklaus's user avatar
  • 103
5 votes
4 answers
253 views

Create a little adventure world

I have just recently picked up coding and am trying to improve my coding. I've written this bit of code to create a little adventure world. I haven't completed the code, everything runs how I want it ...
NewWalker's user avatar
1 vote
2 answers
169 views

DDD: interaction between 2 objects in a RPG-game

Context PlayerHouse is a place where the Player (the game character) can refill its health, store its inventory, etc. like in a RPG-game. The user can upgrade it for example to refill player's health ...
user avatar
6 votes
2 answers
829 views

RPG item, character, and display

Question description I am currently developing an RPG to gain programming experience. An RPG consists of many individual components such as the combat system, quest system and the item system. I ...
Dexter Thorn's user avatar
  • 2,174
4 votes
3 answers
722 views

A dice roller in C

I am learning C and, for learning purposes, I implemented a dice roller. It uses arc4random(3) for random number generation, as I couldn't find something better. It works both interactively, if no ...
phillbush's user avatar
  • 864
4 votes
1 answer
427 views

Dungeon and Dragons Text Based Game

I've created a text based game based on D&D as part of exercise No.45 Learning Python the Hard Way v3.0 I've implemented a few features from the game: Character Selection, Fight Scene, Rolling. ...
leban ali's user avatar
18 votes
4 answers
3k views

Hero battle game

This is my first attempt at OOP/classes: a game where you will select a character and use attacks and abilities to defeat the enemy character. I have a few specific questions: I was told that having ...
Claude Fried's user avatar
4 votes
1 answer
65 views

Function to determine the effect of a lightning bolt on a game character using "abilities" [closed]

I'm writing my first game and would love some advice on how to get away from all this hardcoding I'm using... Each Character has "abilities" (all individual functions) but I can't seem to figure out ...
Claude Fried's user avatar
2 votes
2 answers
142 views

RPG Map Initialization

I am working on an RPG in Java and I am using a tile-based map. The characters will not be building, so I will not need to store the maps outside of the game, but I feel as if there is a more ...
WeaponGod243's user avatar
5 votes
1 answer
4k views

Text-based fighting game in Python 3.0

I have began to practice Python after a couple of years and for my first Project, i decided to make a fighting/rpg-like game with different characters. So far, I am only familiar with loops and ...
Telekey's user avatar
  • 53
8 votes
4 answers
6k views

Fantasy game inventory — Ch. 5 Automate the Boring Stuff

Here is a practice exercise — Fantasy Game Inventory \$-\$ You are creating a fantasy video game. The data structure to model the player’s inventory will be a dictionary where the keys are string ...
Justin's user avatar
  • 2,485
5 votes
3 answers
131 views

Field class as a basis for a role playing game

My programs that I have written so far included only a few lines of source code. When I tried to write larger programs, it usually failed because I'm not a master of software engineering. This time, I ...
Dexter Thorn's user avatar
  • 2,174
5 votes
1 answer
617 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. ...
GameDungeon's user avatar
2 votes
2 answers
3k 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 ...
Linny's user avatar
  • 10.4k
15 votes
5 answers
9k 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 ...
Linny's user avatar
  • 10.4k
1 vote
1 answer
72 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 ...
Shipof123's user avatar
  • 353
9 votes
4 answers
3k 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 ...
Redsbefall's user avatar
  • 1,142
6 votes
1 answer
2k 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: ...
Woahthere's user avatar
9 votes
3 answers
4k 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 ...
Brian Craycraft's user avatar
5 votes
3 answers
3k 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: ...
Axel Sorensen's user avatar
5 votes
2 answers
899 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 ...
Ludisposed's user avatar
  • 11.6k
2 votes
0 answers
3k 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 ...
Schrodinger'sStat's user avatar
1 vote
1 answer
163 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 : ...
Norbert Braun's user avatar
7 votes
1 answer
322 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 ...
Zacc Weldon's user avatar
4 votes
1 answer
117 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 ...
user avatar
2 votes
0 answers
53 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 ...
wallabra's user avatar
  • 789
10 votes
1 answer
15k 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 ...
user avatar
5 votes
2 answers
708 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 ...
Schrodinger'sStat's user avatar
4 votes
3 answers
3k 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. ...
Benjamin Schmid's user avatar
1 vote
2 answers
2k 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 ...
Hannah Mishow's user avatar
2 votes
1 answer
19k 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! <...
Colea's user avatar
  • 349
4 votes
1 answer
8k 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 ...
aMJay's user avatar
  • 177
4 votes
2 answers
3k 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 ...
Broken Rose's user avatar
2 votes
0 answers
335 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. ...
Absolute's user avatar
5 votes
1 answer
380 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 ...
Guy Dunn Jr's user avatar
9 votes
1 answer
3k 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 ...
Guest43242's user avatar
3 votes
1 answer
1k 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 ...
ManuAlvarado22's user avatar
14 votes
4 answers
8k 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-...
Dexter Thorn's user avatar
  • 2,174
3 votes
1 answer
95 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 ...
Dexter Thorn's user avatar
  • 2,174
2 votes
2 answers
829 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 ...
Green_Sam's user avatar
4 votes
1 answer
1k 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 ...
Prrz's user avatar
  • 41
9 votes
2 answers
1k 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 ...
Diapolo10's user avatar
  • 193
7 votes
2 answers
871 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 ...
Axel1212's user avatar
  • 175
1 vote
1 answer
204 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, ...
David Jorgensen's user avatar
2 votes
3 answers
292 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 ...
WatCow's user avatar
  • 433
0 votes
1 answer
1k 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 ...
WatCow's user avatar
  • 433