← Back to Java Projects

JAVA GAME PROJECT

RPG Battle Game

A turn-based battle simulator based on my Java RPG project. Choose a character class, manage your health and fight an AI-controlled opponent.

RPGGame.java

CHARACTER SELECT

Choose your class

Each class has different health, attack and defensive strengths.

⚔️

Warrior

High health and strong physical attacks.

HP 120 ATK 18 DEF 8
🔮

Mage

Lower health but powerful burst damage.

HP 85 ATK 25 DEF 4
🗡️

Rogue

Fast attacks with high critical-hit chance.

HP 100 ATK 20 CRIT 30%
⚔️
Warrior
PLAYER
HP 120 / 120
VS
👹
Shadow Beast
AI OPPONENT
HP 110 / 110

COMBAT LOG

Victory

You defeated the enemy.

PROGRAMMING CONCEPTS

Game logic

The project demonstrates object-oriented thinking, random number generation, conditional logic, methods, combat calculations and game state.

INTERACTIVE VERSION

Turn-based combat

This browser version recreates the behavior of the original Java application so visitors can interact with the battle system directly.