User Tools

Site Tools


rpd:json_configs

JSON Configuration Files

JSON configuration files in Remixed Dungeon define many game elements and mechanics.

Overview

JSON configuration files are used throughout Remixed Dungeon to define various game elements without requiring code changes. They provide flexibility for modding and allow for easier balance adjustments.

Types of Configuration Files

  • Level Objects - Found in levelObjects/ directory, define interactive objects like chests, statues, barricades, etc.
  • Mob Configurations - Found in mobsDesc/ directory, define mob stats and behaviors
  • Item Configurations - Define item properties, effects, and metadata
  • Sprite Descriptions - Found in spritesDesc/ directory, define sprite animations and effects
  • Hero Initializations - Found in hero/initHeroes.json, define starting equipment and stats for classes
  • Bestiary - Found in levelsDesc/Bestiary.json, define monster spawn rates and level placement

File Locations

  • RemixedDungeon/src/main/assets/levelObjects/ - Interactive objects
  • RemixedDungeon/src/main/assets/mobsDesc/ - Mob configurations
  • RemixedDungeon/src/main/assets/spritesDesc/ - Sprite configurations
  • RemixedDungeon/src/main/assets/levelsDesc/ - Level configurations
  • RemixedDungeon/src/main/assets/hero/initHeroes.json - Hero starting properties

Customization

JSON files can be modified in mod packages to change game behavior without changing Java code.

Benefits

  • Easy to modify without recompiling
  • Clear structure for game parameters
  • Support for modding
  • Separation of data from code
rpd/json_configs.txt · Last modified: by 127.0.0.1