11. Adding or Modifying Content
11.1 Adding a Dungeon
- Create a new JSON file inside the
dungeontypes
directory. - Follow an existing file and populate fields such as
name
,description
, andlevel
. - Update the loading routine in
main.js
so it reads the new file. - Reload the browser and confirm that the dungeon appears in the list.
11.2 Tuning Difficulty
Difficulty affects damage multipliers and enemy strength. Adjust the relevant dungeon data and test the result in game to ensure it feels right.
11.3 Customising the Look
- Edit colours or fonts in
style.css
. - Add background images via the
background-image
property. - Change button shapes by tweaking
border-radius
andbox-shadow
.
To modify exploration badges or domain crystal behaviour, consult Section 19.5: Domain Effects & Badge Controls for the relevant hooks and definitions.
Iterate gradually: Large changes make debugging harder. Adjust one element at a time, save, and check
the result in the browser.
11.4 Embrace Version Control
Use Git or another version-control system when adding content. Record clear commit messages so you can revert to a previous state whenever necessary.