Back to projects
Dec 15, 2024
3 min de lecture

RPG GAME Swing interface

Creation text-based RPG game with a Swing interface
  • Swing Interface :

The game begins by allowing the player to choose their character’s name and select a class—Mage, Warrior, or Archer. Once the player has chosen their class, they can then purchase a starting weapon tailored to their class from a list of options.

login shop

After equipping their weapon, the player is placed on a game map filled with monsters, obstacles, and a shop. The player can navigate the map, encountering monsters or obstacles (such as rocks that block movement).

game

The shop on the map allows the player to purchase new weapons with the gold they’ve accumulated. The player’s gold and inventory are updated in real-time, reflecting any purchases or changes during gameplay.

game

The game continues as the player explores the map and tries to reach the exit. If the player successfully reaches the exit, they win the game.

The movement system ensures that the player cannot pass through obstacles (like rocks) and can only travel to spaces that are not blocked.

Note: The monster fight mechanics have not yet been implemented.

  • Game Textual version:

https://github.com/SMaitriya/RPG-PROJECT

The game starts by allowing the player to choose a name and select a class—Mage, Warrior, or Archer. Each class has unique characteristics and a special attack that consumes either energy, arrows, or mana.

class

After choosing a class, the player can purchase a starting weapon from a list tailored to their chosen class.

shop

Once equipped, the player is placed on a map filled with monsters, obstacles, and a shop. The player can navigate the map, encountering monsters or obstacles. map

When facing a monster, the player can use either a standard attack or their class-specific special attack that cost either mana , energy or arrows. If defeated, it’s game over. Upon victory, the player earns health and gold. The map’s shop allows the player to buy new weapons using accumulated gold. The game ends when the player either reaches the exit or is defeated by a monster.

fight