Skip to main content

All Questions

1 vote
2 answers
171 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
837 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,164
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 ...
Ben A's user avatar
  • 10.7k
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,164
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,164
2 votes
3 answers
294 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
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
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
281 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
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