Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
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
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
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
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
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
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
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
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
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
31 votes
4 answers
17k 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 ...
WatCow's user avatar
  • 433
1 vote
1 answer
491 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 ...
Morg17960's user avatar
2 votes
2 answers
1k 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:...
Morg17960's user avatar
5 votes
2 answers
10k 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 ...
JKolb's user avatar
  • 53
22 votes
6 answers
54k views

Simple text-based RPG in Java

I was looking for suggestions on how to improve the general flow of this code, as well as minimizing if / switch conditionals. ...
Johnsonite's user avatar
0 votes
1 answer
440 views

RPG for a school project

I'm trying to make an RPG game and I would like to make the code a lot shorter. This is only the first floor but there will be 5 floors. To advance to the next level, you have to defeat the boss of ...
Aj Fernandez's user avatar
6 votes
1 answer
3k views

Generating RPG Characters (Objects)

I am a beginner Java programmer. I have just finished up an assignment and would appreciate some advice and/or constructive criticism on my program. I am trying to ensure I do not advance my knowledge ...
jzbakos's user avatar
  • 395
5 votes
1 answer
1k views

Initializing characters in a visual novel game

I am making a visual novel game and I was wondering is there a better way of setting character attributes and initializing than the way that I have done down below. As you can see I did an abstract ...
Jake Snyder's user avatar
3 votes
1 answer
91 views

Parsing speech out of text

I'm working on an experiment to parse speech out of an emote in a text roleplaying game (MUD) so that if you can't hear it correctly, or if it's in a different language, you won't understand it. This ...
BrainFRZ's user avatar
  • 841
3 votes
1 answer
278 views

Monster Buff/Debuff System Design

Below are a collection of classes that compose my buff/debuff system. The largest flaw in my design that I couldn't overcome is the base class Effect having an <...
Nick Savage's user avatar
8 votes
2 answers
245 views

Checking DnD Traits in an enum

Overall, I'm working on a simulator for a modified DnD 3.5 system. Right now, I'm trying to write an enum class that handles the Classes/Professions, and am ...
BrainFRZ's user avatar
  • 841
3 votes
1 answer
355 views

JSON extraction

Given the code below, is there a better way to essentially create different native objects without changing the native constructor or the nativeList.json file? The only option I can see is adding a <...
NSaid's user avatar
  • 133
15 votes
6 answers
5k views

Printing RPG game character properties

I have written this code representing a class hierarchy of character classes, and a world class to print their properties. Is anything unclear about this code? Am ...
Jacob's user avatar
  • 371
13 votes
2 answers
22k views

Text-based RPG game

I started making a text-based RPG game and before I spend a lot of time on it, I wanted to know if there is a better way to make it. Currently I'm using switches to flow through the game, I also know ...
Arman's user avatar
  • 233
15 votes
3 answers
42k views

Text-based RPG in Java

I'm writing a simple text-based RPG in Java. I think it's a good exercise to practice OO and think about how objects should best interact. I'd be interested in hearing any thoughts! The ...
padawan's user avatar
  • 605