Compare commits

...
Author SHA1 Message Date
goose bbf89a9f36 fix: prove title timing and compact journal readability 2026-10-09 13:17:25 -04:00
goose bc67e5ed88 fix: refine character HUD and title presentation 2026-10-09 12:44:09 -04:00
goose c410f830e3 test: define final character HUD contracts 2026-10-09 12:21:45 -04:00
goose 78f4744c3f fix: align loot feedback with pickup outcomes 2026-10-09 11:25:11 -04:00
goose 8816c31301 fix: preserve refused loot details in HUD 2026-10-09 10:49:32 -04:00
goose 0d8ba84cf2 fix: distinguish dropped and collected enemy loot 2026-10-09 10:34:12 -04:00
goose 0090753675 fix: describe enemy loot rewards in HUD 2026-10-09 10:25:24 -04:00
goose 4cc2bd4272 fix: finish French HUD event presentation 2026-10-09 09:53:41 -04:00
goose dbc53aab71 fix: localize active HUD journal events 2026-10-09 09:31:21 -04:00
goose f1b58935bf fix: apply final dark fantasy HUD polish 2026-10-09 08:38:28 -04:00
goose 59d0b65eb6 test: fix HUD polish red contract syntax 2026-10-09 07:53:52 -04:00
goose ca90d790d9 test: capture final HUD polish feedback 2026-10-09 07:50:49 -04:00
goose 39fd70da88 chore: remove HUD debugging reports 2026-10-09 01:28:46 -04:00
goose 65d35b5102 fix: frame edge camera states inside play area 2026-10-09 01:20:29 -04:00
goose f8d4d932c3 fix: restore readable character hierarchy 2026-10-09 00:59:24 -04:00
goose 6e8c4aa20a test: require readable mockup hierarchy 2026-10-09 00:45:36 -04:00
goose 7c43fb2ecb fix: rebuild HUD composition around real play viewport 2026-10-09 00:39:08 -04:00
goose a42002c834 test: expose broken HUD composition 2026-10-09 00:16:07 -04:00
goose c235dab643 chore: untrack SDD validation report 2026-10-08 23:27:34 -04:00
goose f9934530e1 chore: relocate responsive validation report 2026-10-08 23:14:46 -04:00
goose c779c796ec fix: harden responsive HUD validation 2026-10-08 23:13:51 -04:00
goose f6e93159c0 chore: keep Task 5 report in SDD workspace 2026-10-08 22:35:23 -04:00
goose 23acd47495 test: add reproducible 720p visual capture 2026-10-08 22:33:52 -04:00
goose cf102e1e95 chore: relocate Task 5 validation report 2026-10-08 21:46:36 -04:00
goose 122fdac97c fix: complete Task 5 visual HUD validation 2026-10-08 21:45:46 -04:00
goose 9921e02de3 feat: integrate minimap into dark fantasy HUD rail 2026-10-08 20:47:14 -04:00
goose 27edac9a2f chore: remove unrelated report change 2026-10-08 20:31:38 -04:00
goose 80ecc836c2 test: align HUD location contract with authored rooms 2026-10-08 20:30:36 -04:00
goose e6025317e1 feat: rebuild dark fantasy game HUD 2026-10-08 20:20:26 -04:00
goose 59e922ce29 test: tighten HUD layout contracts 2026-10-08 19:46:53 -04:00
goose 885781cf9c test: define dark fantasy HUD layout 2026-10-08 19:32:32 -04:00
goose a55f0fc452 feat: add dark fantasy UI kit 2026-10-08 19:13:24 -04:00
goose ebc35e8277 docs: plan dark fantasy interface refactor 2026-10-08 19:08:42 -04:00
goose eca098b4b9 feat: complete playtest parity improvements 2026-10-08 19:06:19 -04:00
goose cce25a1908 Merge pull request 'PR-4: Revalidate parity gate for release candidate' (#55) from slice/pr4-parity-rc into main 2026-10-05 05:18:14 -04:00
goose 744ba873bc chore: relocate PR-4 report 2026-10-05 05:05:42 -04:00
goose 4091501396 chore: finalize parity re-gate release evidence 2026-10-05 05:03:32 -04:00
goose be891712c1 Merge pull request 'PR-3: Add protected tourist encounters' (#54) from slice/pr3-tourists into main 2026-10-04 12:05:48 -04:00
goose 5ef08a6e33 feat: add protected tourist encounters 2026-10-04 11:48:20 -04:00
goose e8082b3ca6 Merge pull request 'PR-2: Add safe rooms and repeatable Bobka rations' (#53) from slice/pr2-safe-rooms-bobka into main 2026-10-04 11:24:20 -04:00
goose 9bd003102c feat: add safe rooms and repeatable Bobka rations 2026-10-04 11:08:19 -04:00
goose 34eb08f02a Merge pull request 'PR-1: Add final floor victory and deep generation scale' (#52) from slice/pr1-endgame-deep-floor into main 2026-10-04 10:38:16 -04:00
goose f65e9026c1 feat: add final floor victory and deep generation scale 2026-10-04 10:32:11 -04:00
goose 6ded0f76ce Merge remote-tracking branch 'origin/main' into integrate/parity-plan 2026-10-04 10:05:55 -04:00
goose 337c404912 docs: add parity recovery release plan 2026-10-04 10:05:00 -04:00
goose cc80c3e369 Merge pull request 'G5: Finalize desktop exports and player docs' (#51) from slice/g5-exports-docs into main 2026-10-04 01:49:59 -04:00
goose 1419b24870 docs: finalize G5 export handoff 2026-10-04 01:39:05 -04:00
goose fb61b4fe91 Merge pull request 'G4: Complete graphical feedback pass' (#50) from slice/g4-presentation-polish into main 2026-10-04 01:12:17 -04:00
goose bd64624309 chore: archive G4 report outside product tree 2026-10-04 01:09:30 -04:00
goose e8ec8415bf fix: finalize presentation event immutability 2026-10-04 01:08:53 -04:00
goose 782fcabc08 fix: harden presentation event immutability 2026-10-04 00:56:22 -04:00
goose 0a9b14be26 fix: make presentation events immutable 2026-10-04 00:40:52 -04:00
goose ad10e99de9 feat: complete graphical feedback pass 2026-10-04 00:17:33 -04:00
goose 408dc82f4e Merge pull request 'G3: Add safe optional audio playback' (#49) from slice/g3-safe-audio into main 2026-10-04 00:02:02 -04:00
goose efcaef181b feat: add safe optional audio playback 2026-10-03 23:55:34 -04:00
goose d3c417fb91 Merge pull request 'G2: Add UI minimap and accessibility controls' (#48) from slice/g2-ui-minimap into main 2026-10-03 23:37:39 -04:00
goose 9f43e187d3 feat: add UI minimap and accessibility controls 2026-10-03 23:23:36 -04:00
goose 6697c05b56 Merge pull request 'G1: Add versioned saves and ASCII migration' (#47) from slice/g1-saves into main 2026-10-03 22:55:25 -04:00
goose cd84273565 feat: add versioned saves and ASCII migration 2026-10-03 22:42:00 -04:00
goose 2d7b24167a Merge pull request 'F6: Port death and resurrection' (#46) from slice/f6-death into main 2026-10-03 22:07:43 -04:00
goose 8b479eaf08 feat: port death and resurrection 2026-10-03 21:52:08 -04:00
goose 462bb97a5b Merge pull request 'F5: Add faction war and moderation' (#45) from slice/f5-factions into main 2026-10-03 21:31:43 -04:00
goose 5ee033a3ab feat: add faction war and moderation 2026-10-03 21:20:29 -04:00
goose 4bb818e5e0 Merge pull request 'F4: Port audience sponsors and recap' (#44) from slice/f4-audience into main 2026-10-03 20:55:28 -04:00
goose 19811194ec feat: port audience sponsors and recap 2026-10-03 20:41:34 -04:00
goose 196dcab4f4 Merge pull request 'F3: Add achievements titles and rewards' (#43) from slice/f3-achievements into main 2026-10-03 20:27:47 -04:00
goose c6d69ee3ad feat: add achievements titles and rewards 2026-10-03 20:23:25 -04:00
goose 9c64d623f9 Merge pull request 'F2: Port classes races perks and evolutions' (#42) from slice/f2-classes-perks into main 2026-10-03 19:59:02 -04:00
goose 47907f2f68 feat: port classes races perks and evolutions 2026-10-03 19:45:52 -04:00
goose 337588e11c Merge pull request 'F1: Add XP levels and progression points' (#41) from slice/f1-progression into main 2026-10-03 19:21:37 -04:00
343 changed files with 13579 additions and 1389 deletions
+1
View File
@@ -1,5 +1,6 @@
.godot/ .godot/
*.import *.import
artifacts/ artifacts/
build/
.claude/ .claude/
+25 -104
View File
@@ -1,124 +1,45 @@
# Dungeon Crawler World — S4 Audio and visual verification # Dungeon Crawler World
## Prerequisites Dungeon Crawler World is a desktop Godot dungeon-crawler prototype with deterministic procedural floors, a graphical HUD/minimap, versioned five-slot saves, imported ASCII content, optional safe audio, and Linux/Windows export presets.
Godot 4.2+ is required (verified with Godot 4.5). GUT **9.5.0** is vendored and pinned at `addons/gut`. Linux visual verification needs either an active display or `xvfb-run`; the verification script uses Xvfb automatically when `DISPLAY` is unset. ## Play or build
## Run on Linux - **Players:** read [Playing](docs/PLAYING.md) for installation, controls, saves, accessibility, audio, and limitations.
- **Content authors:** read [Content and modding](docs/CONTENT_AND_MODDING.md) for supported JSON data, asset credits/licenses, safe audio boundaries, and packaging a source modification.
Godot **4.5** is the verified version (Godot 4.2+ minimum). Run the source project with:
```bash ```bash
"${GODOT_BIN:-$(command -v godot4 || command -v godot)}" --path . "${GODOT_BIN:-$(command -v godot4 || command -v godot)}" --path .
``` ```
Use WASD / arrow keys (and QZC diagonals); **keypad 9** moves north-east. The HUD help band explicitly shows `Déplacer : ZQSD / Flèches (nord-est : pavé num. 9)` and `Interagir : Espace ou E`; both **Space** and **E** are bound only to `interact`. All inputs pass through `ActionRouter`: movement and interaction are implemented, while the registered future commands emit a journaled `action_unavailable` event rather than being ignored. The rebindable command vocabulary and defaults are: **.** wait, **F** attack, **R** ranged, **X** cast, **T** talk, **H** rest, **I** inventory, **P** character, **J** quests, **U** audience, **Y** recap, **M** map, and **O** options. `Game.submit_test_action(Vector2i)` and `Game.submit_test_interact()` are deterministic public E2E seams and follow the same action router as keyboard input. Interacting with an adjacent closed door opens it into floor space, logs the action, refreshes FOV, and gives living enemies exactly one normal response. A closed chest is likewise non-walkable; interacting with it replaces it with floor, logs `chest_opened` as `You open the chest.`, refreshes FOV, and gives at most one normal enemy response. It deliberately grants no loot or inventory item. Interacting with no target only logs `nothing_to_interact` and does not consume an enemy turn. Interacting while standing on stairs logs `stairs_used`, sets the demonstration exit state, and gives living enemies exactly one normal response. Install export templates matching the exact Godot version, then build desktop artifacts:
## Display, grid, and camera
The project reference viewport is **1280×720**, with canvas-item stretching and a resizable window. Dungeon coordinates remain in the `cell * 32` domain: `MapRenderer.get_cell_rect(cell)` returns the exact 32×32 world rectangle for a cell, and `Game.get_actor_cell_rect(actor_id)` exposes the effective actor image rectangle. Actor sprites are top-left anchored so their complete 32×32 image is contained in their cell before and after movement.
`Camera2D` follows the player after each valid action, uses `zoom = (2, 2)`, and is bounded to the map's world rectangle. Dungeon/domain coordinates and `TILE_SIZE=32` are unchanged. The public HUD nodes stay below `HUD` (`CanvasLayer`, layer 1), so they remain viewport-anchored rather than moving with the camera. Compact corner and bottom panels keep the central play area clear.
### S5.1 verification note
The S5.1 contract—1280×720 reference viewport, actor rectangle, and camera behavior—is covered by the dedicated tests and visual capture check. This note records coverage only; it does not assert an execution result.
## Optional ASCII audio layout
Audio is optional presentation. Its absence, unknown requests, missing folders, bad files, and unsupported codecs never affect a turn or game startup. No audio files ship with this repository.
`AudioLibrary` first searches the directory named by `DCW_AUDIO_HOME`; when it is unset, it searches `~/.local/share/dcwascii`. Place tracks in this exact layout:
```text
<root>/
├── audio/
│ ├── exploration/
│ ├── combat/
│ └── danger/
└── sfx/
├── attack_given/
├── attack_received/
├── menu_select/
├── menu_cancel/
├── item_use/
└── death/
```
Admitted file extensions are `.mp3`, `.ogg`, `.oga`, `.wav`, `.flac`, `.m4a`, and `.opus`. `AudioLibrary` discovers the first admitted regular file in each requested directory and exposes that path only as diagnostics (`get_last_ambience_path` / `get_last_sfx_path`). **This prototype never loads or plays external audio:** it does not invoke `AudioStream*.load_from_file`, `ResourceLoader`, or another Godot loader on files below these roots, regardless of extension or apparent validity. A nominal or truncated `.wav` is therefore equally non-playable (`has_playable_ambience()` / `has_playable_sfx()` return `false`) and cannot affect gameplay. Directory discovery is deliberately best-effort and error-free; it is not a promise that the discovered file can be read or played. The game still selects `exploration` at startup, changes to `combat` for a combat result, and dispatches audio requests for player attacks, enemy attacks, and death without blocking those actions.
Example:
```bash ```bash
DCW_AUDIO_HOME="$HOME/.local/share/dcwascii" "${GODOT_BIN:-godot4}" --path . ./scripts/build-linux.sh
./scripts/build-windows.sh
``` ```
## Tests and visual check The Linux script creates `build/linux/DungeonCrawlerWorld.x86_64` and smoke-launches it under X11 (or Xvfb). The Windows script creates `build/windows/DungeonCrawlerWorld.exe` and a distribution manifest. It validates files only and deliberately makes no Windows-runtime claim from Linux. Both scripts explicitly stop before export when their matching templates are absent. Build output is reproducible and ignored by Git.
## Verification
```bash ```bash
GODOT_BIN=/snap/bin/godot4 ./scripts/test-unit.sh ./tests/scripts/test_export_scripts.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/test-integration.sh ./tests/scripts/test_parity_recovery_gate.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/test-e2e.sh ./tests/scripts/test_parity_gauntlet.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/run-visual-check.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/verify.sh GODOT_BIN=/snap/bin/godot4 ./scripts/verify.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/run-parity-gauntlet.sh
``` ```
Each runner first executes `godot --headless --path . --import`. This generates the ignored `.godot` cache required for global script classes and imported assets, so the commands are reproducible from a newly checked-out worktree. Import failures stop the runner and retain Godot's error output. The full verifier runs unit, integration, E2E, and visual-capture checks, then exits nonzero when the strict release parity gate finds a blocked, unowned, invalid, or unjustified contract. `run-parity-gauntlet.sh` additionally runs save/load plus generated-floor seed suites. See the [release checklist](docs/RELEASE_CHECKLIST.md), [release evidence](docs/release/RC-2026-10-04-evidence.md), and [ASCII parity matrix](docs/parity/ASCII_TEST_MATRIX.md) before tagging. The visual check needs an active display or `xvfb-run`; it distinctly reports unavailable visual infrastructure rather than a false pass. Test runners first import the project headlessly so a fresh checkout receives its required Godot cache.
## ASCII content catalog ## Project notes
`data/ascii/` is a byte-for-byte UTF-8 copy of the authored JSON hierarchy from DCWASCII, including dialogue, event, and quest files. `ContentCatalog.load_from_directory(path)` exposes `StringName` getters for items, enemies, spells, achievements, loot tables, NPCs, and quests. It preserves source definitions without translating gameplay data; unsupported content families remain copied for later slices. Missing required `id` values and duplicate supported ids are retained as explicit catalog diagnostics. The integration suite proves all supported ASCII ids occur exactly once in the catalog. - [Asset registry and CC0 license provenance](assets/ASSET_REGISTRY.md)
- [ASCII parity matrix](docs/parity/ASCII_TEST_MATRIX.md)
- [Release checklist and evidence](docs/RELEASE_CHECKLIST.md)
- [Player instructions](docs/PLAYING.md)
- [Content and modding](docs/CONTENT_AND_MODDING.md)
### Large generated catalog budget The game works without optional audio. It only plays registered Godot `AudioStream` resources from a user manifest and never searches or decodes arbitrary external audio paths. The current prototype demonstrates the reached-stairs exit state but does not generate a next level there.
The main-menu **Content Catalog** (`C`) searches the complete imported item, spell, and achievement catalogs, and uses **Tab** to switch catalog plus **Page Up/Down** to navigate. It renders at most 24 rows at a time rather than instantiating or formatting all results. The D6 integration contract validates every generated id and its item category/rarity/equipment slot, spell school, or achievement category.
On Linux with Godot 4.5.0 release-like headless execution and a warm imported project, `scripts/measure_catalog_performance.gd` recorded three menu/catalog opens at **293–306 ms** (end-to-end process wall time **0.99–1.05 s**), rendering 24 rows from 15,058 items. The acceptance budgets are **≤ 5,000 ms** for cold catalog import (enforced by the integration test) and **≤ 5,000 ms** to open the catalog menu (enforced by the measurement script). The generous cold-acceptance limit keeps the check stable under repository/CI startup noise; the script prints the measured duration, budget, and PASS/FAIL status and exits nonzero for an incomplete or over-budget open. Re-measure with:
```bash
GODOT_BIN=/snap/bin/godot4 ./scripts/godot-import.sh
/snap/bin/godot4 --headless --path . -s res://scripts/measure_catalog_performance.gd
```
A true Linux release export could not be generated in this repository because it has no `export_presets.cfg`; the documented run therefore uses the release-like headless runtime path and explicitly reports that limitation.
`run-visual-check.sh` runs the actual project twice: `--capture` records the initial state at `artifacts/visual-check.png`, while `--capture-exit` records the reached-exit state at `artifacts/visual-check-exit.png`. Both must be valid **1280×720** PNGs, and output is logged to `artifacts/visual-check.log`. The runner measures the dungeon viewport pixels with the Python standard library only (PNG parsing uses `struct`/`zlib`, with no Pillow or other external dependency): unmodulated visible terrain, texture-preserving explored terrain (captured luminance ≤ 0.35), and exact black-blue unknown fog (`#010205`). The explored luminance is calculated from detected captured pixels, not from a pre-render tint constant. It chooses `xvfb-run` with a 1280×720 screen when no display is available, enforces a timeout, and reports **unavailable** (rather than a false pass) when neither a display nor Xvfb exists. Godot `SCRIPT ERROR` and `Parse Error` diagnostics fail the check; `xkbcommon: ERROR` Compose/keymap warnings from the Snap/Xvfb environment are expected backend noise and are not treated as application errors. `verify.sh` runs unit tests and headless E2E before visual verification; unavailable visual verification is reported distinctly from a failed test or failed visual capture.
For a direct headless startup check:
```bash
GODOT_BIN=/snap/bin/godot4 timeout 3s /snap/bin/godot4 --headless --path .
```
## Exploration, combat, and HUD
- `GameState.visible_cells` render unmodulated. Cells retained in `explored_cells` preserve their tile texture beneath a black-blue overlay (normalized tint luminance ≤ 0.35); unknown cells are `Color(0.005, 0.008, 0.02, 1.0)` black-blue fog.
- FOV is map-aware: walls and closed doors are visible but block cells behind them.
- `HUD/PlayerHealthLabel`, `HUD/EnemyHealthLabel`, `HUD/CombatSummaryLabel`, and `HUD/EventLog` expose the current combat state. Their historical public paths are retained while viewport-anchored HUD panels separate stats, journal, contextual prompt, and help.
- `HUD/ContextPromptLabel` mirrors `GameHud.get_context_prompt()`: stairs under the player take priority and read `Espace — Descendre l’escalier`; otherwise an adjacent closed chest reads `Espace — Ouvrir le coffre` before an adjacent closed door can read `Espace — Ouvrir la porte`; a reached exit reads `Sortie atteinte — prochain étage bientôt disponible`; otherwise it is empty. Using stairs sets only `GameState.exit_reached`, logs `stairs_used`, and leaves the player and current map in place.
- Every `melee` and `enemy_melee` result is routed to its actor view; the sprite's persistent red tint makes received damage visible.
## Exports
Install the Godot 4.5 export templates matching the editor/runtime, then open `project.godot` in the Godot editor and use **Project → Export**.
### Linux/X11
1. Add or select a **Linux/X11** preset.
2. Choose an output path such as `build/linux/DungeonCrawlerWorld.x86_64` and click **Export Project**.
3. On Linux, make the binary executable if necessary, then launch it:
```bash
chmod +x build/linux/DungeonCrawlerWorld.x86_64
./build/linux/DungeonCrawlerWorld.x86_64
```
### Windows Desktop
1. Add or select a **Windows Desktop** preset.
2. Choose an output path such as `build/windows/DungeonCrawlerWorld.exe` and click **Export Project**.
3. Distribute the exported `.exe` with its generated `.pck` file when Godot produces one.
Windows exports can be produced from Linux when the matching templates are installed, but this project does **not** claim that a Windows export has been tested on Windows.
## Limits
This compact prototype has one deterministic goblin, direct pursuit, no persistence or inventory UI, and persistent rather than animated damage tint. Audio remains intentionally nonblocking and uses no bundled assets. Reaching the stairs is a demonstration-only exit: it sets `exit_reached` and displays `Sortie atteinte — prochain étage bientôt disponible`; **no next level is generated or loaded**, and the current player and map remain unchanged.
+27
View File
@@ -13,3 +13,30 @@ All binary art below is an unmodified 32×32 PNG copied from the local **Dungeon
| `assets/dcss/stairs.png` | `dungeon/gateways/stone_stairs_up.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none | | `assets/dcss/stairs.png` | `dungeon/gateways/stone_stairs_up.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none |
| `assets/dcss/player.png` | `player/base/kobold_female_new.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none | | `assets/dcss/player.png` | `player/base/kobold_female_new.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none |
| `assets/dcss/goblin.png` | `monster/goblin_new.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none | | `assets/dcss/goblin.png` | `monster/goblin_new.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none |
| `assets/dcss/war_dog.png` | `monster/animals/war_dog.png` | Dungeon Crawl Stone Soup Full | CC0 1.0 | none |
| `assets/audio/dungeon_exploration.wav` | generated specifically for this project | Dungeon Crawler World project | original project asset | procedural synthesis, 2026-10-08 |
| `assets/audio/dungeon_combat.wav` | generated specifically for this project | Dungeon Crawler World project | original project asset | procedural synthesis, 2026-10-08 |
| `assets/audio/dungeon_danger.wav` | generated specifically for this project | Dungeon Crawler World project | original project asset | procedural synthesis, 2026-10-08 |
## Dark fantasy UI kit — Task 1
Reusable UI components copied from the local prototype kit documented by the portable pack identifier `DungeonCrawlerWorld_UI_Assets/README.md`. Only transparent reusable components were imported, plus the two explicitly requested captures (`portrait_roger.png`, `illustration_equipement.png`). Import presets keep UI textures uncompressed, without mipmaps, and do not scale/recolor them with editor settings for pixel-stable UI rendering.
| Imported path | Local source | Author / pack | License | Modification / intended use |
|---|---|---|---|---|
| `assets/ui/dark_fantasy/bouton_normal_180x48.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/bouton_normal_180x48.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; normal button state |
| `assets/ui/dark_fantasy/bouton_survol_180x48.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/bouton_survol_180x48.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; hover/focus/pressed button state |
| `assets/ui/dark_fantasy/case_inventaire_72x72.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/case_inventaire_72x72.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; inventory slot frame |
| `assets/ui/dark_fantasy/header_800x54.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/header_800x54.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; ornamental header bar |
| `assets/ui/dark_fantasy/jauge_focus_pleine.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/jauge_focus_pleine.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; full focus gauge texture for TextureProgressBar |
| `assets/ui/dark_fantasy/jauge_vie_pleine.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/jauge_vie_pleine.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; full health gauge texture for TextureProgressBar |
| `assets/ui/dark_fantasy/jauge_xp_pleine.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/jauge_xp_pleine.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; full XP gauge texture for TextureProgressBar |
| `assets/ui/dark_fantasy/panel_320x200.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/panel_320x200.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; fixed-size charcoal/gold panel |
| `assets/ui/dark_fantasy/panel_440x270.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/panel_440x270.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; fixed-size charcoal/gold panel |
| `assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/panel_64x64_nine_patch_source.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; NinePatchRect/StyleBoxTexture source, 10 px margins |
| `assets/ui/dark_fantasy/touche_clavier_vide.png` | `DungeonCrawlerWorld_UI_Assets/composants_transparents/touche_clavier_vide.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; keyboard shortcut keycap |
| `assets/ui/dark_fantasy/portrait_roger.png` | `DungeonCrawlerWorld_UI_Assets/captures/portrait_roger.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; Roger portrait TextureRect |
| `assets/ui/dark_fantasy/illustration_equipement.png` | `DungeonCrawlerWorld_UI_Assets/captures/illustration_equipement.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; equipment illustration TextureRect |
| `assets/ui/dark_fantasy/dungeon_ui_background.png` | `DungeonCrawlerWorld_UI_Assets/captures/c4dc05cf-9f60-4620-a0af-f067852ba23b.png` | DungeonCrawlerWorld prototype UI kit | project prototype asset | none; reusable HUD background capture, tracked under portable pack identifier rather than an absolute workstation path |
| `assets/ui/dark_fantasy/dark_fantasy_theme.tres` | authored in project from imported UI kit colors/textures | Dungeon Crawler World project | original project asset | Godot Theme: parchment text, gold accents, charcoal panels, ornamental textured borders, focused/hover button states, 16–22 px readable defaults |
| `assets/ui/dark_fantasy/gold_coin.svg` | authored in project | Dungeon Crawler World project | original project asset | simple original SVG; readable round gold currency icon for HUD/GoldIcon |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cow1oh3o0fbus"
path="res://.godot/imported/bouton_normal_180x48.png-d9711fa595a0c3013705906e1b96edfc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/bouton_normal_180x48.png"
dest_files=["res://.godot/imported/bouton_normal_180x48.png-d9711fa595a0c3013705906e1b96edfc.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dnlfu6bkuvwp8"
path="res://.godot/imported/bouton_survol_180x48.png-941a16c6df0968e7cf184cf2a49ee3c5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/bouton_survol_180x48.png"
dest_files=["res://.godot/imported/bouton_survol_180x48.png-941a16c6df0968e7cf184cf2a49ee3c5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bu7xvj53seokx"
path="res://.godot/imported/case_inventaire_72x72.png-b4d759bb61ed8ed9e36f821cdf01969d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/case_inventaire_72x72.png"
dest_files=["res://.godot/imported/case_inventaire_72x72.png-b4d759bb61ed8ed9e36f821cdf01969d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
@@ -0,0 +1,118 @@
[gd_resource type="Theme" load_steps=8 format=3]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png" id="1_panel64"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/bouton_normal_180x48.png" id="2_btn_normal"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/bouton_survol_180x48.png" id="3_btn_hover"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/case_inventaire_72x72.png" id="4_inventory"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_panel"]
texture = ExtResource("1_panel64")
texture_margin_left = 10.0
texture_margin_top = 10.0
texture_margin_right = 10.0
texture_margin_bottom = 10.0
content_margin_left = 14.0
content_margin_top = 12.0
content_margin_right = 14.0
content_margin_bottom = 12.0
modulate_color = Color(0.95, 0.88, 0.68, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_button_normal"]
texture = ExtResource("2_btn_normal")
texture_margin_left = 14.0
texture_margin_top = 12.0
texture_margin_right = 14.0
texture_margin_bottom = 12.0
content_margin_left = 18.0
content_margin_top = 8.0
content_margin_right = 18.0
content_margin_bottom = 8.0
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_button_hover"]
texture = ExtResource("3_btn_hover")
texture_margin_left = 14.0
texture_margin_top = 12.0
texture_margin_right = 14.0
texture_margin_bottom = 12.0
content_margin_left = 18.0
content_margin_top = 8.0
content_margin_right = 18.0
content_margin_bottom = 8.0
modulate_color = Color(1.0, 0.88, 0.48, 1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_inventory_slot"]
texture = ExtResource("4_inventory")
texture_margin_left = 8.0
texture_margin_top = 8.0
texture_margin_right = 8.0
texture_margin_bottom = 8.0
content_margin_left = 8.0
content_margin_top = 8.0
content_margin_right = 8.0
content_margin_bottom = 8.0
[resource]
default_base_scale = 1.0
default_font_size = 18
Button/colors/font_color = Color(0.82, 0.72, 0.45, 1)
Button/colors/font_disabled_color = Color(0.36, 0.32, 0.25, 1)
Button/colors/font_focus_color = Color(1, 0.87, 0.42, 1)
Button/colors/font_hover_color = Color(1, 0.86, 0.36, 1)
Button/colors/font_hover_pressed_color = Color(0.95, 0.78, 0.28, 1)
Button/colors/font_outline_color = Color(0.05, 0.04, 0.03, 1)
Button/colors/font_pressed_color = Color(0.93, 0.76, 0.24, 1)
Button/constants/h_separation = 6
Button/constants/outline_size = 2
Button/font_sizes/font_size = 18
Button/styles/disabled = SubResource("StyleBoxTexture_button_normal")
Button/styles/focus = SubResource("StyleBoxTexture_button_hover")
Button/styles/hover = SubResource("StyleBoxTexture_button_hover")
Button/styles/normal = SubResource("StyleBoxTexture_button_normal")
Button/styles/pressed = SubResource("StyleBoxTexture_button_hover")
CheckButton/colors/font_color = Color(0.82, 0.72, 0.45, 1)
CheckButton/colors/font_hover_color = Color(1, 0.86, 0.36, 1)
CheckButton/font_sizes/font_size = 18
Label/colors/font_color = Color(0.86, 0.78, 0.58, 1)
Label/colors/font_outline_color = Color(0.04, 0.03, 0.025, 1)
Label/constants/line_spacing = 3
Label/constants/outline_size = 1
Label/font_sizes/font_size = 18
LineEdit/colors/caret_color = Color(0.95, 0.78, 0.28, 1)
LineEdit/colors/font_color = Color(0.86, 0.78, 0.58, 1)
LineEdit/colors/font_placeholder_color = Color(0.58, 0.49, 0.34, 1)
LineEdit/font_sizes/font_size = 18
LineEdit/styles/focus = SubResource("StyleBoxTexture_panel")
LineEdit/styles/normal = SubResource("StyleBoxTexture_panel")
MarginContainer/constants/margin_bottom = 12
MarginContainer/constants/margin_left = 14
MarginContainer/constants/margin_right = 14
MarginContainer/constants/margin_top = 12
NinePatchRect/colors/modulate_color = Color(1, 1, 1, 1)
Panel/styles/panel = SubResource("StyleBoxTexture_panel")
PanelContainer/styles/panel = SubResource("StyleBoxTexture_panel")
ProgressBar/colors/font_color = Color(0.86, 0.78, 0.58, 1)
ProgressBar/font_sizes/font_size = 16
ProgressBar/styles/background = SubResource("StyleBoxTexture_panel")
RichTextLabel/colors/default_color = Color(0.86, 0.78, 0.58, 1)
RichTextLabel/colors/font_outline_color = Color(0.04, 0.03, 0.025, 1)
RichTextLabel/constants/line_separation = 3
RichTextLabel/constants/outline_size = 1
RichTextLabel/font_sizes/bold_font_size = 18
RichTextLabel/font_sizes/bold_italics_font_size = 18
RichTextLabel/font_sizes/italics_font_size = 18
RichTextLabel/font_sizes/mono_font_size = 16
RichTextLabel/font_sizes/normal_font_size = 18
TabContainer/colors/font_selected_color = Color(1, 0.86, 0.36, 1)
TabContainer/colors/font_unselected_color = Color(0.82, 0.72, 0.45, 1)
TabContainer/font_sizes/font_size = 18
TextureButton/styles/focus = SubResource("StyleBoxTexture_button_hover")
Tree/colors/font_color = Color(0.86, 0.78, 0.58, 1)
Tree/colors/guide_color = Color(0.45, 0.36, 0.16, 1)
Tree/colors/relationship_line_color = Color(0.45, 0.36, 0.16, 1)
Tree/font_sizes/font_size = 18
Tree/styles/focus = SubResource("StyleBoxTexture_panel")
Tree/styles/panel = SubResource("StyleBoxTexture_panel")
VBoxContainer/constants/separation = 8
Window/colors/title_color = Color(1, 0.86, 0.36, 1)
Window/font_sizes/title_font_size = 22
Window/styles/embedded_border = SubResource("StyleBoxTexture_panel")
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
<circle cx="32" cy="32" r="29" fill="#3f2608"/>
<circle cx="32" cy="32" r="25" fill="#d59620" stroke="#ffe58a" stroke-width="4"/>
<circle cx="32" cy="32" r="17" fill="#f6bd3a" stroke="#9d5e0e" stroke-width="3"/>
<path d="M32 18v28M24 25h13a6 6 0 010 12H27" fill="none" stroke="#6d3d08" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cn1ylkt1gdri3"
path="res://.godot/imported/header_800x54.png-8168d4b03d78332ce9be36d6efc70292.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/header_800x54.png"
dest_files=["res://.godot/imported/header_800x54.png-8168d4b03d78332ce9be36d6efc70292.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c7xpnu2ug8a87"
path="res://.godot/imported/illustration_equipement.png-17faa12e99d3eb7822899599360d7b06.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/illustration_equipement.png"
dest_files=["res://.godot/imported/illustration_equipement.png-17faa12e99d3eb7822899599360d7b06.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://lihl4mwt6wbt"
path="res://.godot/imported/jauge_focus_pleine.png-64bf27c84c8e05cfa86bf7d4297e8997.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/jauge_focus_pleine.png"
dest_files=["res://.godot/imported/jauge_focus_pleine.png-64bf27c84c8e05cfa86bf7d4297e8997.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c0t0ocoverbbr"
path="res://.godot/imported/jauge_vie_pleine.png-75bd04bf86b6c769a3e43d7f6534489d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/jauge_vie_pleine.png"
dest_files=["res://.godot/imported/jauge_vie_pleine.png-75bd04bf86b6c769a3e43d7f6534489d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dn58tylg6os7w"
path="res://.godot/imported/jauge_xp_pleine.png-45d8a1b9a97caa1a7551aef5f69de77e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/jauge_xp_pleine.png"
dest_files=["res://.godot/imported/jauge_xp_pleine.png-45d8a1b9a97caa1a7551aef5f69de77e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://nbehix2ncwl3"
path="res://.godot/imported/panel_320x200.png-745adcaa92ccb293fc90dc8ce6d3dbe5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/panel_320x200.png"
dest_files=["res://.godot/imported/panel_320x200.png-745adcaa92ccb293fc90dc8ce6d3dbe5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://do1kj76r5rihi"
path="res://.godot/imported/panel_440x270.png-d711f8145df187c64091a8248e4dcbc1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/panel_440x270.png"
dest_files=["res://.godot/imported/panel_440x270.png-d711f8145df187c64091a8248e4dcbc1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cf2866mb1kemu"
path="res://.godot/imported/panel_64x64_nine_patch_source.png-7ff7dcd49b8e306dc38177a411da730c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png"
dest_files=["res://.godot/imported/panel_64x64_nine_patch_source.png-7ff7dcd49b8e306dc38177a411da730c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b3t2nmqk1h6sy"
path="res://.godot/imported/portrait_roger.png-74551b7844d393bf5ec8920cc556e9c7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/portrait_roger.png"
dest_files=["res://.godot/imported/portrait_roger.png-74551b7844d393bf5ec8920cc556e9c7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c6l1uyqyf1b3h"
path="res://.godot/imported/touche_clavier_vide.png-6931d919c221b025b4da175cc93a8397.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ui/dark_fantasy/touche_clavier_vide.png"
dest_files=["res://.godot/imported/touche_clavier_vide.png-6931d919c221b025b4da175cc93a8397.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
+61
View File
@@ -0,0 +1,61 @@
# Content, assets, and modding
## Content shipped with the game
Authored gameplay data lives under `data/ascii/` as UTF-8 JSON copied from the ASCII project. The game reads it through `ContentLoader` and `ContentCatalog` at startup. Supported files are deliberately explicit:
| Location | Loaded catalog |
| --- | --- |
| `items.json`, `enemies.json`, `spells.json`, `achievements.json`, `factions.json`, `loot_tables.json`, `npcs.json`, `traps.json` | Definitions of that named family |
| `dialogues/*.json` | Dialogue definitions |
| `quests/*.json` | Quest definitions |
| `events/*.json` | Narrative/world-event definitions |
`hero_classes.json`, `races.json`, `perks.json`, `recipes.json`, and `titles.json` are preserved source data. They are consumed by their specific game systems where available but are not generic `ContentCatalog` families. The loader retains a diagnostic for unreadable JSON, a missing `id`, or duplicate supported IDs; it does not silently replace duplicate definitions.
## Supported modding workflow
This repository does not provide a runtime mod browser, load order, dependency resolver, code modding API, or guarantee a stable schema. Treat content changes as a source mod/fork:
1. Create a branch or copy of the source checkout.
2. Edit an existing supported JSON file or add a correctly shaped JSON file to `dialogues/`, `quests/`, or `events/`.
3. Give each supported definition a non-empty unique string `id` within its family. Keep IDs stable after publishing: saves and references use them.
4. Validate JSON syntax and start the project from source.
5. Run the relevant test suite and then `./scripts/verify.sh` before distributing your build.
6. Re-export desktop artifacts with the G5 build scripts rather than editing a `.pck` or executable in place.
For a minimal item addition, add an object compatible with the nearby entries in `data/ascii/items.json`, including an `id`. For dialogue, quest, and event additions, copy the structure of a neighboring single-definition file. Existing content is the authoritative schema reference because the port intentionally preserves ASCII definitions rather than introducing a second content format.
Do not assume every preserved field creates a new behavior. Unsupported content families and unimplemented rules remain data for later port work. Validate a changed item, quest, event, enemy, or dialogue in a real run before release.
### Save compatibility
Changing or deleting IDs can make existing save data invalid, incomplete, or semantically different. Back up `user://saves` before testing a mod. Current saves use versioned JSON, and the loader reports unsupported ASCII-migration keys rather than claiming they were kept. There is no automatic migration system for third-party content schema changes.
### Optional audio customization
Audio is optional and is intentionally constrained. The game only plays typed `AudioStream` resources registered in `user://audio/audio_import_manifest.tres`; arbitrary files in a folder are neither scanned nor decoded. A safe setup tool or source change must import audio through Godot, create an `AudioImportManifest`, and register only the documented ambience contexts and SFX event names. See [PLAYING.md](PLAYING.md#audio-optional) for those names and silent fallback behavior.
## Assets and credits
All shipped binary art is listed in [`assets/ASSET_REGISTRY.md`](../assets/ASSET_REGISTRY.md). The seven unmodified 32×32 dungeon sprites are from the **Dungeon Crawl Stone Soup Full** tile pack and are licensed **CC0 1.0**. The license text is included at [`assets/dcss/LICENSE-CC0-1.0.txt`](../assets/dcss/LICENSE-CC0-1.0.txt). Attribution is not required by CC0; the registry credits the pack voluntarily and records each source path.
No audio assets ship with the project. Generated screenshots and build output are intentionally untracked (`artifacts/` and `build/`). Preserve licenses and record provenance for every new binary asset or third-party data set you add.
## Packaging modified content
A source mod must be exported with the same Godot version and matching export templates used for the base build:
```bash
./scripts/build-linux.sh
./scripts/build-windows.sh
```
Linux exports are smoke-launched under X11. Windows exports are file-manifest validated on Linux only; test modified Windows builds on a Windows system before claiming runtime support. The generated Windows manifest lists every distribution file in `build/windows/` so package them together.
## Intentional limits
- No in-game mod discovery, mod menu, hot reload, or compatibility promise exists.
- Altering scripts, scenes, save serialization, or action routing is code development, not supported data-only modding.
- Runtime content loaded from downloaded arbitrary paths is intentionally unsupported.
- The project remains a compact prototype: a reached stair exit does not generate a next level, and some parity actions are registered before their complete gameplay rules exist.
+82
View File
@@ -0,0 +1,82 @@
# Playing Dungeon Crawler World
Dungeon Crawler World is a desktop Godot prototype. It supports Linux x86_64 and Windows x86_64 exports. The reference display is 1920×1080, but the window is resizable.
## Install or run
### Downloaded Linux build
Extract the Linux archive, then make the executable runnable if your archive tool did not preserve its mode:
```bash
chmod +x DungeonCrawlerWorld.x86_64
./DungeonCrawlerWorld.x86_64
```
### Downloaded Windows build
Keep `DungeonCrawlerWorld.exe` together with every file listed in the adjacent `DungeonCrawlerWorld.exe.manifest` (including the `.pck` sidecar when listed). Open the `.exe` normally. A Windows artifact can be exported from Linux, but its runtime is **not** tested by this project on Linux.
### Run from a source checkout
Godot 4.5 is the verified version (Godot 4.2+ is the project minimum):
```bash
"${GODOT_BIN:-$(command -v godot4 || command -v godot)}" --path .
```
To produce a release build yourself, install Godot export templates matching the exact Godot version, then run:
```bash
./scripts/build-linux.sh
./scripts/build-windows.sh
```
The Linux script exports `build/linux/DungeonCrawlerWorld.x86_64` and smoke-launches it under X11 (using `xvfb-run` when no `DISPLAY` is set). The Windows script creates `build/windows/DungeonCrawlerWorld.exe` and a manifest; it validates generated files but does not execute Windows software on Linux. Both scripts stop with a specific missing-template message before exporting if the matching templates are unavailable. Set `GODOT_BIN` to choose Godot, or `GODOT_EXPORT_TEMPLATES_DIR` to choose its template directory.
## Start, save, and load
Choose **NEW RUN** at the main menu, choose a character, then enter the dungeon. **CONTINUE** loads the most recently updated occupied slot; **LOAD SLOT** opens a specific slot.
La sauvegarde est **manuelle** : pendant une partie, appuyez sur **V** (fonctionne aussi dans le jeu lancé depuis l’éditeur Godot) ou sur **Ctrl+S** dans une version autonome, puis choisissez l’un des cinq emplacements. Un message confirme l’emplacement écrit. Il n’est pas nécessaire d’avoir un menu Échap et le ciblage ou l’ouverture du panneau de sauvegarde ne consomme aucun tour. Le menu principal expose **CONTINUE** et **LOAD SLOT** pour reprendre la sauvegarde la plus récente ou choisir un emplacement. Les sauvegardes sont des fichiers JSON versionnés dans `user://saves`, nommés `slot1.json` à `slot5.json`. Leur chemin natif dépend de la plateforme. Copiez le dossier `saves` complet pour sauvegarder vos parties hors jeu; ne modifiez pas un fichier pendant son écriture.
The game recognizes its current schema and can migrate the supported parts of the supplied ASCII save shape. Unsupported legacy keys are reported rather than silently claimed as preserved.
## Controls
Press **F1** in a run for the current in-game control list. It is generated from the active input map, so it reflects the inventory binding after you change it in Options.
| Action | Default control |
| --- | --- |
| Move north / south / west / east | **W / S / A / D** or arrow keys |
| Move north-west / north-east / south-west / south-east | **Q / keypad 9 / Z / C** |
| Interact, open doors/chests, use stairs | **Space** or **E** |
| Wait | **.** |
| Attaque de mêlée | Se déplacer vers la case d’un ennemi adjacent |
| Attaque à distance / lancer un sort | **F / X** |
| Sauvegarder manuellement | **V** dans le debug Godot, ou **Ctrl+S** en version autonome, puis choisir un emplacement |
| Talk / rest | **T / H** |
| Inventory / crafting | **I / B** |
| Character / quests | **P / J** |
| Companion / party | **K / G** |
| Achievements / audience / recap | **L / U / Y** |
| Factions / moderation | **M / N** |
| Minimap expand/collapse | **Tab** |
| Options / help | **O / F1** |
| Expand journal | **L** (shares the achievements default) |
Plusieurs commandes ouvrent des panneaux contextuels. Dans les panneaux de sélection, utilisez les flèches pour choisir, **Entrée** ou **Espace** pour confirmer et **Échap** pour annuler. Avec une arme à distance équipée, **F** ouvre les cibles actuellement à portée et en ligne de vue; confirmer le tir consomme immédiatement un tour et les adversaires survivants se déplacent ou attaquent. **K** ouvre les ordres du familier : **Reste en arrière**, **Défends-moi** ou **Attaque à vue**. Dans l’inventaire, utilisez **E** pour équiper, **U** pour utiliser et **D** pour déposer. Dans la boutique, **Tab** change le mode achat/vente.
## Musique et audio
Le jeu contient trois ambiances originales intégrées : exploration, combat et danger. L’exploration démarre automatiquement avec la partie et le contexte passe à la musique de combat lors d’un affrontement. Le panneau Options contrôle séparément les volumes Ambiance et Effets.
La personnalisation reste sécurisée : le jeu ne parcourt et ne décode jamais des fichiers arbitraires. Un manifeste Godot optionnel dans `user://audio/audio_import_manifest.tres` peut remplacer individuellement les ressources intégrées avec des `AudioStream` déjà importés. Il reconnaît les contextes `exploration`, `combat`, `danger` et les effets `attack_given`, `attack_received`, `menu_select`, `menu_cancel`, `item_use`, `death`. Une entrée absente du manifeste utilisateur conserve la ressource intégrée correspondante.
## Known limitations
- This is a compact prototype, not a completed commercial release.
- The final stair state demonstrates a reached exit; no next level is generated at that point.
- Some action-router commands are registered for parity/UI discovery before all have complete gameplay behavior; unavailable actions are journaled rather than silently ignored.
- Save slots contain one run each and there is no cloud synchronization.
- Only the Linux desktop runtime has an automated smoke launch. Windows output is artifact-validated on Linux but needs a Windows host for runtime validation.
+34
View File
@@ -0,0 +1,34 @@
# Release checklist — Godot port candidate
Reviewed 2026-10-04 against the read-only DCWASCII reference at
`f25a69bad629c1737c22c2a1080ddd010e024912`. A checked item has executable
or recorded evidence; it is not a claim of byte-for-byte terminal-UI equivalence.
A release candidate/tag is prohibited until the strict parity gate, clean import,
Godot verification, export validation, and ASCII reference suite all pass.
## Product and content
- [x] Imported catalog source IDs, generated catalog taxonomy/cardinality, and load-time budget are covered — `test_ascii_content_parity.gd`, `test_bulk_content_loading.gd`, `test_large_catalog_menu_e2e.gd`.
- [x] Character creation, exploration, combat, inventory/equipment, loot, dialogue, quests, companions/party, progression, factions, audience/recap, achievements/titles, death modes, and graphical feedback have named test evidence in `docs/parity/ASCII_TEST_MATRIX.md`.
- [x] Floor-18 descent produces visible victory without floor 19; bounded deep profiles include a floor-15 target above 150 rooms — `test_deep_floor_profile.gd`, `test_final_floor_victory.gd`, `test_deep_floor_generation.gd`, `test_final_floor_victory_e2e.gd`.
- [x] Generated safe rooms stay outside the entrance, include beds/Bobka, and grant repeatable free rations — `test_safe_room_service.gd`, `test_safe_room_generation.gd`, `test_bobka_safe_room_e2e.gd`.
- [x] Tourists start at floor 6, cap at one, support selfie audience gain, and are ejected rather than killed with moderation — `test_tourist_service.gd`, `test_tourist_generation.gd`, `test_tourist_dialogue_e2e.gd`.
## State, deterministic generation, presentation, and distribution
- [x] Versioned five-slot save/load and actual menu save → restart → load are covered — `test_save_repository.gd`, `test_save_load_e2e.gd`.
- [x] Generated-floor connectivity, exit path, and safe population run 100 deterministic seeds — `test_floor_generator_connectivity.gd`, `test_floor_generator_exit_path.gd`, `test_floor_population_safety.gd`.
- [x] Visual capture validates initial and exit states — `scripts/run-visual-check.sh`, `scripts/check-visual-capture.py`.
- [x] Assets, controls/accessibility, optional audio, source modding, and platform caveats are documented — `assets/ASSET_REGISTRY.md`, `docs/PLAYING.md`, `docs/CONTENT_AND_MODDING.md`.
- [x] Linux export smoke and Windows output validation are scripted; the PR-4 command results are recorded in the release evidence document.
## Strict release gate
- [x] `./tests/scripts/test_parity_recovery_gate.sh` proves blocked and unowned fixture rows fail while a complete owned fixture passes.
- [x] `./tests/scripts/test_parity_gauntlet.sh` covers the full static-gate classifications.
- [x] `./scripts/run-parity-gauntlet.sh --matrix-only` requires every row to be `ported`, `replaced`, or explicitly justified `not_applicable` with evidence.
- [x] PR-4 command outcomes, ASCII revision/count, and final tag decision are recorded in `docs/release/RC-2026-10-04-evidence.md`.
- [x] Every required gate is green; create the local `v0.1.0-rc1` tag only after the evidence commit. Do not push it from this worktree.
**Disposition: eligible for a local release-candidate tag. The evidence record,
not a partial pass or unavailable verification, is the tag authority.**
+52 -46
View File
@@ -1,51 +1,57 @@
# ASCII test parity matrix # ASCII test parity matrix
Scope: every `DCWASCII/tests/test_*.py` module as inventoried on 2026-10-02. Status is deliberately conservative: **blocked** means the behavior is not yet available in the Godot port and its named slice owns the replacement; **replaced** means the original module's applicable contract is covered by a Godot test with a stated target owner. No row is unclassified. Scope: every `DCWASCII/tests/test_*.py` module, inventoried against the read-only
reference checkout at commit `f25a69bad629c1737c22c2a1080ddd010e024912` on
2026-10-04. **Replaced** means a graphical/deterministic Godot contract covers
the applicable player-facing behavior; it does **not** claim byte-for-byte or
terminal-UI equivalence. `not_applicable` requires an explicit justification.
| ASCII module | Status | Godot evidence / planned owner | | ASCII module | Status | Godot evidence / target owner |
| --- | --- | --- | | --- | --- | --- |
| `test_achievements.py` | blocked | F3 — `test_achievements.gd` / achievement reward E2E | | `test_achievements.py` | replaced | F3 — `test_achievements.gd`, `test_achievement_reward_e2e.gd` |
| `test_audience.py` | blocked | F4 — `test_audience.gd` | | `test_audience.py` | replaced | F4 — `test_audience.gd`, `test_audience_episode_e2e.gd` |
| `test_audio.py` | blocked | G3 — `test_audio_playback.gd` / audio settings E2E | | `test_audio.py` | replaced | G3 — `test_audio_library.gd`, `test_audio_playback.gd`, `test_audio_settings_e2e.gd` |
| `test_beds_stairs.py` | blocked | B5–B6 — floor transition/deadline tests | | `test_beds_stairs.py` | replaced | B6/D4 — `test_floor_deadline.gd`, `test_shop_rest_e2e.gd`, `test_stair_deadline_e2e.gd` |
| `test_bulk_content.py` | replaced | A1 `test_ascii_content_parity.gd`; D6 owns bulk performance/catalog UI | | `test_bulk_content.py` | replaced | A1/D6 — `test_ascii_content_parity.gd`, `test_bulk_content_loading.gd`, `test_large_catalog_menu_e2e.gd` |
| `test_combat.py` | blocked | C2 — `test_melee_combat.gd` / melee feedback E2E | | `test_combat.py` | replaced | C2 — `test_melee_combat.gd`, `test_melee_feedback_e2e.gd`, `test_combat_hud_e2e.gd` |
| `test_companion.py` | blocked | E4 — `test_companion.gd` | | `test_companion.py` | replaced | E4 — `test_companion.gd`, `test_pet_companion_e2e.gd` |
| `test_companion_support.py` | blocked | E4 — `test_companion_support.gd` | | `test_companion_support.py` | replaced | E4 — `test_companion_support.gd` |
| `test_countdown_moderation.py` | blocked | B6 / F5 — floor deadline and moderation tests | | `test_countdown_moderation.py` | replaced | B6/F5 — `test_floor_deadline.gd`, `test_moderation_event_e2e.gd` |
| `test_crafting.py` | blocked | D5 — `test_crafting.gd` / crafting E2E | | `test_crafting.py` | replaced | D5 — `test_crafting.gd`, `test_crafting_e2e.gd` |
| `test_dialogue.py` | blocked | E1 — `test_dialogue.gd` / NPC dialogue E2E | | `test_dialogue.py` | replaced | E1 — `test_dialogue.gd`, `test_dialogue_e2e.gd` |
| `test_economy.py` | blocked | D4 — `test_economy.gd` / shop-rest E2E | | `test_economy.py` | replaced | D4 — `test_economy.gd`, `test_shop_rest_e2e.gd` |
| `test_factions.py` | blocked | F5 — `test_factions.gd` | | `test_factions.py` | replaced | F5 — `test_factions.gd`, `test_moderation_event_e2e.gd` |
| `test_floor_zero.py` | blocked | B5 — `test_floor_transition.gd` / descend E2E | | `test_floor_zero.py` | replaced | B5 — `test_surface_floor_transition.gd`, `test_door_to_stairs_exit_e2e.gd`, `test_menu_multi_floor_e2e.gd` |
| `test_generation.py` | blocked | B2–B4 — generator/population integration tests | | `test_generation.py` | replaced | B2–B4 — `test_floor_generator_connectivity.gd`, `test_floor_generator_exit_path.gd`, `test_floor_population_safety.gd` |
| `test_guilds.py` | blocked | B3 / E1 — guild room and dialogue tests | | `test_guilds.py` | replaced | B3/E1 — `test_floor_generator_rooms.gd`, `test_dialogue.gd` |
| `test_healing_system.py` | blocked | C1 / D4 — status and safe-rest tests | | `test_healing_system.py` | replaced | C1/D4 — `test_status_effects.gd`, `test_shop_rest_e2e.gd` |
| `test_hero_classes.py` | blocked | F2 — `test_hero_classes.gd` | | `test_hero_classes.py` | replaced | F2 — `test_hero_classes.gd`, `test_floor_three_choice_e2e.gd` |
| `test_identification.py` | blocked | D3 — `test_identification.gd` | | `test_identification.py` | replaced | D3 — `test_identification.gd` |
| `test_inventory.py` | blocked | D1 — `test_inventory.gd` / pickup E2E | | `test_inventory.py` | replaced | D1 — `test_inventory.gd`, `test_pickup_inventory_e2e.gd`, `test_equip_use_item_e2e.gd` |
| `test_item_details.py` | blocked | D3 — equipment/inventory detail tests | | `test_item_details.py` | replaced | D3 — `test_equipment.gd`, `test_identification.gd`, `test_equip_use_item_e2e.gd` |
| `test_kill_method_gold.py` | blocked | C2 / D4 — combat and economy tests | | `test_kill_method_gold.py` | replaced | C2/D4 — `test_melee_combat.gd`, `test_economy.gd` |
| `test_limb_wounds.py` | blocked | C2 — `test_limb_wounds.gd` | | `test_limb_wounds.py` | replaced | C2 — `test_limb_wounds.gd` |
| `test_loot.py` | blocked | D2 — `test_loot_resolver.gd` / chest E2E | | `test_loot.py` | replaced | D2 — `test_loot_resolver.gd`, `test_world_chest_loot_e2e.gd` |
| `test_magic.py` | blocked | C5 — `test_magic.gd` / spell E2E | | `test_magic.py` | replaced | C5 — `test_magic.gd`, `test_spell_casting_e2e.gd` |
| `test_map_persistence.py` | blocked | B5 — floor transition persistence tests | | `test_map_persistence.py` | replaced | A4/B5/G1 — `test_map_renderer_fog.gd`, `test_surface_floor_transition.gd`, `test_save_repository.gd` |
| `test_menu_scrolling.py` | blocked | G2 / D6 — full UI navigation and large-catalog E2E | | `test_menu_scrolling.py` | replaced | G2/D6 — `test_full_ui_navigation_e2e.gd`, `test_large_catalog_menu_e2e.gd` |
| `test_minimap.py` | blocked | G2 — `test_minimap.gd` | | `test_minimap.py` | replaced | G2 — `test_minimap.gd`, `test_black_fog_e2e.gd` |
| `test_narrative_resurrection.py` | blocked | F6 — death/resurrection tests | | `test_narrative_resurrection.py` | replaced | F6 — `test_death_resurrection.gd`, `test_death_mode_e2e.gd` |
| `test_party_system.py` | blocked | E5 — `test_party_system.gd` / recruit-party E2E | | `test_party_system.py` | replaced | E5 — `test_party_system.gd`, `test_recruit_party_e2e.gd` |
| `test_playtest_fixes.py` | blocked | G6 — full parity regression gauntlet | | `test_playtest_fixes.py` | replaced | G6 — `test_achievements.gd`, `test_floor_deadline.gd`, `test_world_chest_loot_e2e.gd` |
| `test_playtest_v2.py` | blocked | G6 — full parity regression gauntlet | | `test_playtest_v2.py` | ported | PR-1 — `test_deep_floor_profile.gd`, `test_final_floor_victory.gd`, `test_deep_floor_generation.gd`, and real `test_final_floor_victory_e2e.gd` cover bounded deep generation, floor-18 victory, and no floor 19. |
| `test_quests.py` | blocked | E3 — `test_quests.gd` / quest lifecycle E2E | | `test_quests.py` | replaced | E3 — `test_quests.gd`, `test_quest_lifecycle_e2e.gd` |
| `test_quests_v3.py` | blocked | E3 — `test_quests.gd` / quest lifecycle E2E | | `test_quests_v3.py` | replaced | E3 — `test_quests.gd`, `test_quest_lifecycle_e2e.gd` |
| `test_race_class.py` | blocked | F2 — `test_race_class.gd` | | `test_race_class.py` | replaced | F2 — `test_race_class.gd`, `test_floor_three_choice_e2e.gd` |
| `test_real_time_deadline.py` | blocked | B6 — `test_floor_deadline.gd` | | `test_real_time_deadline.py` | replaced | B6 — `test_floor_deadline.gd`, `test_stair_deadline_e2e.gd` |
| `test_realworld_items.py` | blocked | D6 — bulk-content loading and catalog UI E2E | | `test_realworld_items.py` | replaced | D6 — `test_bulk_content_loading.gd`, `test_large_catalog_menu_e2e.gd` |
| `test_recap.py` | blocked | F4 — `test_recap.gd` | | `test_recap.py` | replaced | F4 — `test_recap.gd`, `test_audience_episode_e2e.gd` |
| `test_safe_rooms_bobka.py` | blocked | B3 / D4 / E1 — sanctuary, rest, and dialogue tests | | `test_safe_rooms_bobka.py` | ported | PR-2 — `test_safe_room_service.gd`, `test_safe_room_generation.gd`, and real `test_bobka_safe_room_e2e.gd` cover non-entrance safe rooms, beds, Bobka, and repeatable free rations. |
| `test_save.py` | blocked | G1 — save repository/migration/load E2E | | `test_save.py` | replaced | G1 — `test_save_repository.gd`, `test_ascii_save_migration.gd`, `test_save_load_e2e.gd` |
| `test_syndicate.py` | blocked | F5 — `test_syndicate.gd` | | `test_syndicate.py` | replaced | F5 — `test_syndicate.gd`, `test_moderation_event_e2e.gd` |
| `test_titles.py` | blocked | F3 — `test_titles.gd` | | `test_titles.py` | replaced | F3 — `test_titles.gd`, `test_achievement_reward_e2e.gd` |
| `test_tourists.py` | blocked | E1 — NPC dialogue E2E | | `test_tourists.py` | ported | PR-3 — `test_tourist_service.gd`, `test_tourist_generation.gd`, and real `test_tourist_dialogue_e2e.gd` cover floor-six/capped spawning, selfie audience gain, and protected ejection with moderation. |
**Classification totals:** 1 replaced, 42 blocked, 0 ported, 0 not_applicable, 0 unclassified. `test_bulk_content.py` is replaced only for A1's source-id/catalog-cardinality contract; its generated-content behavioral and performance coverage remains blocked on D6. **Classification totals:** 40 replaced, 0 blocked, 3 ported, 0 not_applicable,
0 unclassified. Every row has named Godot proof. The release gate remains strict:
any future blocked, unowned, invalid, or unjustified `not_applicable` row fails it.
+47
View File
@@ -0,0 +1,47 @@
# v0.1.0-rc1 release evidence — PR-4
**Recorded:** 2026-10-05
This is the release decision record for the PR-4 parity re-gate. It covers the
Godot worktree based on `be89171` plus the PR-4 changes recorded with this
document. The ASCII reference was used read-only at
`f25a69bad629c1737c22c2a1080ddd010e024912`; it was not modified.
## Gate results
| Required gate | Command | Result | Evidence / count |
| --- | --- | --- | --- |
| Recovery-gate regression | `./tests/scripts/test_parity_recovery_gate.sh` | PASS | A complete owned fixture passed; blocked and unowned fixtures failed as required. |
| Static gauntlet contracts | `./tests/scripts/test_parity_gauntlet.sh` | PASS | Valid `ported`, `replaced`, and justified `not_applicable` fixtures passed; blocked, unowned, unjustified, and unknown fixtures failed. |
| Strict matrix gate | `./scripts/run-parity-gauntlet.sh --matrix-only` | PASS | 43 rows, 0 invalid. Matrix totals: 40 replaced, 3 ported, 0 blocked, 0 not applicable, 0 unclassified. |
| Clean Godot verification | `rm -rf .godot artifacts && GODOT_BIN=/snap/bin/godot4 ./scripts/verify.sh` | PASS | Godot 4.5.stable.official.876b29033; 65 unit scripts / 197 tests / 2,450 assertions, 12 integration scripts / 17 tests / 235,740 assertions, and 46 E2E scripts / 61 tests / 615 assertions: 275 tests and 238,805 assertions total. Visual initial and exit captures passed. |
| Full release gauntlet | `GODOT_BIN=/snap/bin/godot4 ./scripts/run-parity-gauntlet.sh` | PASS | Matrix: 43 rows, 0 invalid. Save repository 3 tests / 40 assertions; save/load E2E 1 / 14; connectivity seeds 1 / 3,900; exit-path seeds 1 / 5,050; population seeds 1 / 155,834. All 7 tests / 164,838 assertions passed. |
| Export-script contract | `./tests/scripts/test_export_scripts.sh` | PASS | Both Linux/X11 and Windows Desktop scripts reject missing matching templates before export. |
| Linux export and smoke | `GODOT_BIN=/snap/bin/godot4 ./scripts/build-linux.sh` | PASS | Exported `build/linux/DungeonCrawlerWorld.x86_64` and completed X11 capture-mode smoke launch. |
| Windows export validation | `GODOT_BIN=/snap/bin/godot4 ./scripts/build-windows.sh` | PASS | Exported `build/windows/DungeonCrawlerWorld.exe` and validated its distribution manifest. Windows runtime was not executed on this Linux host. |
| ASCII reference suite (read-only) | `python3 -m pytest -q tests` in `DCWASCII` | PASS | 462 passed in 186.21s. Reference HEAD remained `f25a69bad629c1737c22c2a1080ddd010e024912`; its only pre-existing status entry before and after was untracked `CLAUDE.md`. |
The Godot runners emitted existing GUT resource-UID and resource-leak warnings,
but no `SCRIPT ERROR` or `Parse Error`; their exit statuses were zero. The
visual/export scripts apply their documented error filters and passed.
## Matrix evidence audited in this re-gate
The only PR-4 matrix classification changes for recovered gaps have named proof:
- `test_playtest_v2.py` — PR-1's `test_deep_floor_profile.gd`,
`test_final_floor_victory.gd`, `test_deep_floor_generation.gd`, and
`test_final_floor_victory_e2e.gd`.
- `test_safe_rooms_bobka.py` — PR-2's `test_safe_room_service.gd`,
`test_safe_room_generation.gd`, and `test_bobka_safe_room_e2e.gd`.
- `test_tourists.py` — PR-3's `test_tourist_service.gd`,
`test_tourist_generation.gd`, and `test_tourist_dialogue_e2e.gd`.
The matrix is release-blocking: any future blocked, unowned, invalid, or
unjustified `not_applicable` row makes the strict gate fail.
## RC decision
**Eligible and approved for a local `v0.1.0-rc1` tag.** Every required gate
above is green. Per the PR-4 instruction, no branch, commit, tag, or pull
request is pushed; the local tag is created only after the evidence commit.
@@ -0,0 +1,514 @@
# Parity Recovery Before Release Candidate Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use `subagent-driven-development` (recommended) or `executing-plans` to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Close the three honest Godot-vs-DCWASCII parity gaps found by G6—final-floor victory/deep-floor scale, safe rooms with Bobka, and tourists—then rerun the strict release-candidate gate without weakening its rules.
**Architecture:** The existing Godot domain remains authoritative at runtime. The three recovery slices extend the deterministic floor generator, `RunState`, dialogue/effect plumbing, audience/moderation, and floor transition services through explicit data-backed contracts; they do not invoke Python/ASCII during play. The current local G6 branch is treated as release-gate tooling only: it is rebased onto the recovery integration head in the final task, where its strict matrix can become green honestly.
**Tech Stack:** Godot 4.5, GDScript, GUT, Godot real-scene E2E, Bash/Python standard-library verification, Xvfb, Gitea local, Kanita.
**Spec:**
- `docs/superpowers/plans/2026-10-02-full-dcwascii-godot-port.md`
- `DCWASCII/tests/test_playtest_v2.py`
- `DCWASCII/tests/test_safe_rooms_bobka.py`
- `DCWASCII/tests/test_tourists.py`
- `DCWASCII/dcw/world/generator.py`
- `DCWASCII/dcw/game.py`
- `DCWASCII/dcw/conditions.py`
- `DCWASCII/dcw/config.py`
## Global Constraints
- Never modify `DCWASCII`; its code and tests are read-only behavioral oracles.
- Preserve the Godot game as a native GDScript executable; no Python process or Python content loader at runtime.
- Use the imported `data/ascii/` JSON identifiers/text unchanged.
- Every slice follows: focused RED proof → minimal GREEN → GUT/unit/integration → real `Game.tscn` E2E → clean-worktree import → Xvfb capture when presentation changes → independent review → Gitea PR.
- A release candidate is forbidden while any row in `docs/parity/ASCII_TEST_MATRIX.md` is `blocked`, unowned, invalid, or unjustified `not_applicable`.
- The final floor is **18**, matching `DCWASCII/dcw/config.py::FINAL_FLOOR`.
- Per-floor deadline is **15 days on floor 1 + 5 days per later floor**, with **20 turns/day**, matching the existing B6 Godot constants and ASCII config.
- Safe room kinds are exactly `refuge` and `sanctuary`; the entrance is never safe and never contains a bed or Bobka.
- Tourist content begins on floor **6**, has at most one tourist per floor, and never creates a real enemy death.
- No unrelated asset changes. New UI/content assets require an entry in `assets/ASSET_REGISTRY.md`.
- Reports, red logs, review packages and Kanita state live in ignored `.superpowers/` / `.claude/`, never in the product tree.
---
## Recovery graph and Kanita shape
The generation, population and dialogue services overlap, so the corrective implementation intentionally avoids unsafe parallel edits.
```text
PR-1 Endgame/deep floors ──► PR-2 Safe rooms/Bobka ──► PR-3 Tourists ──► PR-4 Parity re-gate / RC decision
```
| Slice | Track | True blocker | Why it must wait |
| --- | --- | --- | --- |
| PR-1 | `world/final-floor` | none | Establishes final-floor and scale contracts used by later generated floors. |
| PR-2 | `world/safe-room` | PR-1 | Both change the floor generator and floor population invariants. |
| PR-3 | `world/tourists` | PR-2 | Shares NPC population and dialogue/effect application with Bobka. |
| PR-4 | `release/parity` | PR-1, PR-2, PR-3 | Rebases/reuses G6 gate only after all three matrix rows are truly covered. |
**Kanita proposal:** create one new project named `DCW — Parity Recovery Before RC`; one list and one agent task per PR-1 through PR-4; exactly six checklist items per task: brief, RED, GREEN, integration/E2E, clean verify/capture, review/PR.
---
## Files and contracts fixed by this plan
| Area | Create/modify | Responsibility |
| --- | --- | --- |
| Final-floor rules | `scripts/domain/world/floor_generator.gd`, `scripts/domain/run/floor_transition.gd`, `scripts/domain/run/floor_deadline.gd`, `scripts/domain/run/run_state.gd` | Deep scale, final floor, victory and no floor 19. |
| Safe rooms | `scripts/domain/world/floor_generator.gd`, `scripts/domain/world/floor_populator.gd`, `scripts/domain/world/special_interactions.gd`, dialogue effect bridge | Guaranteed safe room, bed, Bobka and repeatable ration. |
| Tourist system | `scripts/domain/world/floor_populator.gd`, `scripts/domain/dialogue/dialogue_engine.gd`, `scripts/domain/combat/condition_engine.gd`, `scripts/domain/meta/audience_state.gd`, `scripts/domain/meta/moderation.gd` | Spawn, selfie, protected health/ejection and moderation. |
| Release gate | `docs/parity/ASCII_TEST_MATRIX.md`, `scripts/run-parity-gauntlet.sh`, `docs/RELEASE_CHECKLIST.md`, `tests/scripts/test_parity_gauntlet.sh` | Honest all-green parity decision. |
### Frozen recovery contracts
```gdscript
# Final-floor and generated scale
const FINAL_FLOOR := 18
func FloorGenerator.generation_profile(floor_number: int) -> Dictionary
# Returns deterministic map size, target room count and room size range.
func FloorTransition.try_descend(run: RunState) -> Array[GameEvent]
# At FINAL_FLOOR produces `game_victory`; it never creates floor 19.
# Safe rooms
func FloorState.safe_rooms() -> Array[RoomState]
func SafeRoomService.can_rest(floor: FloorState, cell: Vector2i) -> bool
func SafeRoomService.give_bobka_ration(run: RunState, npc_id: StringName) -> Array[GameEvent]
# Repeated calls are allowed; each successful call grants one consumable_ration and zero gold.
# Tourists
func TouristService.try_spawn(floor: FloorState, catalog: ContentCatalog, rng: DeterministicRng) -> Array[GameEvent]
func TouristService.selfie(run: RunState, tourist_id: StringName) -> Array[GameEvent]
func TouristService.endanger(run: RunState, tourist_id: StringName, amount: int) -> Array[GameEvent]
# At zero hidden health: `tourist_ejected`, not `actor_died`; exactly one moderation strike is emitted.
```
---
### Task PR-1: Deep-floor scale, final-floor victory and endgame
**Files:**
- Modify: `scripts/domain/world/floor_generator.gd`
- Modify: `scripts/domain/world/room_graph.gd`
- Modify: `scripts/domain/run/floor_transition.gd`
- Modify: `scripts/domain/run/floor_deadline.gd`
- Modify: `scripts/domain/run/run_state.gd`
- Modify: `scripts/game/game.gd`, `scripts/presentation/hud.gd`, `scenes/Game.tscn`
- Create: `scripts/domain/run/endgame_state.gd`
- Create: `scenes/ui/VictoryPanel.tscn`, `scripts/presentation/victory_panel.gd`
- Create: `tests/unit/test_deep_floor_profile.gd`
- Create: `tests/unit/test_final_floor_victory.gd`
- Create: `tests/integration/test_deep_floor_generation.gd`
- Create: `tests/e2e/test_final_floor_victory_e2e.gd`
- Modify: `docs/parity/ASCII_TEST_MATRIX.md`
**Consumes:** `FloorState`, `RoomGraph`, B5 `FloorTransition`, B6 `FloorDeadline`.
**Produces:** deterministic deep-floor profile, final-floor win state, `game_victory` event and a visible victory panel.
**Behavioral contract:**
```gdscript
func FloorGenerator.generation_profile(floor_number: int) -> Dictionary:
# floor 1 is strictly smaller than floor 12.
# floor 15 has target_rooms > 150.
# profile must be bounded so the generated map remains valid in Godot.
func FloorTransition.try_descend(run: RunState) -> Array[GameEvent]:
# if run.current_floor == 18 and eligible, append game_victory,
# set run.endgame_state.victory = true, and never allocate floor 19.
```
- [ ] **Step 1: Write failing deep-floor profile tests**
```gdscript
func test_floor_fifteen_targets_more_than_one_hundred_fifty_rooms() -> void:
var profile := FloorGenerator.generation_profile(15)
assert_gt(int(profile["target_room_count"]), 150)
func test_deeper_profiles_have_more_rooms_than_shallow_profiles() -> void:
assert_gt(
int(FloorGenerator.generation_profile(12)["target_room_count"]),
int(FloorGenerator.generation_profile(2)["target_room_count"])
)
```
- [ ] **Step 2: Run the focused test and retain RED proof**
Run:
```bash
./scripts/test-unit.sh
```
Expected: failure because `generation_profile` / final-floor contract does not exist or room target remains the fixed B2 count.
- [ ] **Step 3: Implement bounded deterministic scale**
Implement a floor-number profile with the ASCII intent:
```gdscript
var target_room_count := mini(500, 150 + floor_number * 20)
var map_width := mini(700, 180 + floor_number * 30)
var map_height := mini(350, 90 + floor_number * 15)
```
Do not naïvely allocate/render a 700×350 sprite node per cell. Keep `GridMapState` data scalable and make `MapRenderer` only draw the current camera/FOV viewport if existing rendering is otherwise O(map area) per frame. Add a generated-floor integration test at floors 2, 12 and 15 that checks profile scale, room count, non-overlap, entry/exit reachability and no process timeout.
- [ ] **Step 4: Write failing final-floor victory test**
```gdscript
func test_descending_from_eligible_final_floor_marks_victory_without_floor_nineteen() -> void:
var run := _run_at_final_eligible_stairs()
var events := FloorTransition.try_descend(run)
assert_true(run.endgame_state.victory)
assert_true(events.any(func(event): return event.kind == &"game_victory"))
assert_false(run.floors.has(19))
```
- [ ] **Step 5: Implement victory state and presentation**
Implement `EndgameState`; route final-floor descent to `game_victory`, recap/audience-compatible event and `VictoryPanel`. Preserve normal B6 early-stairs gate. Heal/transition semantics for non-final floors remain unchanged.
- [ ] **Step 6: Add true-scene endgame E2E**
Create a deterministic final-floor fixture, set the staircase eligibility through the public deadline seam, send real interact input, then assert:
```gdscript
assert_true(game.get_run_state().endgame_state.victory)
assert_true(victory_panel.visible)
assert_string_contains(victory_panel.get_display_text(), "vaincu")
assert_false(game.get_run_state().floors.has(19))
```
- [ ] **Step 7: Verify and commit**
Run:
```bash
./scripts/test-unit.sh
./scripts/test-integration.sh
./scripts/test-e2e.sh
DISPLAY= ./scripts/verify.sh
git diff --check
```
Commit:
```bash
git add scripts scenes tests docs/parity
git commit -m "feat: add final floor victory and deep generation scale"
```
---
### Task PR-2: Safe rooms, beds and Bobka’s repeatable free ration
**Files:**
- Modify: `scripts/domain/world/floor_generator.gd`
- Modify: `scripts/domain/world/floor_populator.gd`
- Modify: `scripts/domain/world/special_interactions.gd`
- Modify: `scripts/domain/dialogue/dialogue_engine.gd`
- Modify: `scripts/domain/combat/condition_engine.gd`
- Modify: `scripts/domain/run/run_state.gd`
- Modify: `scripts/game/game.gd`, `scripts/presentation/hud.gd`
- Create: `scripts/domain/world/safe_room_service.gd`
- Create: `tests/unit/test_safe_room_service.gd`
- Create: `tests/integration/test_safe_room_generation.gd`
- Create: `tests/e2e/test_bobka_safe_room_e2e.gd`
- Modify: `docs/parity/ASCII_TEST_MATRIX.md`
**Consumes:** PR-1 generation profile and current safe room room kinds; E1 dialogue effects; D1 inventory; D4 rest/economy.
**Produces:** explicit safe-room service, beds and Bobka data population, repeatable no-cost ration grant.
**Behavioral contract:**
```gdscript
const SAFE_ROOM_KINDS := [&"refuge", &"sanctuary"]
func SafeRoomService.is_safe_room(room: RoomState) -> bool
func SafeRoomService.validate_floor(floor: FloorState) -> PackedStringArray
# returns diagnostics; empty means entrance is not safe, entrance has no bed,
# and at least one non-entrance safe room exists.
func SafeRoomService.give_bobka_ration(run: RunState, npc_id: StringName) -> Array[GameEvent]
# one `item_granted` and one `bobka_ration_given`; zero gold mutation;
# it intentionally remains repeatable across dialogue sessions.
```
- [ ] **Step 1: Write failing 20-seed safe-room tests**
```gdscript
func test_entrance_is_never_safe_and_has_no_bed() -> void:
for seed_index in range(20):
var floor := _generate(4, "SAFE-START-%d" % seed_index)
var entrance_room := floor.room_at(floor.entrance)
assert_false(entrance_room.kind in SafeRoomService.SAFE_ROOM_KINDS)
assert_false(floor.metadata.get("bed_cells", []).has(floor.entrance))
func test_every_generated_floor_has_a_non_entrance_safe_room() -> void:
for seed_index in range(20):
assert_gt(_generate(4, "SAFE-%d" % seed_index).safe_rooms().size(), 0)
```
- [ ] **Step 2: Run RED proof**
Run the focused unit/integration suite. Expected: current Godot generation either does not guarantee a safe room for every seed, populates no Bobka, or uses bed placement without a service contract.
- [ ] **Step 3: Implement generator and population guarantees**
During `_assign_room_kinds`, reserve exactly one candidate room other than entrance/exit as `refuge` or `sanctuary` when none has been selected. Materialize one bed in each safe room, never in entrance. `FloorPopulator` adds one `npc_bobka` in each safe room only if a non-bed floor tile is free. Keep rooms/cells deterministic.
- [ ] **Step 4: Write failing Bobka effect test**
```gdscript
func test_bobka_ration_is_repeatable_and_free() -> void:
var run := _run_with_bobka()
var gold_before := run.gold
SafeRoomService.give_bobka_ration(run, &"npc_bobka_00")
SafeRoomService.give_bobka_ration(run, &"npc_bobka_00")
assert_eq(run.inventory.count_by_definition(&"consumable_ration"), 2)
assert_eq(run.gold, gold_before)
```
- [ ] **Step 5: Wire dialogue and UI**
Map `give_item` in Bobka’s imported dialogue to the inventory service, preserving content `dlg_bobka`. No one-shot guard may be added. Show a clear event/log message and inventory update after every ration.
- [ ] **Step 6: Add true-scene E2E**
Generate deterministic safe-room floor; interact with Bobka through the dialogue panel three separate times and choose “Prendre une ration.” Assert three rations, unchanged gold, bed/rest prompt and safe-room marker. Verify no starting spawn is safe.
- [ ] **Step 7: Verify and commit**
```bash
./scripts/test-unit.sh
./scripts/test-integration.sh
./scripts/test-e2e.sh
DISPLAY= ./scripts/verify.sh
git diff --check
git commit -m "feat: add safe rooms and repeatable Bobka rations"
```
---
### Task PR-3: Tourists, selfies and protected ejection
**Files:**
- Modify: `scripts/domain/world/floor_populator.gd`
- Modify: `scripts/domain/world/spawn_rules.gd`
- Modify: `scripts/domain/entities/party_state.gd` only if NPC collection helpers are shared
- Modify: `scripts/domain/dialogue/dialogue_engine.gd`
- Modify: `scripts/domain/combat/condition_engine.gd`
- Modify: `scripts/domain/meta/audience_state.gd`
- Modify: `scripts/domain/meta/moderation.gd`
- Modify: `scripts/domain/meta/achievement_manager.gd`
- Modify: `scripts/domain/run/run_state.gd`
- Modify: `scripts/game/game.gd`, dialogue panel/HUD as required
- Create: `scripts/domain/world/tourist_service.gd`
- Create: `tests/unit/test_tourist_service.gd`
- Create: `tests/integration/test_tourist_generation.gd`
- Create: `tests/e2e/test_tourist_dialogue_e2e.gd`
- Modify: `docs/parity/ASCII_TEST_MATRIX.md`
**Consumes:** PR-2 NPC safe population/dialogue effect seam; F3 achievements; F4 audience; F5 moderation.
**Produces:** data-backed tourist spawn and protected dialogue behavior with non-lethal ejection.
**Behavioral contract:**
```gdscript
const TOURIST_MIN_FLOOR := 6
const TOURIST_MAX_PER_FLOOR := 1
func TouristService.try_spawn(floor: FloorState, catalog: ContentCatalog, rng: DeterministicRng) -> Array[GameEvent]
# zero before floor 6; at most one at/after floor 6; requires npc_tourist_influencer.
func TouristService.selfie(run: RunState, tourist_id: StringName) -> Array[GameEvent]
# audience increases; tourist HP/ejection unchanged; fires tourist_met once when eligibility is met.
func TouristService.endanger(run: RunState, tourist_id: StringName, amount: int) -> Array[GameEvent]
# warning is handled by dialogue flag; only actual danger reduces hidden health.
# at <= 0: NPC removed/ejected, no actor_died/kill XP/loot/faction kill;
# exactly one moderation violation `mise_en_danger_touriste`.
```
- [ ] **Step 1: Write failing generation tests**
```gdscript
func test_no_tourists_before_floor_six() -> void:
for seed_index in range(25):
assert_eq(_tourists(_generate(5, "TOUR-EARLY-%d" % seed_index)).size(), 0)
func test_at_most_one_tourist_per_eligible_floor() -> void:
for seed_index in range(30):
assert_lte(_tourists(_generate(8, "TOUR-CAP-%d" % seed_index)).size(), 1)
func test_tourist_can_spawn_at_floor_six_across_seed_sample() -> void:
assert_true(_any_seed_spawns_tourist(6, 60))
```
- [ ] **Step 2: Run RED proof**
Run focused tests. Expected: no tourist metadata/service population exists.
- [ ] **Step 3: Implement protected tourist spawn**
Read `npc_tourist_influencer` from catalog. Generate only in eligible non-entrance, non-boss safe/open/narrative rooms; reserve a free reachable cell. Store `is_tourist`, `hidden_health`, `ejected=false` in NPC state metadata. Never create more than one per floor.
- [ ] **Step 4: Write failing positive/negative tourist dialogue tests**
```gdscript
func test_selfie_increases_audience_without_harming_tourist() -> void:
var run := _run_with_tourist()
var views_before := run.audience.views
var events := TouristService.selfie(run, _tourist_id(run))
assert_gt(run.audience.views, views_before)
assert_false(_tourist(run).metadata["ejected"])
assert_true(events.any(func(event): return event.kind == &"tourist_selfie"))
func test_exhausting_hidden_health_ejects_without_real_kill() -> void:
var run := _run_with_tourist()
while _tourist(run).metadata["hidden_health"] > 0:
TouristService.endanger(run, _tourist_id(run), 15)
assert_true(_tourist(run).metadata["ejected"])
assert_false(_tourist_is_active(run))
assert_eq(run.faction_war.kill_count(&"tourists"), 0)
assert_eq(run.moderation.strikes_for(&"mise_en_danger_touriste"), 1)
```
- [ ] **Step 5: Wire dialogue effects and achievements**
Implement `tourist_selfie` and `endanger_tourist` as explicit condition effects. Fire `tourist_met` at dialogue start once the character-level condition allows it. The first “juste pour voir” option only sets `warned_tourist_shove`; danger options affect hidden health. Do not award kill XP, normal loot, enemy-death achievements or faction kill counts.
- [ ] **Step 6: Add real-scene E2E**
Use deterministic tourist fixture in a floor-six run. Drive dialogue UI input:
1. take selfie and assert audience increases without damage/ejection;
2. close/reopen and choose warning, then real shove until ejection;
3. assert visible evacuation/moderation event, deadline penalty, no `actor_died`, no tourist remaining in active NPC view.
- [ ] **Step 7: Verify and commit**
```bash
./scripts/test-unit.sh
./scripts/test-integration.sh
./scripts/test-e2e.sh
DISPLAY= ./scripts/verify.sh
git diff --check
git commit -m "feat: add protected tourists and moderation"
```
---
### Task PR-4: Re-run strict parity gate and make the RC decision
**Files:**
- Modify: `docs/parity/ASCII_TEST_MATRIX.md`
- Modify: `scripts/run-parity-gauntlet.sh`
- Modify: `scripts/verify.sh`
- Modify: `docs/RELEASE_CHECKLIST.md`
- Modify: `README.md` only if release status changes
- Create: `tests/scripts/test_parity_recovery_gate.sh`
- Create: `docs/release/RC-<date>-evidence.md`
**Consumes:** all PR-1, PR-2 and PR-3 merged heads; local G6 gate tooling from `slice/g6-release-gauntlet` rebased/cherry-picked only after the recovery rows are covered.
**Produces:** an honest RC decision: tag only if all matrix rows pass; otherwise report exact blockers and leave tag absent.
- [ ] **Step 1: Write failing parity-recovery gate test**
```bash
# tests/scripts/test_parity_recovery_gate.sh
# A temporary matrix row with `blocked` must make run-parity-gauntlet.sh exit 1.
# A complete owned/replaced matrix must let the static gate continue.
```
- [ ] **Step 2: Run RED proof**
```bash
./tests/scripts/test_parity_recovery_gate.sh
```
Expected: runner absent, or current G6 matrix retains blocked recovery rows and exits 1.
- [ ] **Step 3: Update matrix with evidence, not claims**
Replace only these rows when their exact tests exist:
| ASCII module | Required Godot proof |
| --- | --- |
| `test_playtest_v2.py` | `test_deep_floor_profile.gd`, `test_final_floor_victory.gd`, `test_deep_floor_generation.gd`, `test_final_floor_victory_e2e.gd` |
| `test_safe_rooms_bobka.py` | `test_safe_room_service.gd`, `test_safe_room_generation.gd`, `test_bobka_safe_room_e2e.gd` |
| `test_tourists.py` | `test_tourist_service.gd`, `test_tourist_generation.gd`, `test_tourist_dialogue_e2e.gd` |
Set each row to `ported` or `replaced` only with named proof and explanation of any graphical substitution. No `blocked` remains.
- [ ] **Step 4: Run the complete Godot gauntlet in a clean worktree**
```bash
rm -rf .godot artifacts
./scripts/godot-import.sh
DISPLAY= ./scripts/verify.sh
./scripts/run-parity-gauntlet.sh
./tests/scripts/test_export_scripts.sh
./scripts/build-linux.sh
```
Verify generated-floor profile seed suites, save/load roundtrip, visual captures and Linux smoke. If any command fails, do not create a tag.
- [ ] **Step 5: Run ASCII reference read-only**
```bash
cd /home/hectelyon/Documents/Projects/ProjetsPersos/DCWASCII
python3 -m unittest discover -s tests -v
```
Record revision, command, count and exit status in `docs/release/RC-<date>-evidence.md`. Do not write to the ASCII repository.
- [ ] **Step 6: Make the release decision**
Only if all gates are green:
```bash
git tag -a v0.1.0-rc1 -m "Godot full-port release candidate"
git push origin v0.1.0-rc1
```
If a gate is red, do not tag or call it an RC. Add the precise failure and the owning next task to the evidence document.
- [ ] **Step 7: Verify and commit**
```bash
./tests/scripts/test_parity_recovery_gate.sh
./scripts/run-parity-gauntlet.sh
DISPLAY= ./scripts/verify.sh
git diff --check
git commit -m "chore: revalidate parity recovery release gate"
```
---
## Definition of Done
This recovery plan is complete only when:
1. The three former G6 rows have named Godot proof and are no longer `blocked`.
2. Final-floor descent at floor 18 produces victory without floor 19.
3. Deep generation has a bounded but demonstrably large floor-15 profile (>150 rooms), entrance/exit reachability and deterministic output.
4. Every generated non-surface floor guarantees a safe room outside the entrance, with a bed and Bobka ration flow.
5. Tourists spawn only at/after floor 6, at most one per floor, can award audience through selfie, and are ejected—not killed—with exactly one moderation strike on exhaustion.
6. The strict parity script, all Godot suites, clean-worktree import, capture checks, Linux export smoke and read-only ASCII suite pass.
7. A release candidate tag exists only after the previous six conditions pass.
## Self-review
- **Coverage:** each of the three G6 blocked modules has one vertical capability slice and named test seams; PR-4 owns the re-gate.
- **Consistency:** final floor uses `18`; deep scale mirrors ASCII bounded formulas; Bobka uses existing imported IDs; tourist details map to existing dialogue effects/data and F4/F5 services.
- **Scope discipline:** PR-1 handles endgame/scale, PR-2 safe rooms, PR-3 tourists, PR-4 release validation. No task quietly introduces the next task’s aggregate.
- **Honesty:** PR-4 explicitly permits a red release decision. A tag is conditional on evidence, never on plan completion alone.
@@ -0,0 +1,116 @@
# Playtest Parity Fixes Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Corriger les quatre écarts constatés en playtest concernant le jalon race/classe, la lisibilité de l’interface, la représentation du combat et le niveau principal.
**Architecture:** Conserver les domaines existants et corriger les branchements qui les exposent. La création de partie reste limitée aux paramètres de run; un panneau modal dédié consomme `ClassEngine` à l’entrée de l’étage 3. Le monde affiché reste piloté par `FloorState`, mais la surface et le profil de l’étage 1 sont alignés sur `DCWASCII`.
**Tech Stack:** Godot 4, GDScript, GUT 9.5.
**Spec:** Retours de playtest du 2026-10-07 et projet de référence `../DCWASCII` (`dcw/game.py`, `dcw/world/surface.py`, `dcw/world/generator.py`).
## Global Constraints
- Préserver la modification locale préexistante de `project.godot`.
- Ne pas confondre le niveau principal avec la minimap.
- Les choix de race puis de classe sont obligatoires à l’entrée de l’étage 3 du Donjon, pas à la création ni au niveau de personnage 3.
- Une attaque de mêlée reste déclenchée uniquement en tentant d’entrer dans la case adjacente occupée.
- Les noms techniques et le code restent en anglais.
---
### Task 1: Jalon race et classe de l’étage 3
**Files:**
- Modify: `scenes/menu/CharacterCreation.tscn`
- Modify: `scripts/presentation/menu/character_creation.gd`
- Modify: `scripts/presentation/menu/main_menu.gd`
- Modify: `scripts/game/game.gd`
- Modify: `scripts/domain/progression/class_engine.gd`
- Modify: `scripts/domain/run/run_state.gd`
- Create: `scenes/ui/RaceClassChoicePanel.tscn`
- Create: `scripts/presentation/race_class_choice_panel.gd`
- Test: `tests/e2e/test_new_run_creation_e2e.gd`
- Test: `tests/e2e/test_floor_three_race_class_e2e.gd`
**Interfaces:**
- Consumes: `ClassEngine.race_definitions()`, compatibility rules, `FloorTransition.transition()`.
- Produces: a mandatory `RaceClassChoicePanel`, an initially empty race/archetype, and a persisted `RunState.base_archetype` after confirmation.
- [ ] Add a failing creation-flow test proving there are no race/class controls and the new player has empty choices.
- [ ] Remove race/class fields and arguments from the creation flow.
- [ ] Add a failing floor-transition test proving entry to floor 3 opens a mandatory race-first modal.
- [ ] Add separate race and class application methods to `ClassEngine` and implement the modal sequence.
- [ ] Verify both focused E2E tests.
### Task 2: HUD and chest layout
**Files:**
- Modify: `scenes/Game.tscn`
- Modify: `scenes/ui/LootPanel.tscn`
- Test: `tests/unit/test_hud_layout.gd`
- Test: `tests/unit/test_loot_panel_layout.gd`
**Interfaces:**
- Consumes: existing HUD node paths retained for compatibility.
- Produces: non-overlapping visible rectangles at 1280×720.
- [ ] Add failing rectangle-intersection assertions for all visible HUD labels and chest panel sections.
- [ ] Give each visible HUD datum a distinct row and sufficient wrapping space.
- [ ] Put chest title, entries and action inside a vertical layout container.
- [ ] Verify focused layout tests.
### Task 3: Combat presentation and action wording
**Files:**
- Modify: `scripts/game/game.gd`
- Modify: `scripts/domain/turn_resolver.gd`
- Test: `tests/e2e/test_enemy_ai_e2e.gd`
- Test: `tests/unit/test_turn_resolver.gd`
**Interfaces:**
- Consumes: authoritative `ActorState.cell` positions and equipped main-hand metadata when available.
- Produces: synchronized enemy sprites after every resolved turn and melee messages that name the attack method.
- [ ] Add a failing E2E assertion that an enemy view follows the enemy state after movement.
- [ ] Resynchronize enemy views during player-action presentation updates.
- [ ] Add failing assertions that melee messages identify bare hands, equipped weapon, or natural attack while retaining damage wording.
- [ ] Add attack-method metadata to result messages without changing melee range rules.
- [ ] Verify focused combat tests.
### Task 4: Surface and procedural dungeon
**Files:**
- Modify: `scripts/domain/world/surface_generator.gd`
- Modify: `scripts/domain/world/floor_generator.gd`
- Modify: `scripts/game/game.gd`
- Modify: `tests/unit/test_surface_floor_transition.gd`
- Modify: `tests/unit/test_floor_generator_rooms.gd`
- Replace: `tests/unit/test_demo_map.gd`
- Replace: `tests/e2e/test_demo_map_chest_e2e.gd`
**Interfaces:**
- Consumes: reference surface contract (42×16, empty zone, corridor, door, stairs) and regular procedural formula `180 + floor*30`, `90 + floor*15`, `150 + floor*20`.
- Produces: the true reference surface at floor 0 and a 210×105, 170-room procedural floor 1.
- [ ] Add failing surface assertions for dimensions, empty population, entrance, door and stairs.
- [ ] Port the reference surface geometry.
- [ ] Add failing floor-1 profile assertions for map size and room target.
- [ ] Remove the obsolete shallow floor-1 profile and dead duplicate POC construction.
- [ ] Replace POC route tests with surface-to-generated-dungeon behavior tests.
- [ ] Verify world unit, integration and E2E tests.
### Task 5: Regression verification
**Files:**
- Modify only tests whose old expectations explicitly encoded the removed POC or creation-time class choice.
**Interfaces:**
- Consumes: `scripts/verify.sh` and focused GUT runners.
- Produces: passing unit, integration, E2E and visual verification without modifying `project.godot`.
- [ ] Run focused suites after every red/green cycle.
- [ ] Run `git diff --check`.
- [ ] Run `./scripts/verify.sh`.
- [ ] Inspect the regenerated visual captures for the main level, HUD and chest panel.
@@ -0,0 +1,96 @@
# Dark Fantasy Interface Refactor Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Rebuild the in-game HUD around the supplied dark-fantasy mock-up while preserving all gameplay, input, journal, minimap, overlay, and node-path contracts.
**Architecture:** Keep `Game.tscn` and `GameHud` as the integration boundary. Add reusable imported UI textures and a shared Godot theme, then reorganize the HUD into fixed left, center, and right regions inside the existing 1920×1080 reference viewport. Existing functional nodes remain at their current `HUD/*` paths; new decoration and layout containers are additive.
**Tech Stack:** Godot 4.7, GDScript, `.tscn`/`.tres` resources, GUT tests, PNG UI assets.
**Spec:** `/home/hectelyon/Downloads/DungeonCrawlerWorld_UI_Assets/README.md` and `captures/00_maquette_complete.png`
## Global Constraints
- Treat the supplied complete mock-up as visual direction, not as frozen game content.
- Recreate all live text and interactive states in Godot.
- Preserve existing gameplay and public `HUD/*` node paths used by `game.gd` and tests.
- Keep the 1920×1080 reference viewport and `canvas_items` stretching.
- Use the transparent components for reusable controls; use capture crops only for genuinely illustrative content.
- Do not change domain/gameplay logic except where presentation data must be exposed.
- Run targeted tests, the full verification suite, and visual capture inspection before completion.
---
## File Map
- `assets/ui/dark_fantasy/*`: copied production-ready transparent UI textures and illustrative portrait/equipment art.
- `assets/ui/dark_fantasy/dark_fantasy_theme.tres`: reusable typography, colors, panel, button, and scrollbar styling.
- `scenes/Game.tscn`: new desktop HUD composition and visual hierarchy while preserving functional root paths.
- `scenes/ui/Minimap.tscn`: dark-fantasy map panel and caption styling.
- `scripts/presentation/hud.gd`: live character/header/status copy and responsive layout behavior.
- `scripts/presentation/minimap.gd`: minimap sizing based on its actual drawing region.
- `tests/unit/test_hud_layout.gd`: structural, non-overlap, content, and central-play-area contracts for the new shell.
- `tests/e2e/test_visual_readability_e2e.gd`: integration contract for the redesigned layout.
- `assets/ASSET_REGISTRY.md`: provenance and use of the supplied UI kit.
### Task 1: Import the reusable art kit and define the visual system
**Interfaces:**
- Produces: `res://assets/ui/dark_fantasy/dark_fantasy_theme.tres` and stable texture paths consumed by scenes.
- [ ] Copy only transparent reusable components plus `portrait_roger.png` and `illustration_equipement.png` into `assets/ui/dark_fantasy/`.
- [ ] Add import presets suitable for pixel-stable UI rendering where needed.
- [ ] Create `dark_fantasy_theme.tres` with parchment text, gold accents, charcoal panels, ornamental borders, focused/hover button states, and readable 16–22 px defaults.
- [ ] Register source and intended use in `assets/ASSET_REGISTRY.md`.
- [ ] Run a headless Godot import and require exit code 0.
### Task 2: Lock the desired HUD shell with failing layout tests
**Interfaces:**
- Consumes: existing `GameScene`, `GameHud`, and `Game.REFERENCE_VIEWPORT`.
- Produces: test contracts for `TopBar`, `LeftRail`, `PlayAreaFrame`, `RightRail`, and `CommandBar` under `HUD/ResponsiveLayout`.
- [ ] Replace the old compact-overlay assertions with assertions for a full-frame HUD shell, distinct non-overlapping rails, and a center gameplay viewport.
- [ ] Assert that every existing live label remains enclosed by its intended panel.
- [ ] Assert dynamic header/character fields and command hints use live game values.
- [ ] Update the visual E2E region contract to target the framed center viewport.
- [ ] Run the HUD and visual-readability tests and confirm they fail for missing new regions.
### Task 3: Build the desktop dark-fantasy HUD
**Interfaces:**
- Consumes: shared theme/textures from Task 1 and test node names from Task 2.
- Preserves: all existing direct paths such as `HUD/PlayerHealthLabel`, `HUD/EventLog`, `HUD/ContextPromptLabel`, and overlay scene paths.
- Produces: `GameHud.apply_viewport_layout(viewport_size: Vector2) -> void` and the five named layout regions.
- [ ] Add the full-screen dark backdrop, top statistics bar, left character/objective/status rail, center play frame, right journal/map rail, quick-slot strip, prompt, and bottom command bar.
- [ ] Convert HP, focus, and XP presentation to styled live gauges without changing refresh semantics.
- [ ] Add character portrait/equipment illustration as non-interactive image content.
- [ ] Add live floor, player name, room/exploration, and status labels populated by `GameHud.refresh`.
- [ ] Add viewport-layout behavior that preserves the designed proportions at 1920×1080 and keeps controls readable at 1280×720.
- [ ] Run HUD unit tests until they pass.
### Task 4: Integrate the minimap and gameplay camera with the framed center
**Interfaces:**
- Consumes: `HUD/ResponsiveLayout/PlayAreaFrame` and existing `Minimap.set_state(...)`.
- Produces: minimap drawing constrained to its inner map region; camera still tracks the actor and obeys map limits.
- [ ] Restyle `Minimap.tscn` for the right rail without changing the `HUD/Minimap` root path.
- [ ] Make minimap cell sizing use the drawable map rectangle rather than the full framed control.
- [ ] Keep hidden enemies hidden and preserve expand/collapse behavior.
- [ ] Run minimap, camera-grid, and display-layout tests until they pass.
### Task 5: Validate overlays, inputs, visual output, and responsive behavior
**Interfaces:**
- Consumes: complete redesigned HUD.
- Produces: regression evidence and captured screenshots.
- [ ] Run all HUD, prompt, minimap, navigation, combat-HUD, and level-up tests.
- [ ] Run `./scripts/run-visual-check.sh` and inspect generated captures for overlap, clipping, readability, and center-map framing.
- [ ] Run the game/capture at 1280×720 and verify the layout remains usable.
- [ ] Run `./scripts/verify.sh` and require all executable and parity gates to pass.
- [ ] Run `git diff --check` and inspect final status/diff for unrelated changes.
- [ ] Commit and push the refactor to Gitea.
@@ -0,0 +1,107 @@
# Health Regeneration and Pets Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Porter dans le jeu Godot la régénération passive automatique des PV et rendre le familier créé avec la partie réellement configurable, persistant et utile en exploration/combat, conformément aux comportements de référence de DCWASCII.
**Architecture:** La formule de régénération reste une règle de domaine pure, appelée une seule fois à la fin de chaque tour résolu et appliquée silencieusement au joueur puis au familier vivant. Le familier reste l’agrégat `CompanionState` existant, enrichi avec son identité, ses caractéristiques de régénération et une IA agressive/défensive/soutien; la création, les transitions d’étage, l’UI et la sauvegarde consomment cet agrégat sans dupliquer les règles.
**Tech Stack:** Godot 4.7, GDScript, GUT 9.5, scènes `.tscn`, sauvegardes JSON.
**Spec:** Référence fonctionnelle `../DCWASCII/README.md` sections « Familier jouable » et « Système de soins », ainsi que `../DCWASCII/dcw/entities/{player,companion}.py`, `../DCWASCII/dcw/game.py`, `../DCWASCII/dcw/ai/companion_behaviors.py`.
## Global Constraints
- Préserver tous les changements locaux déjà présents; ne pas réinitialiser ni réécrire les modifications non liées.
- Régénération ASCII: `max(1, Endurance / 3)`, bonus `regen_bonus`, amplification de 15 % par rang de compétence Régénération au-delà du rang de base 1, puis multiplicateur de difficulté (1,5 / 1 / 0,75 / 0,5).
- La régénération est silencieuse, plafonnée aux PV max, active dès le niveau 1, une fois par tour consommé, et ne ranime jamais une entité morte.
- Le familier est optionnel, autonome, persistant, suit le joueur entre les étages et sa mort ne termine pas la partie.
- Conserver les coutures publiques et les sauvegardes existantes compatibles.
---
### Task 1: Passive health regeneration rule
**Files:**
- Create: `scripts/domain/combat/health_regeneration.gd`
- Test: `tests/unit/test_health_regeneration.gd`
**Interfaces:**
- Produces: `HealthRegeneration.amount(endurance: int, regeneration_skill: int, perk_bonus: int, difficulty_id: StringName) -> int`
- Produces: `HealthRegeneration.apply(actor: ActorState, endurance: int, regeneration_skill: int, perk_bonus: int, difficulty_id: StringName) -> int`
- [ ] **Step 1: Write the failing formula and cap/death tests**
- [ ] **Step 2: Run the focused test and confirm RED because the rule does not exist**
- [ ] **Step 3: Implement the exact ASCII formula and difficulty multipliers**
- [ ] **Step 4: Run the focused test and confirm GREEN**
### Task 2: End-of-turn regeneration integration
**Files:**
- Modify: `scripts/game/game.gd`
- Modify: `scripts/domain/entities/companion_state.gd`
- Test: `tests/e2e/test_health_regeneration_e2e.gd`
**Interfaces:**
- Consumes: `HealthRegeneration.apply(...)`
- Produces: automatic, silent player/pet healing through normal `submit_player_action` gameplay turns.
- [ ] **Step 1: Add an E2E test that damages the player, consumes real movement turns and observes exact healing without a regeneration journal event**
- [ ] **Step 2: Run it and confirm RED because completed turns do not heal**
- [ ] **Step 3: Add one centralized end-of-turn hook using the character model’s effective Endurance/skill/perk values and the run difficulty**
- [ ] **Step 4: Extend the test to a living pet and confirm dead actors remain at zero**
- [ ] **Step 5: Run focused unit/E2E tests and confirm GREEN**
### Task 3: Configurable pet identity and persistence
**Files:**
- Modify: `scripts/domain/run/run_settings.gd`
- Modify: `scripts/domain/entities/companion_state.gd`
- Modify: `scripts/presentation/menu/character_creation.gd`
- Modify: `scenes/menu/CharacterCreation.tscn`
- Modify: `scripts/infrastructure/save/save_repository.gd`
- Modify: `scripts/presentation/companion_panel.gd`
- Test: `tests/unit/test_companion.gd`
- Test: `tests/unit/test_save_repository.gd`
- Test: `tests/e2e/test_new_run_creation_e2e.gd`
**Interfaces:**
- Produces: optional `RunSettings.pet_name` and `RunSettings.pet_species`, with backward-compatible defaults.
- Produces: `CompanionState.name`, `species`, Endurance/skill/perk regeneration fields serialized with the companion.
- [ ] **Step 1: Add failing tests for identity defaults/custom values and save/load round-trip**
- [ ] **Step 2: Run focused tests and confirm RED**
- [ ] **Step 3: Add name/species fields shown only when the pet checkbox is enabled and pass them through `RunSettings`**
- [ ] **Step 4: Persist the complete companion record while accepting legacy companion records**
- [ ] **Step 5: Show name, species and PV in the companion panel**
- [ ] **Step 6: Run focused tests and confirm GREEN**
### Task 4: Functional autonomous pet behavior and floor following
**Files:**
- Modify: `scripts/domain/ai/companion_behaviors.gd`
- Modify: `scripts/domain/turn_resolver.gd`
- Modify: `scripts/game/game.gd`
- Test: `tests/unit/test_companion.gd`
- Test: `tests/e2e/test_pet_companion_e2e.gd`
**Interfaces:**
- Consumes: existing stances `FOLLOW`, `DEFEND`, `SUPPORT` as backward-compatible storage identifiers.
- Produces: aggressive chase/attack for `FOLLOW`, threat interception for `DEFEND`, low-PV player healing for `SUPPORT`, nearest-target enemy attacks, and adjacent pet placement after floor changes.
- [ ] **Step 1: Add one failing behavior test for aggressive chase and one for support healing**
- [ ] **Step 2: Run focused tests and confirm RED for the missing decisions**
- [ ] **Step 3: Implement deterministic nearest-enemy pursuit and a bounded support-heal action**
- [ ] **Step 4: Resolve heal actions and make enemies pursue/attack the nearer living player or pet, with ties favoring the pet**
- [ ] **Step 5: Add an E2E floor-transition assertion that the pet is placed next to the player**
- [ ] **Step 6: Run pet unit/integration/E2E tests and confirm GREEN**
### Task 5: Verification and parity evidence
**Files:**
- Modify: `docs/parity/ASCII_TEST_MATRIX.md` only if a new explicit mapping row/note is required.
- [ ] **Step 1: Run unit tests for regeneration, companions, settings and saves**
- [ ] **Step 2: Run pet/new-run/regeneration E2E tests**
- [ ] **Step 3: Run the project verification script and inspect failures**
- [ ] **Step 4: Confirm `git diff --check` and review the final diff for unrelated changes**
@@ -0,0 +1,103 @@
# Save, Ranged Combat, and Pet Controls Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Rendre la sauvegarde accessible sans menu Échap, déplacer l’attaque à distance sur `F` avec sélection de cible et tour ennemi immédiat, puis exposer trois comportements de familier en français avec un sprite temporaire de chien.
**Architecture:** Le menu principal reste le propriétaire du `SaveRepository`, mais le jeu actif lui demande d’ouvrir le panneau de sauvegarde par signal afin d’éviter un second dépôt et de conserver les cinq emplacements existants. Le ciblage à distance continue d’utiliser `RangedCombat` et `TargetingOverlay`; seules la touche, la validation des cibles et la résolution complète du tour sont renforcées. Les identifiants persistés des postures du familier restent compatibles, tandis que leurs libellés et règles deviennent « reste en arrière », « défends-moi » et « attaque à vue ».
**Tech Stack:** Godot 4.7, GDScript, GUT 9.5, scènes `.tscn`, sauvegardes JSON.
**Spec:** Retour de playtest utilisateur du 2026-10-08.
## Global Constraints
- Préserver tous les changements locaux déjà présents; ne pas réinitialiser ni réécrire les modifications non liées.
- L’attaque à distance se déclenche sur `F` seulement si une arme à distance est équipée; `Entrée` confirme et `Échap` annule la cible sans consommer de tour.
- Une attaque à distance valide consomme exactement un tour et fait immédiatement résoudre le déplacement ou l’attaque des adversaires survivants.
- Les trois comportements visibles du familier sont « Reste en arrière », « Défends-moi » et « Attaque à vue ».
- Le familier utilise temporairement un sprite animal de type chien compatible avec la licence CC0 existante.
- Conserver la lecture des anciennes sauvegardes et des anciennes valeurs de posture.
---
### Task 1: Sauvegarde accessible et explicite
**Files:**
- Modify: `project.godot`
- Modify: `scripts/game/input_bindings.gd`
- Modify: `scripts/game/game.gd`
- Modify: `scripts/presentation/menu/main_menu.gd`
- Modify: `scripts/presentation/save_load_panel.gd`
- Modify: `scenes/ui/SaveLoadPanel.tscn`
- Modify: `tests/unit/test_action_router.gd`
- Modify: `tests/e2e/test_save_load_e2e.gd`
- Modify: `docs/PLAYING.md`
**Interfaces:**
- Produces: input action `save` on `Ctrl+S`, routed as `PlayerAction(&"save")`.
- Produces: `Game.save_requested` connected by `MainMenu` to `show_save_slots()`.
- Produces: French save-panel feedback that states that saves are manual and confirms the slot written.
- [ ] Add a failing action-router assertion for `save` and an E2E test that `Ctrl+S` opens the save-slot panel during a run.
- [ ] Add the input binding/help label and the `Game.save_requested` signal branch.
- [ ] Connect the game signal in `MainMenu` and keep repository ownership there.
- [ ] Translate/clarify save-panel labels and update the player documentation.
- [ ] Run focused action-router and save/load tests.
### Task 2: Attaque à distance sur F et tour ennemi
**Files:**
- Modify: `project.godot`
- Modify: `scripts/game/input_bindings.gd`
- Modify: `scripts/game/game.gd`
- Modify: `scripts/presentation/targeting_overlay.gd`
- Modify: `tests/e2e/test_ranged_targeting_e2e.gd`
- Modify: `tests/e2e/test_input_action_router_e2e.gd`
- Modify: `docs/PLAYING.md`
**Interfaces:**
- Produces: `F` bound to `ranged`; the obsolete standalone `attack` input is removed because melee remains movement into an adjacent enemy.
- Produces: targeting candidates filtered by weapon range and line of sight.
- Consumes: `TurnResolver.append_enemy_response(...)` for every valid shot against a surviving enemy.
- [ ] Add failing E2E assertions proving `F` opens targeting, invalid/no-weapon input does not consume a turn, cancellation does not consume a turn, and a valid shot advances exactly one turn while the enemy approaches.
- [ ] Move `ranged` from `R` to `F` and remove the conflicting unused `attack` action from the input catalog/map.
- [ ] Filter displayed targets through `RangedCombat` validation without consuming ammunition.
- [ ] Keep confirmation/cancellation explicit in French and resolve one enemy response after a valid shot.
- [ ] Run focused ranged, input, turn-resolver, and combat tests.
### Task 3: Comportements du familier et sprite chien
**Files:**
- Modify: `scripts/domain/entities/companion_state.gd`
- Modify: `scripts/domain/ai/companion_behaviors.gd`
- Modify: `scripts/domain/turn_resolver.gd`
- Modify: `scripts/infrastructure/save/save_repository.gd`
- Modify: `scripts/presentation/companion_panel.gd`
- Modify: `scenes/Game.tscn`
- Create: `assets/dcss/war_dog.png`
- Modify: `assets/ASSET_REGISTRY.md`
- Modify: `tests/unit/test_companion.gd`
- Modify: `tests/e2e/test_pet_companion_e2e.gd`
**Interfaces:**
- Produces: persistent stances `stay_back`, `defend`, `attack_on_sight`, while mapping legacy `follow`, `defend`, `support` values.
- Produces: behavior rules where `stay_back` follows without engaging, `defend` attacks threats adjacent to the player, and `attack_on_sight` pursues the nearest living enemy.
- Produces: French UI labels/descriptions and `assets/dcss/war_dog.png` on `$World/Companion`.
- [ ] Add failing deterministic unit tests for the three named policies and an E2E panel-selection test for their French labels.
- [ ] Define the new stance identifiers and compatibility aliases/migration.
- [ ] Implement passive following, player defense, and nearest-enemy aggression.
- [ ] Replace support-only interception checks with the defend stance and update journal wording.
- [ ] Copy the local CC0 DCSS war-dog tile, wire it to the companion sprite, and register its source/license.
- [ ] Run focused companion, support-compatibility, save, and pet E2E tests.
### Task 4: Vérification
**Files:**
- Modify: `docs/parity/ASCII_TEST_MATRIX.md` only if a mapped contract needs an explicit note.
- [ ] Run all unit, integration, and E2E suites.
- [ ] Run the visual check and inspect the companion sprite and new HUD/help wording.
- [ ] Run `git diff --check` and inspect the final diff for unrelated changes.
@@ -0,0 +1,57 @@
# Temporary Starting Playtest Chests Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Garantir temporairement trois coffres dans la salle de départ d’une nouvelle partie pour tester la mêlée, la distance et un sort offensif.
**Architecture:** Un module `TemporaryPlaytestKit` isolé place trois coffres à récompense fixe sur l’étage de surface. `Game` l’appelle uniquement lors d’une nouvelle partie configurée, jamais lors du chargement d’une sauvegarde ni dans le générateur procédural. Les récompenses utilisent le flux normal des coffres; le payload de distance ajoute des munitions et le grimoire utilise l’effet normal `learn_spell`.
**Tech Stack:** Godot 4.5, GDScript, GUT.
**Spec:** Retour de playtest du 2026-10-08.
## Global Constraints
- Code explicitement temporaire et supprimable dans un fichier autonome.
- Exactement trois coffres de playtest sur une nouvelle surface.
- Aucun changement aux tables de loot ou aux étages procéduraux.
- Les sauvegardes chargées ne recréent pas les coffres.
- Récompenses fixes : mêlée, distance avec munitions, grimoire offensif.
---
### Task 1: Fixture temporaire de coffres
**Files:**
- Create: `scripts/game/temporary_playtest_kit.gd`
- Modify: `scripts/game/game.gd`
- Create: `tests/e2e/test_temporary_playtest_chests_e2e.gd`
**Interfaces:**
- Produces: `TemporaryPlaytestKit.apply_to_new_run(floor: FloorState) -> void`.
- [ ] Écrire un test E2E rouge instanciant une nouvelle partie et exigeant trois coffres fixes accessibles.
- [ ] Créer le module isolé avec trois cellules, trois récompenses et un marqueur metadata temporaire.
- [ ] Appeler le module seulement dans le chemin de nouvelle partie configurée.
- [ ] Vérifier qu’un chargement ne recrée aucun coffre.
### Task 2: Récompenses réellement testables
**Files:**
- Modify: `scripts/game/game.gd`
- Modify: `tests/e2e/test_temporary_playtest_chests_e2e.gd`
**Interfaces:**
- Consumes: payload coffre `ammunition` et effet d’objet `learn_spell`.
- Produces: munitions ajoutées lors de la récupération; `SpellState.learn(spell_id)` lors de l’utilisation du grimoire.
- [ ] Tester l’ouverture/récupération normale de chaque coffre.
- [ ] Ajouter les munitions du payload à `ActorState.ammunition` dans `_take_all_loot`.
- [ ] Après `InventoryState.use_item`, appliquer les effets `learn_spell` acceptés à `spell_state`.
- [ ] Vérifier qu’on peut équiper l’arme à distance, cibler avec F, et sélectionner le sort avec X après lecture.
### Task 3: Vérification
- [ ] Exécuter les tests ciblés coffre/inventaire/distance/magie.
- [ ] Exécuter les suites unitaires et E2E.
- [ ] Exécuter `git diff --check` et vérifier que le code temporaire reste contenu dans son module.
@@ -0,0 +1,144 @@
# UI, Input, Loot, and 1080p Fixes Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Corriger les panneaux à choix illisibles, rendre la sauvegarde accessible depuis le jeu embarqué dans l’éditeur, fiabiliser les flèches de déplacement, diversifier les coffres, matérialiser le butin des ennemis et migrer l’affichage de référence vers 1920×1080.
**Architecture:** Les panneaux modaux utilisent des conteneurs de mise en page plutôt que des offsets concurrents. Le routeur d’entrée conserve l’InputMap, mais expose une touche de sauvegarde sans modificateur qui n’est pas interceptée par l’éditeur et verrouille un seul déplacement par pression physique. Le résolveur de butin interdit de sélectionner deux fois le même objet pendant une résolution, tandis qu’une étape post-combat unique dans `Game` matérialise les tables de butin sur la cellule de mort pour toutes les voies létales. La résolution de référence devient un contrat 1920×1080 partagé par le projet, les tests et la capture visuelle.
**Tech Stack:** Godot 4.5, GDScript, GUT 9.5, scènes `.tscn`, JSON de contenu, scripts Bash/Python de vérification visuelle.
**Spec:** Retours de playtest et capture fournis le 2026-10-08.
## Global Constraints
- Préserver les nombreuses modifications locales déjà présentes et ne pas réinitialiser les fichiers hors périmètre.
- Les PNJ ne sont jamais des cibles de combat ou des sources de butin ennemi.
- Les corrections restent déterministes pour un seed et un contexte identiques.
- Les objets d’ennemis doivent être visibles au sol et passer par le flux de ramassage existant.
- Le viewport, la fenêtre de référence et les captures deviennent exactement 1920×1080.
- Les panneaux ne doivent plus superposer le récit, les choix et l’aide, y compris avec du texte long.
---
### Task 1: Résolution de référence 1920×1080
**Files:**
- Modify: `project.godot`
- Modify: `scripts/game/game.gd`
- Modify: `scripts/check-visual-capture.py`
- Modify: `scripts/run-visual-check.sh`
- Modify: `scripts/build-linux.sh`
- Modify: `tests/scripts/test_godot_import_runners.sh`
- Modify: `tests/unit/test_display_layout.gd`
- Modify: `tests/e2e/test_display_camera_grid_e2e.gd`
- Modify: `tests/unit/test_hud_layout.gd`
- Modify: `docs/PLAYING.md`
**Interfaces:**
- Produces: `Game.REFERENCE_VIEWPORT == Vector2i(1920, 1080)`.
- Produces: exact 1920×1080 PNG visual captures and smoke displays.
- [ ] Add failing assertions for the new project and `Game` reference dimensions.
- [ ] Change project viewport/window overrides and the public game constant.
- [ ] Update Xvfb, fake PNG and PNG validation dimensions; derive the measured dungeon crop from the new dimensions.
- [ ] Re-express the central HUD clearance area relative to `REFERENCE_VIEWPORT`.
- [ ] Run display, HUD, E2E camera and script-runner tests.
### Task 2: Panneaux de choix adaptatifs et non chevauchants
**Files:**
- Modify: `scenes/ui/EventPanel.tscn`
- Modify: `scenes/ui/DialoguePanel.tscn`
- Modify: `scenes/ui/QuestPanel.tscn`
- Modify: `scripts/presentation/event_panel.gd`
- Modify: `scripts/presentation/dialogue_panel.gd`
- Modify: `scripts/presentation/quest_panel.gd`
- Modify: affected E2E node paths
- Create: `tests/unit/test_choice_panel_layout.gd`
**Interfaces:**
- Produces: each modal as `PanelContainer > VBoxContainer Layout > Title, Body, Entries, Help`.
- Produces: distinct, contained narrative, choice and help rectangles at 1920×1080.
- [ ] Write a failing rectangle test with representative multiline narrative and choices for Event, Dialogue and Quest.
- [ ] Replace direct children and absolute offsets with one `VBoxContainer`, content margins and explicit vertical allocation.
- [ ] Update scripts and E2E paths from `$Body`/`$Entries` to `$Layout/Body`/`$Layout/Entries`.
- [ ] Verify at least 12 px logical separation and containment after two layout frames.
- [ ] Run choice-panel, dialogue, event and quest tests.
### Task 3: Sauvegarde utilisable depuis le debug embarqué et entrée fiable
**Files:**
- Modify: `project.godot`
- Modify: `scripts/game/input_bindings.gd`
- Modify: `scripts/game/action_router.gd`
- Modify: `scripts/game/game.gd`
- Modify: `scenes/Game.tscn`
- Modify: `tests/unit/test_action_router.gd`
- Modify: `tests/e2e/test_save_load_e2e.gd`
- Modify: `tests/e2e/test_input_action_router_e2e.gd`
- Modify: `docs/PLAYING.md`
**Interfaces:**
- Consumes: existing `save` player action and `Game.save_requested` signal.
- Produces: `V` as editor-safe save shortcut while retaining `Ctrl+S` for standalone/exported builds.
- Produces: one movement action per non-echo physical arrow press.
- [ ] Add a failing E2E test that opens save slots with plain `V` through real input.
- [ ] Add `V` as a second `save` binding and document why `Ctrl+S` is intercepted by the Godot editor’s own Save command in embedded play.
- [ ] Add a repeated alternating Up/Down E2E test proving every press is routed once and echo events do not create or swallow actions.
- [ ] Handle arrow physical keycodes deterministically before ambiguous action matching and ignore `InputEventKey.echo` for turn commands.
- [ ] Update the HUD/help text and run action/input/save tests.
### Task 4: Coffres sans objets répétés
**Files:**
- Modify: `scripts/domain/items/loot_resolver.gd`
- Modify: `scripts/domain/world/floor_populator.gd`
- Modify: `tests/unit/test_loot_resolver.gd`
- Modify: `tests/unit/test_floor_populator.gd`
- Modify: `tests/e2e/test_world_chest_loot_e2e.gd`
**Interfaces:**
- Produces: `LootResolver.resolve(...)` selects each `item_id` at most once per reward; explicit `min_qty/max_qty` remains the sole source of quantity.
- Produces: ordinary treasure rooms use `floor_treasure`, not arbitrary enemy or boss tables.
- [ ] Add a failing dominant-weight multi-roll test showing the same item is currently selected twice.
- [ ] Filter already-selected item IDs from subsequent weighted rolls while leaving gold/empty repeatable.
- [ ] Assert that generated treasure chests use the floor treasure table.
- [ ] Run resolver, chest, population and deterministic-generation tests.
### Task 5: Butin ennemi matérialisé et ramassable
**Files:**
- Modify: `scripts/game/game.gd`
- Modify: `scripts/domain/magic/magic_engine.gd`
- Modify: `scripts/presentation/loot_feedback.gd`
- Modify: `tests/e2e/test_melee_feedback_e2e.gd`
- Modify: `tests/e2e/test_ranged_targeting_e2e.gd`
- Modify: `tests/e2e/test_spell_casting_e2e.gd`
- Modify: `tests/unit/test_save_repository.gd`
**Interfaces:**
- Produces: one post-combat materialization step that resolves each `loot_dropped` descriptor exactly once.
- Produces: valid `ItemInstance` entries in `FloorState.ground_items[death_cell]` and immediate run gold credit.
- Produces: resolved `loot_dropped` payload containing `loot_table`, `items`, `gold`, and `empty`.
- [ ] Add a failing melee E2E assertion that a catalog-backed killed enemy leaves a ground item at its death cell.
- [ ] Resolve the enemy loot table using a stable `enemy:<floor>:<actor_id>` context before event journaling, create item instances, add them to `ground_items`, and credit gold.
- [ ] Add the missing loot descriptor to lethal spell outcomes so magic shares the same post-combat pipeline.
- [ ] Verify melee, ranged, companion and spell deaths each materialize once, and the existing interaction picks the item up.
- [ ] Verify save/load round-trips the generated drop and update feedback wording from “secured” to “dropped”.
### Task 6: Verification complète
**Files:**
- Modify: no production files unless a verified regression requires it.
- [ ] Run all unit tests.
- [ ] Run all integration tests.
- [ ] Run all E2E tests.
- [ ] Run visual capture and inspect both 1920×1080 images.
- [ ] Run matrix parity gate and `git diff --check`.
- [ ] Review the final diff for unrelated or generated temporary files.
+64
View File
@@ -0,0 +1,64 @@
; Desktop release presets. The build scripts require matching Godot export
; templates and write their ignored artifacts below build/.
[preset.0]
name="Linux/X11"
platform="Linux/X11"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="build/linux/DungeonCrawlerWorld.x86_64"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/astc=false
texture_format/pvrtc=false
texture_format/dxt5_ra_as_rgba=false
texture_format/optimize=false
binary_format/architecture="x86_64"
[preset.1]
name="Windows Desktop"
platform="Windows Desktop"
runnable=false
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="build/windows/DungeonCrawlerWorld.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.1.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=false
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
texture_format/astc=false
texture_format/pvrtc=false
texture_format/dxt5_ra_as_rgba=false
texture_format/optimize=false
binary_format/architecture="x86_64"
+178 -37
View File
@@ -1,51 +1,192 @@
; Engine configuration file. ; Engine configuration file.
; GUT 9.5.0 is pinned under addons/gut. ; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5 config_version=5
[application] [application]
config/name="Dungeon Crawler World" config/name="Dungeon Crawler World"
run/main_scene="res://scenes/menu/MainMenu.tscn" run/main_scene="res://scenes/menu/MainMenu.tscn"
config/features=PackedStringArray("4.7")
[display] [display]
window/size/viewport_width=1280
window/size/viewport_height=720 window/size/viewport_width=1920
window/size/window_width_override=1280 window/size/viewport_height=1080
window/size/window_height_override=720 window/size/window_width_override=1920
window/size/resizable=true window/size/window_height_override=1080
window/stretch/mode="canvas_items" window/stretch/mode="canvas_items"
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
textures/default_filters/use_nearest_mipmap_filter=false
textures/canvas_textures/default_texture_filter=0
[editor_plugins] [editor_plugins]
enabled=PackedStringArray("res://addons/gut/plugin.cfg") enabled=PackedStringArray("res://addons/gut/plugin.cfg")
[input] [input]
interact={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":32),Object(InputEventKey,"physical_keycode":69)]}
move_north={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":87),Object(InputEventKey,"physical_keycode":4194320)]} interact={
move_south={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":83),Object(InputEventKey,"physical_keycode":4194322)]} "deadzone": 0.5,
move_west={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":65),Object(InputEventKey,"physical_keycode":4194319)]} "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
move_east={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":68),Object(InputEventKey,"physical_keycode":4194321)]} , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
move_northwest={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":81)]} ]
move_northeast={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":4194447)]} }
move_southwest={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":90)]} move_north={
move_southeast={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":67)]} "deadzone": 0.5,
wait={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":46)]} "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
attack={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":70)]} , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194320,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
ranged={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":82)]} ]
cast={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":88)]} }
talk={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":84)]} move_south={
rest={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":72)]} "deadzone": 0.5,
inventory={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":73)]} "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
crafting={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":66)]} , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194322,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
character={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":80)]} ]
quest={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":74)]} }
companion={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":75)]} move_west={
party={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":71)]} "deadzone": 0.5,
audience={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":85)]} "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
recap={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":89)]} , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
map={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":77)]} ]
options={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":79)]} }
move_east={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_northwest={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":81,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_northeast={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194447,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_southwest={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":90,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_southeast={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194441,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
wait={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":46,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
ranged={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":70,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
save={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":86,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
cast={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":88,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
talk={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":84,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
rest={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":72,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
inventory={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":73,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
crafting={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":66,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
character={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":67,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
quest={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":74,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
companion={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":75,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
party={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":71,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
achievements={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":76,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
audience={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":85,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
recap={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":89,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
factions={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":77,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
moderation={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":78,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
map={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194308,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
help={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194332,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
toggle_log={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":76,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
options={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":79,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
[rendering]
textures/canvas_textures/default_texture_filter=0
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
+487 -170
View File
@@ -1,13 +1,16 @@
[gd_scene load_steps=16 format=3] [gd_scene load_steps=25 format=3]
[ext_resource type="Script" path="res://scripts/game/game.gd" id="1_game"] [ext_resource type="Script" path="res://scripts/game/game.gd" id="1_game"]
[ext_resource type="Script" path="res://scripts/presentation/map_renderer.gd" id="2_map"] [ext_resource type="Script" path="res://scripts/presentation/map_renderer.gd" id="2_map"]
[ext_resource type="Script" path="res://scripts/presentation/actor_view.gd" id="3_actor"] [ext_resource type="Script" path="res://scripts/presentation/actor_view.gd" id="3_actor"]
[ext_resource type="Script" path="res://scripts/presentation/hud.gd" id="4_hud"] [ext_resource type="Script" path="res://scripts/presentation/hud.gd" id="4_hud"]
[ext_resource type="Texture2D" path="res://assets/dcss/player.png" id="5_player"] [ext_resource type="Texture2D" path="res://assets/dcss/player.png" id="5_player"]
[ext_resource type="Texture2D" path="res://assets/dcss/war_dog.png" id="35_companion"]
[ext_resource type="Script" path="res://scripts/infrastructure/audio_library.gd" id="6_audio"] [ext_resource type="Script" path="res://scripts/infrastructure/audio_library.gd" id="6_audio"]
[ext_resource type="Script" path="res://scripts/presentation/event_presenter.gd" id="7_presenter"] [ext_resource type="Script" path="res://scripts/presentation/event_presenter.gd" id="7_presenter"]
[ext_resource type="PackedScene" path="res://scenes/overlays/CombatFeedback.tscn" id="8_feedback"] [ext_resource type="PackedScene" path="res://scenes/overlays/CombatFeedback.tscn" id="8_feedback"]
[ext_resource type="Script" path="res://scripts/presentation/door_chest_feedback.gd" id="31_door_chest_feedback"]
[ext_resource type="Script" path="res://scripts/presentation/loot_feedback.gd" id="32_loot_feedback"]
[ext_resource type="PackedScene" path="res://scenes/overlays/TargetingOverlay.tscn" id="9_targeting"] [ext_resource type="PackedScene" path="res://scenes/overlays/TargetingOverlay.tscn" id="9_targeting"]
[ext_resource type="PackedScene" path="res://scenes/overlays/SpellTargetingOverlay.tscn" id="10_spell_targeting"] [ext_resource type="PackedScene" path="res://scenes/overlays/SpellTargetingOverlay.tscn" id="10_spell_targeting"]
[ext_resource type="PackedScene" path="res://scenes/ui/LootPanel.tscn" id="11_loot"] [ext_resource type="PackedScene" path="res://scenes/ui/LootPanel.tscn" id="11_loot"]
@@ -20,25 +23,57 @@
[ext_resource type="PackedScene" path="res://scenes/ui/CompanionPanel.tscn" id="18_companion"] [ext_resource type="PackedScene" path="res://scenes/ui/CompanionPanel.tscn" id="18_companion"]
[ext_resource type="PackedScene" path="res://scenes/ui/PartyPanel.tscn" id="19_party"] [ext_resource type="PackedScene" path="res://scenes/ui/PartyPanel.tscn" id="19_party"]
[ext_resource type="PackedScene" path="res://scenes/ui/CharacterPanel.tscn" id="20_character"] [ext_resource type="PackedScene" path="res://scenes/ui/CharacterPanel.tscn" id="20_character"]
[ext_resource type="PackedScene" path="res://scenes/ui/ProgressionChoicePanel.tscn" id="21_progression_choice"]
[ext_resource type="PackedScene" path="res://scenes/ui/RaceClassChoicePanel.tscn" id="34_race_class_choice"]
[ext_resource type="PackedScene" path="res://scenes/ui/AchievementPanel.tscn" id="22_achievement"]
[ext_resource type="PackedScene" path="res://scenes/ui/AudiencePanel.tscn" id="23_audience"]
[ext_resource type="PackedScene" path="res://scenes/ui/RecapPanel.tscn" id="24_recap"]
[ext_resource type="PackedScene" path="res://scenes/ui/FactionPanel.tscn" id="25_faction"]
[ext_resource type="PackedScene" path="res://scenes/ui/ModerationPanel.tscn" id="26_moderation"]
[ext_resource type="PackedScene" path="res://scenes/ui/DeathPanel.tscn" id="27_death"]
[ext_resource type="PackedScene" path="res://scenes/ui/VictoryPanel.tscn" id="33_victory"]
[ext_resource type="PackedScene" path="res://scenes/ui/Minimap.tscn" id="28_minimap"]
[ext_resource type="PackedScene" path="res://scenes/ui/OptionsPanel.tscn" id="29_options"]
[ext_resource type="PackedScene" path="res://scenes/ui/HelpPanel.tscn" id="30_help"]
[sub_resource type="StyleBoxFlat" id="StyleBox_hud_panel"] [ext_resource type="Theme" path="res://assets/ui/dark_fantasy/dark_fantasy_theme.tres" id="36_hud_theme"]
bg_color = Color(0.035, 0.055, 0.09, 0.9) [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/portrait_roger.png" id="38_hud_portrait"]
border_width_left = 2 [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png" id="37_hud_panel"]
border_width_top = 2 [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/dungeon_ui_background.png" id="38_hud_background"]
border_width_right = 2 [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_vie_pleine.png" id="40_hud_health"]
border_width_bottom = 2 [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_focus_pleine.png" id="41_hud_focus"]
border_color = Color(0.25, 0.48, 0.62, 0.9) [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_xp_pleine.png" id="42_hud_xp"]
corner_radius_top_left = 6 [ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/gold_coin.svg" id="43_hud_gold_coin"]
corner_radius_top_right = 6
corner_radius_bottom_right = 6 [sub_resource type="StyleBoxTexture" id="StyleBox_hud_panel"]
corner_radius_bottom_left = 6 texture = ExtResource("37_hud_panel")
content_margin_left = 12.0 texture_margin_left = 10.0
content_margin_top = 8.0 texture_margin_top = 10.0
content_margin_right = 12.0 texture_margin_right = 10.0
content_margin_bottom = 8.0 texture_margin_bottom = 10.0
modulate_color = Color(0.32, 0.29, 0.23, 0.88)
[sub_resource type="StyleBoxFlat" id="StyleBox_xp_background"]
bg_color = Color(0.025, 0.02, 0.014, 1)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(0.55, 0.40, 0.16, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id="StyleBox_xp_fill"]
bg_color = Color(0.78, 0.58, 0.2, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
[sub_resource type="StyleBoxFlat" id="StyleBox_prompt_panel"] [sub_resource type="StyleBoxFlat" id="StyleBox_prompt_panel"]
bg_color = Color(0.08, 0.12, 0.16, 0.94) bg_color = Color(0.10, 0.075, 0.042, 0.98)
border_width_left = 2 border_width_left = 2
border_width_top = 2 border_width_top = 2
border_width_right = 2 border_width_right = 2
@@ -49,6 +84,60 @@ corner_radius_top_right = 6
corner_radius_bottom_right = 6 corner_radius_bottom_right = 6
corner_radius_bottom_left = 6 corner_radius_bottom_left = 6
[sub_resource type="StyleBoxFlat" id="StyleBox_opaque_outside_artboard"]
bg_color = Color(0.012, 0.018, 0.028, 1)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(0.19, 0.15, 0.09, 1)
[sub_resource type="StyleBoxTexture" id="StyleBox_play_area_mask"]
texture = ExtResource("38_hud_background")
modulate_color = Color(0.55, 0.55, 0.55, 1)
[sub_resource type="StyleBoxTexture" id="StyleBox_section"]
texture = ExtResource("37_hud_panel")
texture_margin_left = 10.0
texture_margin_top = 10.0
texture_margin_right = 10.0
texture_margin_bottom = 10.0
modulate_color = Color(0.27, 0.24, 0.19, 0.9)
[sub_resource type="StyleBoxFlat" id="StyleBox_play_frame"]
bg_color = Color(0.008, 0.012, 0.018, 0.0)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.67, 0.48, 0.19, 0.95)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxTexture" id="StyleBox_health_fill"]
texture = ExtResource("40_hud_health")
texture_margin_left = 4.0
texture_margin_top = 4.0
texture_margin_right = 4.0
texture_margin_bottom = 4.0
[sub_resource type="StyleBoxTexture" id="StyleBox_focus_fill"]
texture = ExtResource("41_hud_focus")
texture_margin_left = 4.0
texture_margin_top = 4.0
texture_margin_right = 4.0
texture_margin_bottom = 4.0
[sub_resource type="StyleBoxTexture" id="StyleBox_xp_fill_dark_fantasy"]
texture = ExtResource("42_hud_xp")
texture_margin_left = 4.0
texture_margin_top = 4.0
texture_margin_right = 4.0
texture_margin_bottom = 4.0
[node name="Game" type="Node2D"] [node name="Game" type="Node2D"]
script = ExtResource("1_game") script = ExtResource("1_game")
@@ -60,6 +149,12 @@ script = ExtResource("7_presenter")
[node name="CombatFeedback" parent="EventPresenter" instance=ExtResource("8_feedback")] [node name="CombatFeedback" parent="EventPresenter" instance=ExtResource("8_feedback")]
[node name="DoorChestFeedback" type="Node2D" parent="EventPresenter"]
script = ExtResource("31_door_chest_feedback")
[node name="LootFeedback" type="Node" parent="EventPresenter"]
script = ExtResource("32_loot_feedback")
[node name="World" type="Node2D" parent="."] [node name="World" type="Node2D" parent="."]
position = Vector2(32, 48) position = Vector2(32, 48)
@@ -73,8 +168,7 @@ script = ExtResource("3_actor")
[node name="Enemies" type="Node2D" parent="World"] [node name="Enemies" type="Node2D" parent="World"]
[node name="Companion" type="Sprite2D" parent="World"] [node name="Companion" type="Sprite2D" parent="World"]
texture = ExtResource("5_player") texture = ExtResource("35_companion")
modulate = Color(0.62, 0.87, 1, 1)
script = ExtResource("3_actor") script = ExtResource("3_actor")
[node name="Party" type="Node2D" parent="World"] [node name="Party" type="Node2D" parent="World"]
@@ -111,214 +205,437 @@ script = ExtResource("4_hud")
[node name="CharacterPanel" parent="HUD" instance=ExtResource("20_character")] [node name="CharacterPanel" parent="HUD" instance=ExtResource("20_character")]
[node name="ProgressionChoicePanel" parent="HUD" instance=ExtResource("21_progression_choice")]
[node name="RaceClassChoicePanel" parent="HUD" instance=ExtResource("34_race_class_choice")]
[node name="AchievementPanel" parent="HUD" instance=ExtResource("22_achievement")]
[node name="AudiencePanel" parent="HUD" instance=ExtResource("23_audience")]
[node name="RecapPanel" parent="HUD" instance=ExtResource("24_recap")]
[node name="FactionPanel" parent="HUD" instance=ExtResource("25_faction")]
[node name="ModerationPanel" parent="HUD" instance=ExtResource("26_moderation")]
[node name="DeathPanel" parent="HUD" instance=ExtResource("27_death")]
[node name="VictoryPanel" parent="HUD" instance=ExtResource("33_victory")]
[node name="Minimap" parent="HUD" instance=ExtResource("28_minimap")]
[node name="OptionsPanel" parent="HUD" instance=ExtResource("29_options")]
[node name="HelpPanel" parent="HUD" instance=ExtResource("30_help")]
[node name="AchievementToast" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(1, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 18
horizontal_alignment = 1
vertical_alignment = 1
visible = false
[node name="TitleLabel" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(0.95, 0.79, 0.36, 1)
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
vertical_alignment = 1
text = "Étage 0"
[node name="TitleNotificationLabel" type="Label" parent="HUD"]
layout_mode = 0
visible = false
theme_override_colors/font_color = Color(1, 0.88, 0.52, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 20
horizontal_alignment = 1
vertical_alignment = 1
[node name="TitleNotificationTimer" type="Timer" parent="HUD"]
wait_time = 5.0
one_shot = true
[node name="AchievementToastTimer" type="Timer" parent="HUD"]
wait_time = 5.0
one_shot = true
[node name="HeaderValuesLabel" type="Label" parent="HUD" groups=["hud_header_values"]]
layout_mode = 0
theme_override_colors/font_color = Color(0.86, 0.78, 0.58, 1)
theme_override_font_sizes/font_size = 16
horizontal_alignment = 1
vertical_alignment = 1
text = ""
visible = false
[node name="ResponsiveLayout" type="Control" parent="HUD"] [node name="ResponsiveLayout" type="Control" parent="HUD"]
layout_mode = 3 layout_mode = 3
z_index = -1
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
mouse_filter = 2 mouse_filter = 2
theme = ExtResource("36_hud_theme")
[node name="DarkBackdrop" type="Control" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
[node name="Artboard" type="Control" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
[node name="LetterboxTop" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_opaque_outside_artboard")
[node name="LetterboxBottom" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_opaque_outside_artboard")
[node name="PillarboxLeft" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_opaque_outside_artboard")
[node name="PillarboxRight" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_opaque_outside_artboard")
[node name="PlayAreaMaskTop" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_play_area_mask")
[node name="PlayAreaMaskLeft" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_play_area_mask")
[node name="PlayAreaMaskRight" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_play_area_mask")
[node name="PlayAreaMaskBottom" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_play_area_mask")
[node name="TopBar" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="LeftRail" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="CharacterSection" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_section")
[node name="ObjectivesSection" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_section")
[node name="StatusSection" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_section")
[node name="CharacterSectionTitle" type="Label" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 3
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 22
text = "PERSONNAGE"
vertical_alignment = 1
[node name="ObjectivesSectionTitle" type="Label" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 2
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
text = "OBJECTIFS"
vertical_alignment = 1
[node name="StatusSectionTitle" type="Label" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 2
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
text = "ÉTAT"
vertical_alignment = 1
[node name="PlayAreaFrame" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
show_behind_parent = true
theme_override_styles/panel = SubResource("StyleBox_play_frame")
[node name="RightRail" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="JournalSection" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_section")
[node name="MapSection" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_section")
[node name="JournalSectionTitle" type="Label" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 3
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 22
text = "JOURNAL"
vertical_alignment = 1
[node name="MapSectionTitle" type="Label" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.9, 0.7, 1)
theme_override_colors/font_outline_color = Color(0.06, 0.035, 0.015, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 2
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
text = "CARTE"
vertical_alignment = 1
[node name="CommandBar" type="Panel" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="StatsPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"] [node name="StatsPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0 mouse_filter = 2
offset_left = 12.0
offset_top = 12.0
offset_right = 248.0
offset_bottom = 170.0
grow_horizontal = 0
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="LogPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"] [node name="LogPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1 layout_mode = 0
anchors_preset = 1 mouse_filter = 2
anchor_left = 1.0
anchor_right = 1.0
offset_left = -256.0
offset_top = 12.0
offset_right = -12.0
offset_bottom = 170.0
grow_horizontal = 0
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="PromptPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"] [node name="PromptPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1 layout_mode = 0
anchors_preset = 10 mouse_filter = 2
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -280.0
offset_top = -90.0
offset_right = 280.0
offset_bottom = -52.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_prompt_panel")
[node name="HelpPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"] [node name="HelpPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1 layout_mode = 0
anchors_preset = 12 mouse_filter = 2
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 12.0
offset_top = -42.0
offset_right = -12.0
offset_bottom = -12.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
[node name="PlayerHealthLabel" type="Label" parent="HUD"] [node name="QuickSlotStrip" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0 mouse_filter = 2
offset_left = 26.0
offset_top = 26.0 [node name="QuickSlotHint" type="Label" parent="HUD/ResponsiveLayout"]
offset_right = 236.0 layout_mode = 0
offset_bottom = 46.0 mouse_filter = 2
grow_horizontal = 0 theme_override_colors/font_color = Color(0.86, 0.78, 0.58, 1)
grow_vertical = 0 theme_override_font_sizes/font_size = 16
theme_override_colors/font_color = Color(1, 1, 1, 1) text = "1 Arme • 2 Sort • 3 Soin • I Sac"
horizontal_alignment = 1
vertical_alignment = 1
[node name="PortraitIllustration" type="TextureRect" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
texture = ExtResource("38_hud_portrait")
expand_mode = 1
stretch_mode = 5
[node name="CharacterNameLabel" type="Label" parent="HUD/ResponsiveLayout" groups=["hud_character_values"]]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.96, 0.84, 0.48, 1)
theme_override_font_sizes/font_size = 21
text = ""
visible = false
vertical_alignment = 1
[node name="CharacterLevelLabel" type="Label" parent="HUD/ResponsiveLayout" groups=["hud_character_values"]]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.8, 0.76, 0.62, 1)
theme_override_font_sizes/font_size = 16
text = "Niveau 1"
vertical_alignment = 1
[node name="PlayerHealthLabel" type="Label" parent="HUD" groups=["hud_character_values"]]
layout_mode = 0
theme_override_colors/font_color = Color(1, 0.78, 0.68, 1)
theme_override_font_sizes/font_size = 18 theme_override_font_sizes/font_size = 18
text = "PV du joueur : 12/12"
vertical_alignment = 1
[node name="PlayerFocusLabel" type="Label" parent="HUD"] [node name="HealthBar" type="ProgressBar" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0 mouse_filter = 2
offset_left = 26.0 max_value = 12.0
offset_top = 48.0 value = 12.0
offset_right = 236.0 show_percentage = false
offset_bottom = 68.0 theme_override_styles/background = SubResource("StyleBox_xp_background")
grow_horizontal = 0 theme_override_styles/fill = SubResource("StyleBox_health_fill")
grow_vertical = 0
[node name="PlayerFocusLabel" type="Label" parent="HUD" groups=["hud_character_values"]]
layout_mode = 0
theme_override_colors/font_color = Color(0.7, 0.8, 1, 1) theme_override_colors/font_color = Color(0.7, 0.8, 1, 1)
theme_override_font_sizes/font_size = 18 theme_override_font_sizes/font_size = 18
text = "Focus : 3/3"
vertical_alignment = 1
[node name="FocusBar" type="ProgressBar" parent="HUD"]
layout_mode = 0
mouse_filter = 2
max_value = 3.0
value = 3.0
show_percentage = false
theme_override_styles/background = SubResource("StyleBox_xp_background")
theme_override_styles/fill = SubResource("StyleBox_focus_fill")
[node name="ExperienceBar" type="ProgressBar" parent="HUD"]
layout_mode = 0
mouse_filter = 2
theme_override_styles/background = SubResource("StyleBox_xp_background")
theme_override_styles/fill = SubResource("StyleBox_xp_fill_dark_fantasy")
show_percentage = false
[node name="ExperienceLabel" type="Label" parent="HUD"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.92, 0.97, 1, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.9)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_font_sizes/font_size = 14
text = "Niveau 1 — XP 0/100"
horizontal_alignment = 1
vertical_alignment = 1
[node name="CharacterStatusLabel" type="Label" parent="HUD" groups=["hud_character_values"]]
layout_mode = 0
theme_override_colors/font_color = Color(0.75, 0.9, 0.72, 1)
theme_override_font_sizes/font_size = 15
text = "État : 12 PV • 3 Focus"
autowrap_mode = 2
vertical_alignment = 1
[node name="GoldIcon" type="TextureRect" parent="HUD"]
layout_mode = 0
mouse_filter = 2
texture = ExtResource("43_hud_gold_coin")
expand_mode = 1
stretch_mode = 5
[node name="GoldLabel" type="Label" parent="HUD"] [node name="GoldLabel" type="Label" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0
offset_left = 26.0
offset_top = 70.0
offset_right = 236.0
offset_bottom = 90.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.84, 0.35, 1) theme_override_colors/font_color = Color(1, 0.84, 0.35, 1)
theme_override_font_sizes/font_size = 18 theme_override_font_sizes/font_size = 18
text = "Or: 0" text = "0"
vertical_alignment = 1
[node name="QuestTrackerLabel" type="Label" parent="HUD"] [node name="QuestTrackerLabel" type="Label" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0
offset_left = 26.0
offset_top = 92.0
offset_right = 360.0
offset_bottom = 112.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(0.65, 1, 0.72, 1) theme_override_colors/font_color = Color(0.65, 1, 0.72, 1)
theme_override_font_sizes/font_size = 14 theme_override_font_sizes/font_size = 14
text = "Quêtes : aucune" text = "Quêtes : aucune"
autowrap_mode = 2
vertical_alignment = 1
[node name="SpellLabel" type="Label" parent="HUD"] [node name="SpellLabel" type="Label" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0
offset_left = 26.0
offset_top = 92.0
offset_right = 360.0
offset_bottom = 112.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(0.82, 0.7, 1, 1) theme_override_colors/font_color = Color(0.82, 0.7, 1, 1)
theme_override_font_sizes/font_size = 14 theme_override_font_sizes/font_size = 14
vertical_alignment = 1
[node name="EnemyHealthLabel" type="Label" parent="HUD"] [node name="EnemyHealthLabel" type="Label" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0
offset_left = 26.0
offset_top = 114.0
offset_right = 236.0
offset_bottom = 134.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.8, 0.7, 1) theme_override_colors/font_color = Color(1, 0.8, 0.7, 1)
theme_override_font_sizes/font_size = 18 theme_override_font_sizes/font_size = 16
vertical_alignment = 1
[node name="CombatSummaryLabel" type="Label" parent="HUD"] [node name="CombatSummaryLabel" type="Label" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0
offset_left = 26.0
offset_top = 114.0
offset_right = 236.0
offset_bottom = 134.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1) theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 16 theme_override_font_sizes/font_size = 15
autowrap_mode = 2
vertical_alignment = 1
[node name="DeadlineLabel" type="Label" parent="HUD"] [node name="DeadlineLabel" type="Label" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 0
offset_left = 26.0
offset_top = 138.0
offset_right = 360.0
offset_bottom = 158.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.76, 0.4, 1) theme_override_colors/font_color = Color(1, 0.76, 0.4, 1)
theme_override_font_sizes/font_size = 14 theme_override_font_sizes/font_size = 14
autowrap_mode = 2
vertical_alignment = 1
[node name="EventLog" type="RichTextLabel" parent="HUD"] [node name="EventLog" type="RichTextLabel" parent="HUD"]
layout_mode = 1 layout_mode = 0
anchors_preset = 1 mouse_filter = 2
anchor_left = 1.0
anchor_right = 1.0
offset_left = -244.0
offset_top = 22.0
offset_right = -24.0
offset_bottom = 158.0
grow_horizontal = 0
grow_vertical = 0
bbcode_enabled = false bbcode_enabled = false
fit_content = false fit_content = false
theme_override_colors/default_color = Color(1, 1, 0.8, 1) theme_override_colors/default_color = Color(1, 1, 0.8, 1)
theme_override_font_sizes/normal_font_size = 14 theme_override_font_sizes/normal_font_size = 14
[node name="ContextPromptLabel" type="Label" parent="HUD"] [node name="ActionHintLabel" type="Label" parent="HUD/ResponsiveLayout/PromptPanel" groups=["hud_command_hints"]]
layout_mode = 1 layout_mode = 0
anchors_preset = 10 mouse_filter = 2
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -266.0
offset_top = -85.0
offset_right = 266.0
offset_bottom = -57.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.92, 0.63, 1) theme_override_colors/font_color = Color(1, 0.92, 0.63, 1)
theme_override_font_sizes/font_size = 16 theme_override_font_sizes/font_size = 16
text = "F : Distance • X : Magie • K : Familier"
horizontal_alignment = 1
vertical_alignment = 0
[node name="ContextPromptLabel" type="Label" parent="HUD" groups=["hud_command_hints"]]
layout_mode = 0
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
theme_override_font_sizes/font_size = 13
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1
[node name="HelpLabel" type="Label" parent="HUD"] [node name="HelpLabel" type="Label" parent="HUD" groups=["hud_command_hints"]]
layout_mode = 1 layout_mode = 0
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 28.0
offset_top = -37.0
offset_right = -28.0
offset_bottom = -17.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1) theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
theme_override_font_sizes/font_size = 14 theme_override_font_sizes/font_size = 14
text = "Déplacer : ZQSD / Flèches (nord-est : pavé num. 9) • Interagir : Espace ou E" text = "Déplacer ZQSD • Interagir Espace • Inventaire I • Sauvegarde V • Aide F1"
clip_text = false
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1
+17 -21
View File
@@ -35,9 +35,9 @@ anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -270.0 offset_left = -270.0
offset_top = -295.0 offset_top = -310.0
offset_right = 270.0 offset_right = 270.0
offset_bottom = 295.0 offset_bottom = 310.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_panel") theme_override_styles/panel = SubResource("StyleBox_panel")
@@ -68,30 +68,26 @@ custom_minimum_size = Vector2(0, 31)
layout_mode = 2 layout_mode = 2
placeholder_text = "Sans-Nom" placeholder_text = "Sans-Nom"
[node name="ArchetypeLabel" type="Label" parent="Panel/Layout/Fields"]
layout_mode = 2
text = "Base archetype"
[node name="ArchetypeOption" type="OptionButton" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
item_count = 3
selected = 0
popup/item_0/text = "Vanguard"
popup/item_0/id = 0
popup/item_0/metadata = "vanguard"
popup/item_1/text = "Mystic"
popup/item_1/id = 1
popup/item_1/metadata = "mystic"
popup/item_2/text = "Scout"
popup/item_2/id = 2
popup/item_2/metadata = "scout"
[node name="PetCheck" type="CheckBox" parent="Panel/Layout/Fields"] [node name="PetCheck" type="CheckBox" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 27) custom_minimum_size = Vector2(0, 27)
layout_mode = 2 layout_mode = 2
text = "Bring a pet companion" text = "Bring a pet companion"
[node name="PetDetails" type="VBoxContainer" parent="Panel/Layout/Fields"]
visible = false
layout_mode = 2
theme_override_constants/separation = 4
[node name="PetNameEdit" type="LineEdit" parent="Panel/Layout/Fields/PetDetails"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
placeholder_text = "Pet name (Familier)"
[node name="PetSpeciesEdit" type="LineEdit" parent="Panel/Layout/Fields/PetDetails"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
placeholder_text = "Nature / species (Animal)"
[node name="SeedLabel" type="Label" parent="Panel/Layout/Fields"] [node name="SeedLabel" type="Label" parent="Panel/Layout/Fields"]
layout_mode = 2 layout_mode = 2
text = "Generation seed" text = "Generation seed"
+4 -1
View File
@@ -1,8 +1,9 @@
[gd_scene load_steps=4 format=3] [gd_scene load_steps=5 format=3]
[ext_resource type="Script" path="res://scripts/presentation/menu/main_menu.gd" id="1_menu"] [ext_resource type="Script" path="res://scripts/presentation/menu/main_menu.gd" id="1_menu"]
[ext_resource type="PackedScene" path="res://scenes/menu/CharacterCreation.tscn" id="2_creation"] [ext_resource type="PackedScene" path="res://scenes/menu/CharacterCreation.tscn" id="2_creation"]
[ext_resource type="PackedScene" path="res://scenes/ui/CatalogBrowser.tscn" id="3_catalog"] [ext_resource type="PackedScene" path="res://scenes/ui/CatalogBrowser.tscn" id="3_catalog"]
[ext_resource type="PackedScene" path="res://scenes/ui/SaveLoadPanel.tscn" id="4_save_load"]
[sub_resource type="StyleBoxFlat" id="StyleBox_menu"] [sub_resource type="StyleBoxFlat" id="StyleBox_menu"]
bg_color = Color(0.025, 0.04, 0.075, 0.96) bg_color = Color(0.025, 0.04, 0.075, 0.96)
@@ -127,3 +128,5 @@ autowrap_mode = 2
[node name="CharacterCreation" parent="." instance=ExtResource("2_creation")] [node name="CharacterCreation" parent="." instance=ExtResource("2_creation")]
[node name="CatalogBrowser" parent="." instance=ExtResource("3_catalog")] [node name="CatalogBrowser" parent="." instance=ExtResource("3_catalog")]
[node name="SaveLoadPanel" parent="." instance=ExtResource("4_save_load")]
+78
View File
@@ -0,0 +1,78 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/achievement_panel.gd" id="1_achievement"]
[sub_resource type="StyleBoxFlat" id="StyleBox_achievement_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.96, 0.71, 0.3, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="AchievementPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -290.0
offset_top = -195.0
offset_right = 290.0
offset_bottom = 195.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_achievement_panel")
script = ExtResource("1_achievement")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250.0
offset_top = 18.0
offset_right = 250.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 22
text = "Succès"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -52.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17
[node name="Help" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -250.0
offset_top = -40.0
offset_right = 250.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 16
text = "Entrée — Réclamer le coffre fan Échap / L — Fermer"
horizontal_alignment = 1
+78
View File
@@ -0,0 +1,78 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/audience_panel.gd" id="1_audience"]
[sub_resource type="StyleBoxFlat" id="StyleBox_audience_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.92, 0.35, 0.64, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="AudiencePanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -285.0
offset_top = -180.0
offset_right = 285.0
offset_bottom = 180.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_audience_panel")
script = ExtResource("1_audience")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250.0
offset_top = 18.0
offset_right = 250.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.55, 0.78, 1)
theme_override_font_sizes/font_size = 22
text = "Audience"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.96, 0.92, 1, 1)
theme_override_font_sizes/normal_font_size = 17
[node name="Help" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -250.0
offset_top = -40.0
offset_right = 250.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.55, 0.78, 1)
theme_override_font_sizes/font_size = 16
text = "U / Échap — Fermer"
horizontal_alignment = 1
+27 -28
View File
@@ -1,18 +1,15 @@
[gd_scene load_steps=3 format=3] [gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://scripts/presentation/character_panel.gd" id="1_character"] [ext_resource type="Script" path="res://scripts/presentation/character_panel.gd" id="1_character"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png" id="2_panel"]
[sub_resource type="StyleBoxFlat" id="StyleBox_character_panel"] [sub_resource type="StyleBoxTexture" id="StyleBox_character_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97) texture = ExtResource("2_panel")
border_width_left = 3 texture_margin_left = 10.0
border_width_top = 3 texture_margin_top = 10.0
border_width_right = 3 texture_margin_right = 10.0
border_width_bottom = 3 texture_margin_bottom = 10.0
border_color = Color(0.66, 0.82, 0.42, 0.95) modulate_color = Color(0.22, 0.2, 0.16, 0.98)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="CharacterPanel" type="PanelContainer"] [node name="CharacterPanel" type="PanelContainer"]
visible = false visible = false
@@ -22,10 +19,10 @@ anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -220.0 offset_left = -360.0
offset_top = -170.0 offset_top = -320.0
offset_right = 220.0 offset_right = 360.0
offset_bottom = 170.0 offset_bottom = 320.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_character_panel") theme_override_styles/panel = SubResource("StyleBox_character_panel")
@@ -36,13 +33,15 @@ layout_mode = 1
anchors_preset = 10 anchors_preset = 10
anchor_left = 0.5 anchor_left = 0.5
anchor_right = 0.5 anchor_right = 0.5
offset_left = -185.0 offset_left = -310.0
offset_top = 18.0 offset_top = 22.0
offset_right = 185.0 offset_right = 310.0
offset_bottom = 46.0 offset_bottom = 54.0
grow_horizontal = 2 grow_horizontal = 2
theme_override_colors/font_color = Color(0.75, 0.94, 0.55, 1) theme_override_colors/font_color = Color(1, 0.88, 0.52, 1)
theme_override_font_sizes/font_size = 21 theme_override_colors/font_outline_color = Color(0.08, 0.045, 0.015, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1 horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."] [node name="Body" type="RichTextLabel" parent="."]
@@ -50,11 +49,11 @@ layout_mode = 1
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
offset_left = 30.0 offset_left = 42.0
offset_top = 62.0 offset_top = 76.0
offset_right = -30.0 offset_right = -42.0
offset_bottom = -24.0 offset_bottom = -30.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.95, 0.93, 0.8, 1)
theme_override_font_sizes/normal_font_size = 17 theme_override_font_sizes/normal_font_size = 18
+82
View File
@@ -0,0 +1,82 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/death_panel.gd" id="1_death"]
[sub_resource type="StyleBoxFlat" id="StyleBox_death_panel"]
bg_color = Color(0.08, 0.015, 0.02, 0.98)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.9, 0.2, 0.18, 0.98)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
content_margin_left = 32.0
content_margin_top = 22.0
content_margin_right = 32.0
content_margin_bottom = 22.0
[node name="DeathPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -340.0
offset_top = -230.0
offset_right = 340.0
offset_bottom = 230.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_death_panel")
script = ExtResource("1_death")
[node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 2
theme_override_constants/separation = 16
[node name="Title" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 42)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.38, 0.34, 1)
theme_override_font_sizes/font_size = 27
text = "VOUS ÊTES MORT"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="Layout"]
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/default_color = Color(1, 0.91, 0.9, 1)
theme_override_font_sizes/normal_font_size = 18
[node name="Hint" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.78, 0.72, 1)
theme_override_font_sizes/font_size = 15
horizontal_alignment = 1
[node name="Actions" type="HBoxContainer" parent="Layout"]
layout_mode = 2
theme_override_constants/separation = 12
alignment = 1
[node name="LoadButton" type="Button" parent="Layout/Actions"]
custom_minimum_size = Vector2(170, 42)
layout_mode = 2
text = "CHARGER"
[node name="NewRunButton" type="Button" parent="Layout/Actions"]
custom_minimum_size = Vector2(190, 42)
layout_mode = 2
text = "NOUVELLE PARTIE"
[node name="MenuButton" type="Button" parent="Layout/Actions"]
custom_minimum_size = Vector2(150, 42)
layout_mode = 2
text = "MENU PRINCIPAL"
+32 -52
View File
@@ -13,6 +13,10 @@ corner_radius_top_left = 8
corner_radius_top_right = 8 corner_radius_top_right = 8
corner_radius_bottom_right = 8 corner_radius_bottom_right = 8
corner_radius_bottom_left = 8 corner_radius_bottom_left = 8
content_margin_left = 36.0
content_margin_top = 28.0
content_margin_right = 36.0
content_margin_bottom = 28.0
[node name="DialoguePanel" type="PanelContainer"] [node name="DialoguePanel" type="PanelContainer"]
visible = false visible = false
@@ -22,70 +26,46 @@ anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -300.0 offset_left = -480.0
offset_top = -205.0 offset_top = -360.0
offset_right = 300.0 offset_right = 480.0
offset_bottom = 205.0 offset_bottom = 360.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_dialogue_panel") theme_override_styles/panel = SubResource("StyleBox_dialogue_panel")
script = ExtResource("1_dialogue") script = ExtResource("1_dialogue")
[node name="Title" type="Label" parent="."] [node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 1 layout_mode = 2
anchors_preset = 10 theme_override_constants/separation = 16
anchor_left = 0.5
anchor_right = 0.5 [node name="Title" type="Label" parent="Layout"]
offset_left = -270.0 custom_minimum_size = Vector2(0, 42)
offset_top = 18.0 layout_mode = 2
offset_right = 270.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.55, 0.9, 1, 1) theme_override_colors/font_color = Color(0.55, 0.9, 1, 1)
theme_override_font_sizes/font_size = 21 theme_override_font_sizes/font_size = 24
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="."] [node name="Body" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 300)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 58.0
offset_right = -30.0
offset_bottom = -175.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 18 theme_override_font_sizes/normal_font_size = 20
[node name="Entries" type="RichTextLabel" parent="."] [node name="Entries" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 190)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 238.0
offset_right = -30.0
offset_bottom = -48.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(1, 0.9, 0.5, 1) theme_override_colors/default_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/normal_font_size = 17 theme_override_font_sizes/normal_font_size = 19
[node name="Help" type="Label" parent="."] [node name="Help" type="Label" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 34)
anchors_preset = 10 layout_mode = 2
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -270.0
offset_top = -42.0
offset_right = 270.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.55, 0.9, 1, 1) theme_override_colors/font_color = Color(0.55, 0.9, 1, 1)
theme_override_font_sizes/font_size = 16 theme_override_font_sizes/font_size = 17
text = "↑/↓ Choisir Entrée Confirmer Échap Partir" text = "↑/↓ Choisir Entrée Confirmer Échap Partir"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
+32 -52
View File
@@ -13,6 +13,10 @@ corner_radius_top_left = 8
corner_radius_top_right = 8 corner_radius_top_right = 8
corner_radius_bottom_right = 8 corner_radius_bottom_right = 8
corner_radius_bottom_left = 8 corner_radius_bottom_left = 8
content_margin_left = 36.0
content_margin_top = 28.0
content_margin_right = 36.0
content_margin_bottom = 28.0
[node name="EventPanel" type="PanelContainer"] [node name="EventPanel" type="PanelContainer"]
visible = false visible = false
@@ -22,70 +26,46 @@ anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -300.0 offset_left = -480.0
offset_top = -205.0 offset_top = -360.0
offset_right = 300.0 offset_right = 480.0
offset_bottom = 205.0 offset_bottom = 360.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_event_panel") theme_override_styles/panel = SubResource("StyleBox_event_panel")
script = ExtResource("1_event") script = ExtResource("1_event")
[node name="Title" type="Label" parent="."] [node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 1 layout_mode = 2
anchors_preset = 10 theme_override_constants/separation = 16
anchor_left = 0.5
anchor_right = 0.5 [node name="Title" type="Label" parent="Layout"]
offset_left = -270.0 custom_minimum_size = Vector2(0, 42)
offset_top = 18.0 layout_mode = 2
offset_right = 270.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.84, 0.42, 1) theme_override_colors/font_color = Color(1, 0.84, 0.42, 1)
theme_override_font_sizes/font_size = 21 theme_override_font_sizes/font_size = 24
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="."] [node name="Body" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 300)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 58.0
offset_right = -30.0
offset_bottom = -175.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 18 theme_override_font_sizes/normal_font_size = 20
[node name="Entries" type="RichTextLabel" parent="."] [node name="Entries" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 190)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 238.0
offset_right = -30.0
offset_bottom = -48.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(1, 0.9, 0.5, 1) theme_override_colors/default_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/normal_font_size = 17 theme_override_font_sizes/normal_font_size = 19
[node name="Help" type="Label" parent="."] [node name="Help" type="Label" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 34)
anchors_preset = 10 layout_mode = 2
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -270.0
offset_top = -42.0
offset_right = 270.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.84, 0.42, 1) theme_override_colors/font_color = Color(1, 0.84, 0.42, 1)
theme_override_font_sizes/font_size = 16 theme_override_font_sizes/font_size = 17
text = "↑/↓ Choisir Entrée Confirmer Échap Partir" text = "↑/↓ Choisir Entrée Confirmer Échap Partir"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
+78
View File
@@ -0,0 +1,78 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/faction_panel.gd" id="1_faction"]
[sub_resource type="StyleBoxFlat" id="StyleBox_faction_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.82, 0.66, 0.25, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="FactionPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -285.0
offset_top = -180.0
offset_right = 285.0
offset_bottom = 180.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_faction_panel")
script = ExtResource("1_faction")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250.0
offset_top = 18.0
offset_right = 250.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 22
text = "Guerre des factions"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.96, 0.92, 1, 1)
theme_override_font_sizes/normal_font_size = 17
[node name="Help" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -250.0
offset_top = -40.0
offset_right = 250.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 16
text = "M / Échap — Fermer"
horizontal_alignment = 1
+61
View File
@@ -0,0 +1,61 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/help_panel.gd" id="1_help"]
[sub_resource type="StyleBoxFlat" id="StyleBox_help"]
bg_color = Color(0.035, 0.055, 0.09, 0.98)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.62, 0.84, 0.98, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="HelpPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -340.0
offset_top = -245.0
offset_right = 340.0
offset_bottom = 245.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_help")
script = ExtResource("1_help")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -280.0
offset_top = 16.0
offset_right = 280.0
offset_bottom = 44.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.72, 0.92, 1, 1)
theme_override_font_sizes/font_size = 24
text = "AIDE — COMMANDES"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 42.0
offset_top = 60.0
offset_right = -42.0
offset_bottom = -26.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.96, 1, 1)
theme_override_font_sizes/normal_font_size = 16
+43 -25
View File
@@ -13,6 +13,10 @@ corner_radius_top_left = 8
corner_radius_top_right = 8 corner_radius_top_right = 8
corner_radius_bottom_right = 8 corner_radius_bottom_right = 8
corner_radius_bottom_left = 8 corner_radius_bottom_left = 8
content_margin_left = 24.0
content_margin_top = 18.0
content_margin_right = 24.0
content_margin_bottom = 18.0
[node name="InventoryPanel" type="PanelContainer"] [node name="InventoryPanel" type="PanelContainer"]
visible = false visible = false
@@ -23,43 +27,57 @@ anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -400.0 offset_left = -400.0
offset_top = -235.0 offset_top = -260.0
offset_right = 400.0 offset_right = 400.0
offset_bottom = 235.0 offset_bottom = 260.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_inventory_panel") theme_override_styles/panel = SubResource("StyleBox_inventory_panel")
script = ExtResource("1_inventory") script = ExtResource("1_inventory")
[node name="Title" type="Label" parent="."] [node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 1 layout_mode = 2
anchors_preset = 10 theme_override_constants/separation = 12
anchor_left = 0.5
anchor_right = 0.5 [node name="Title" type="Label" parent="Layout"]
offset_left = -350.0 custom_minimum_size = Vector2(0, 34)
offset_top = 18.0 layout_mode = 2
offset_right = 350.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1) theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 24 theme_override_font_sizes/font_size = 24
text = "INVENTORY" text = "INVENTAIRE"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
[node name="Entries" type="RichTextLabel" parent="."] [node name="Columns" type="HBoxContainer" parent="Layout"]
layout_mode = 0 layout_mode = 2
offset_left = 28.0 size_flags_vertical = 3
offset_top = 66.0 theme_override_constants/separation = 20
offset_right = 355.0
offset_bottom = 400.0 [node name="Entries" type="RichTextLabel" parent="Layout/Columns"]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 18 theme_override_font_sizes/normal_font_size = 18
scroll_active = true
scroll_following = false
[node name="Details" type="RichTextLabel" parent="."] [node name="Details" type="RichTextLabel" parent="Layout/Columns"]
layout_mode = 0 custom_minimum_size = Vector2(400, 0)
offset_left = 380.0 layout_mode = 2
offset_top = 66.0 size_flags_horizontal = 3
offset_right = 770.0 size_flags_vertical = 3
offset_bottom = 420.0
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17 theme_override_font_sizes/normal_font_size = 17
scroll_active = true
scroll_following = false
[node name="Footer" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 28)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 16
text = "↑/↓ Sélectionner E Équiper U Utiliser D Jeter I Fermer"
horizontal_alignment = 1
vertical_alignment = 1
+20 -34
View File
@@ -13,6 +13,10 @@ corner_radius_top_left = 8
corner_radius_top_right = 8 corner_radius_top_right = 8
corner_radius_bottom_right = 8 corner_radius_bottom_right = 8
corner_radius_bottom_left = 8 corner_radius_bottom_left = 8
content_margin_left = 30.0
content_margin_top = 18.0
content_margin_right = 30.0
content_margin_bottom = 18.0
[node name="LootPanel" type="PanelContainer"] [node name="LootPanel" type="PanelContainer"]
visible = false visible = false
@@ -31,49 +35,31 @@ grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_loot_panel") theme_override_styles/panel = SubResource("StyleBox_loot_panel")
script = ExtResource("1_loot") script = ExtResource("1_loot")
[node name="Title" type="Label" parent="."] [node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 1 layout_mode = 2
anchors_preset = 10 theme_override_constants/separation = 14
anchor_left = 0.5
anchor_right = 0.5 [node name="Title" type="Label" parent="Layout"]
offset_left = -180.0 custom_minimum_size = Vector2(0, 34)
offset_top = 18.0 layout_mode = 2
offset_right = 180.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1) theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 24 theme_override_font_sizes/font_size = 24
text = "COFFRE OUVERT" text = "COFFRE OUVERT"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
[node name="Entries" type="RichTextLabel" parent="."] [node name="Entries" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 148)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 66.0
offset_right = -30.0
offset_bottom = -70.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 19 theme_override_font_sizes/normal_font_size = 19
[node name="TakeAll" type="Label" parent="."] [node name="TakeAll" type="Label" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 30)
anchors_preset = 10 layout_mode = 2
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -180.0
offset_top = -52.0
offset_right = 180.0
offset_bottom = -22.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1) theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 17 theme_override_font_sizes/font_size = 17
text = "Entrée / Espace — Tout prendre" text = "Entrée / Espace — Tout prendre"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
+66
View File
@@ -0,0 +1,66 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/minimap.gd" id="1_minimap"]
[sub_resource type="StyleBoxFlat" id="StyleBox_minimap"]
bg_color = Color(0.045, 0.035, 0.025, 0.96)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.67, 0.48, 0.19, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
shadow_color = Color(0, 0, 0, 0.55)
shadow_size = 5
[node name="Minimap" type="Control"]
layout_mode = 1
offset_right = 280.0
offset_bottom = 300.0
mouse_filter = 2
script = ExtResource("1_minimap")
[node name="Frame" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBox_minimap")
show_behind_parent = true
[node name="Caption" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -120.0
offset_top = 7.0
offset_right = 120.0
offset_bottom = 29.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.86, 0.78, 0.58, 1)
theme_override_font_sizes/font_size = 13
text = "CARTE — TAB"
horizontal_alignment = 1
vertical_alignment = 1
mouse_filter = 2
[node name="MapRegion" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 14.0
offset_top = 40.0
offset_right = -14.0
offset_bottom = -14.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
clip_contents = true
+78
View File
@@ -0,0 +1,78 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/moderation_panel.gd" id="1_moderation"]
[sub_resource type="StyleBoxFlat" id="StyleBox_moderation_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.95, 0.36, 0.32, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="ModerationPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -285.0
offset_top = -180.0
offset_right = 285.0
offset_bottom = 180.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_moderation_panel")
script = ExtResource("1_moderation")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250.0
offset_top = 18.0
offset_right = 250.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.5, 0.45, 1)
theme_override_font_sizes/font_size = 22
text = "Système et Syndicat"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(1, 0.93, 0.93, 1)
theme_override_font_sizes/normal_font_size = 17
[node name="Help" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -250.0
offset_top = -40.0
offset_right = 250.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.5, 0.45, 1)
theme_override_font_sizes/font_size = 16
text = "N / Échap — Fermer"
horizontal_alignment = 1
+61
View File
@@ -0,0 +1,61 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/options_panel.gd" id="1_options"]
[sub_resource type="StyleBoxFlat" id="StyleBox_options"]
bg_color = Color(0.035, 0.055, 0.09, 0.98)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.3, 0.78, 0.92, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="OptionsPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -290.0
offset_top = -180.0
offset_right = 290.0
offset_bottom = 180.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_options")
script = ExtResource("1_options")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -240.0
offset_top = 18.0
offset_right = 240.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.5, 0.9, 1, 1)
theme_override_font_sizes/font_size = 24
text = "OPTIONS & ACCESSIBILITÉ"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 36.0
offset_top = 72.0
offset_right = -36.0
offset_bottom = -32.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.96, 1, 1)
theme_override_font_sizes/normal_font_size = 18
+60
View File
@@ -0,0 +1,60 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/progression_choice_panel.gd" id="1_panel"]
[sub_resource type="StyleBoxFlat" id="StyleBox_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.98)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.96, 0.76, 0.28, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="ProgressionChoicePanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -360.0
offset_top = -220.0
offset_right = 360.0
offset_bottom = 220.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_panel")
script = ExtResource("1_panel")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -320.0
offset_top = 18.0
offset_right = 320.0
offset_bottom = 48.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.96, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 21
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 28.0
offset_top = 62.0
offset_right = -28.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 16
+32 -52
View File
@@ -13,6 +13,10 @@ corner_radius_top_left = 8
corner_radius_top_right = 8 corner_radius_top_right = 8
corner_radius_bottom_right = 8 corner_radius_bottom_right = 8
corner_radius_bottom_left = 8 corner_radius_bottom_left = 8
content_margin_left = 36.0
content_margin_top = 28.0
content_margin_right = 36.0
content_margin_bottom = 28.0
[node name="QuestPanel" type="PanelContainer"] [node name="QuestPanel" type="PanelContainer"]
visible = false visible = false
@@ -22,70 +26,46 @@ anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -300.0 offset_left = -480.0
offset_top = -205.0 offset_top = -360.0
offset_right = 300.0 offset_right = 480.0
offset_bottom = 205.0 offset_bottom = 360.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_quest_panel") theme_override_styles/panel = SubResource("StyleBox_quest_panel")
script = ExtResource("1_quest") script = ExtResource("1_quest")
[node name="Title" type="Label" parent="."] [node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 1 layout_mode = 2
anchors_preset = 10 theme_override_constants/separation = 16
anchor_left = 0.5
anchor_right = 0.5 [node name="Title" type="Label" parent="Layout"]
offset_left = -270.0 custom_minimum_size = Vector2(0, 42)
offset_top = 18.0 layout_mode = 2
offset_right = 270.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.55, 1, 0.67, 1) theme_override_colors/font_color = Color(0.55, 1, 0.67, 1)
theme_override_font_sizes/font_size = 21 theme_override_font_sizes/font_size = 24
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="."] [node name="Body" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 300)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 58.0
offset_right = -30.0
offset_bottom = -175.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1) theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17 theme_override_font_sizes/normal_font_size = 19
[node name="Entries" type="RichTextLabel" parent="."] [node name="Entries" type="RichTextLabel" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 190)
anchors_preset = 15 layout_mode = 2
anchor_right = 1.0 size_flags_vertical = 3
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 220.0
offset_right = -30.0
offset_bottom = -48.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.7, 1, 0.75, 1) theme_override_colors/default_color = Color(0.7, 1, 0.75, 1)
theme_override_font_sizes/normal_font_size = 17 theme_override_font_sizes/normal_font_size = 19
[node name="Help" type="Label" parent="."] [node name="Help" type="Label" parent="Layout"]
layout_mode = 1 custom_minimum_size = Vector2(0, 34)
anchors_preset = 10 layout_mode = 2
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -270.0
offset_top = -42.0
offset_right = 270.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.55, 1, 0.67, 1) theme_override_colors/font_color = Color(0.55, 1, 0.67, 1)
theme_override_font_sizes/font_size = 16 theme_override_font_sizes/font_size = 17
text = "↑/↓ Choisir Entrée Accepter A Abandonner Échap Fermer" text = "↑/↓ Choisir Entrée Accepter A Abandonner Échap Fermer"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1
+60
View File
@@ -0,0 +1,60 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/race_class_choice_panel.gd" id="1_panel"]
[sub_resource type="StyleBoxFlat" id="StyleBox_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.99)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.96, 0.76, 0.28, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
content_margin_left = 28.0
content_margin_top = 22.0
content_margin_right = 28.0
content_margin_bottom = 22.0
[node name="RaceClassChoicePanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -390.0
offset_top = -300.0
offset_right = 390.0
offset_bottom = 300.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_panel")
script = ExtResource("1_panel")
[node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 2
theme_override_constants/separation = 12
[node name="Title" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_colors/font_color = Color(0.96, 0.82, 0.42, 1)
theme_override_font_sizes/font_size = 23
horizontal_alignment = 1
[node name="Intro" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 28)
layout_mode = 2
autowrap_mode = 2
theme_override_colors/font_color = Color(0.8, 0.88, 1, 1)
horizontal_alignment = 1
[node name="Options" type="RichTextLabel" parent="Layout"]
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 16
+78
View File
@@ -0,0 +1,78 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/recap_panel.gd" id="1_recap"]
[sub_resource type="StyleBoxFlat" id="StyleBox_recap_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.4, 0.75, 1, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="RecapPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -285.0
offset_top = -180.0
offset_right = 285.0
offset_bottom = 180.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_recap_panel")
script = ExtResource("1_recap")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250.0
offset_top = 18.0
offset_right = 250.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.5, 0.82, 1, 1)
theme_override_font_sizes/font_size = 22
text = "Récapitulatif"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.9, 0.96, 1, 1)
theme_override_font_sizes/normal_font_size = 17
[node name="Help" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -250.0
offset_top = -40.0
offset_right = 250.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.5, 0.82, 1, 1)
theme_override_font_sizes/font_size = 16
text = "Y / Échap — Fermer"
horizontal_alignment = 1
+95
View File
@@ -0,0 +1,95 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/save_load_panel.gd" id="1_script"]
[sub_resource type="StyleBoxFlat" id="StyleBox_panel"]
bg_color = Color(0.025, 0.04, 0.075, 0.98)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.25, 0.48, 0.62, 0.9)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
content_margin_left = 32.0
content_margin_top = 28.0
content_margin_right = 32.0
content_margin_bottom = 28.0
[node name="SaveLoadPanel" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 0
script = ExtResource("1_script")
[node name="Panel" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -260.0
offset_top = -240.0
offset_right = 260.0
offset_bottom = 240.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_panel")
[node name="Layout" type="VBoxContainer" parent="Panel"]
layout_mode = 2
theme_override_constants/separation = 12
[node name="Title" type="Label" parent="Panel/Layout"]
layout_mode = 2
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
theme_override_font_sizes/font_size = 26
horizontal_alignment = 1
text = "CHARGER UNE PARTIE"
[node name="Slots" type="VBoxContainer" parent="Panel/Layout"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Slot1" type="Button" parent="Panel/Layout/Slots"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
text = "SLOT 1"
[node name="Slot2" type="Button" parent="Panel/Layout/Slots"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
text = "SLOT 2"
[node name="Slot3" type="Button" parent="Panel/Layout/Slots"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
text = "SLOT 3"
[node name="Slot4" type="Button" parent="Panel/Layout/Slots"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
text = "SLOT 4"
[node name="Slot5" type="Button" parent="Panel/Layout/Slots"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
text = "SLOT 5"
[node name="Status" type="Label" parent="Panel/Layout"]
custom_minimum_size = Vector2(0, 36)
layout_mode = 2
autowrap_mode = 2
horizontal_alignment = 1
[node name="CancelButton" type="Button" parent="Panel/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "RETOUR"
+61
View File
@@ -0,0 +1,61 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/victory_panel.gd" id="1_victory"]
[sub_resource type="StyleBoxFlat" id="StyleBox_victory_panel"]
bg_color = Color(0.035, 0.1, 0.08, 0.98)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.95, 0.78, 0.3, 0.98)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="VictoryPanel" type="PanelContainer"]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -310.0
offset_top = -190.0
offset_right = 310.0
offset_bottom = 190.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_victory_panel")
script = ExtResource("1_victory")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -260.0
offset_top = 22.0
offset_right = 260.0
offset_bottom = 54.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.82, 0.35, 1)
theme_override_font_sizes/font_size = 27
text = "VICTOIRE"
horizontal_alignment = 1
[node name="Body" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 40.0
offset_top = 75.0
offset_right = -40.0
offset_bottom = -34.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/default_color = Color(0.94, 1, 0.9, 1)
theme_override_font_sizes/normal_font_size = 18
+85
View File
@@ -0,0 +1,85 @@
#!/usr/bin/env bash
# Export the Linux desktop build and, unless SKIP_SMOKE=1, prove it starts under
# X11. Artifacts are intentionally ignored and can be recreated at any time.
set -euo pipefail
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$root_dir"
GODOT_BIN="${GODOT_BIN:-/snap/bin/godot4}"
if [[ ! -x "$GODOT_BIN" ]]; then
GODOT_BIN="$(command -v godot4 || command -v godot || true)"
fi
if [[ -z "$GODOT_BIN" ]]; then
echo "build-linux: Godot executable not found; set GODOT_BIN." >&2
exit 2
fi
preset="Linux/X11"
output="build/linux/DungeonCrawlerWorld.x86_64"
godot_version="$("$GODOT_BIN" --version)"
template_version="${godot_version%%.official.*}"
if [[ -n "${GODOT_EXPORT_TEMPLATES_DIR:-}" ]]; then
templates_dir="$GODOT_EXPORT_TEMPLATES_DIR"
else
# Native and Flatpak Godot use these roots. The Snap owns its isolated
# user-data directory, so query it rather than incorrectly using this shell's HOME.
templates_dir="$HOME/.local/share/godot/export_templates/$template_version"
if [[ "$GODOT_BIN" == /snap/* ]] && command -v snap >/dev/null 2>&1; then
snap_data="$(snap run --shell godot4 -c 'printf %s "$SNAP_USER_DATA"' 2>/dev/null || true)"
if [[ -n "$snap_data" ]]; then
templates_dir="$snap_data/.local/share/godot/export_templates/$template_version"
fi
elif [[ -n "${XDG_DATA_HOME:-}" ]]; then
templates_dir="$XDG_DATA_HOME/godot/export_templates/$template_version"
fi
fi
if [[ ! -f "$templates_dir/linux_release.x86_64" ]]; then
echo "build-linux: missing Godot export templates for $preset at $templates_dir (expected linux_release.x86_64). Install templates matching $template_version, or set GODOT_EXPORT_TEMPLATES_DIR." >&2
exit 2
fi
mkdir -p "$(dirname "$output")"
rm -f "$output" "$output.pck"
"$GODOT_BIN" --headless --path . --export-release "$preset" "$output"
if [[ ! -x "$output" ]]; then
echo "build-linux: export did not create an executable artifact at $output." >&2
exit 1
fi
if [[ ! -s "$output" ]]; then
echo "build-linux: Linux artifact is empty: $output." >&2
exit 1
fi
if [[ "${SKIP_SMOKE:-0}" == "1" ]]; then
echo "build-linux: exported $output (smoke skipped by SKIP_SMOKE=1)"
exit 0
fi
runner=()
if [[ -z "${DISPLAY:-}" ]]; then
if ! command -v xvfb-run >/dev/null 2>&1; then
echo "build-linux: X11 smoke unavailable: DISPLAY is unset and xvfb-run is not installed." >&2
exit 2
fi
runner=(xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24")
fi
smoke_log="build/linux/smoke.log"
# Capture mode gives the deterministic test fixture a graceful exit. Exported
# PCK resources are read-only, so the capture is only an exit seam; startup
# success and an error-free log are the portable release-smoke contract.
set +e
timeout --foreground 8s "${runner[@]}" "./$output" -- --capture >"$smoke_log" 2>&1
smoke_status=$?
set -e
if [[ "$smoke_status" -ne 0 ]]; then
echo "build-linux: X11 smoke failed with status $smoke_status; see $smoke_log." >&2
exit "$smoke_status"
fi
if grep -Eq 'SCRIPT ERROR|Parse Error|^ERROR:' "$smoke_log"; then
echo "build-linux: X11 smoke reported a Godot application error; see $smoke_log." >&2
exit 1
fi
echo "build-linux: exported and X11-smoke-tested $output"
+68
View File
@@ -0,0 +1,68 @@
#!/usr/bin/env bash
# Export the Windows desktop build. Linux can validate the generated file
# manifest, but it deliberately does not claim to execute the Windows runtime.
set -euo pipefail
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$root_dir"
GODOT_BIN="${GODOT_BIN:-/snap/bin/godot4}"
if [[ ! -x "$GODOT_BIN" ]]; then
GODOT_BIN="$(command -v godot4 || command -v godot || true)"
fi
if [[ -z "$GODOT_BIN" ]]; then
echo "build-windows: Godot executable not found; set GODOT_BIN." >&2
exit 2
fi
preset="Windows Desktop"
output="build/windows/DungeonCrawlerWorld.exe"
godot_version="$("$GODOT_BIN" --version)"
template_version="${godot_version%%.official.*}"
if [[ -n "${GODOT_EXPORT_TEMPLATES_DIR:-}" ]]; then
templates_dir="$GODOT_EXPORT_TEMPLATES_DIR"
else
# Native and Flatpak Godot use these roots. The Snap owns its isolated
# user-data directory, so query it rather than incorrectly using this shell's HOME.
templates_dir="$HOME/.local/share/godot/export_templates/$template_version"
if [[ "$GODOT_BIN" == /snap/* ]] && command -v snap >/dev/null 2>&1; then
snap_data="$(snap run --shell godot4 -c 'printf %s "$SNAP_USER_DATA"' 2>/dev/null || true)"
if [[ -n "$snap_data" ]]; then
templates_dir="$snap_data/.local/share/godot/export_templates/$template_version"
fi
elif [[ -n "${XDG_DATA_HOME:-}" ]]; then
templates_dir="$XDG_DATA_HOME/godot/export_templates/$template_version"
fi
fi
if [[ ! -f "$templates_dir/windows_release_x86_64.exe" ]]; then
echo "build-windows: missing Godot export templates for $preset at $templates_dir (expected windows_release_x86_64.exe). Install templates matching $template_version, or set GODOT_EXPORT_TEMPLATES_DIR." >&2
exit 2
fi
mkdir -p "$(dirname "$output")"
rm -f "$output" "$output.pck" "$output.manifest"
"$GODOT_BIN" --headless --path . --export-release "$preset" "$output"
if [[ ! -s "$output" ]]; then
echo "build-windows: export did not create a non-empty executable at $output." >&2
exit 1
fi
# Godot may embed the PCK or emit a sidecar. Capture the exact distribution
# manifest so release automation can ship every generated file without guessing.
manifest="$output.manifest"
artifact_names="$(find "$(dirname "$output")" -maxdepth 1 -type f ! -name "$(basename "$manifest")" -printf '%f\n' | LC_ALL=C sort)"
if [[ -z "$artifact_names" ]]; then
echo "build-windows: no export files found beside $output." >&2
exit 1
fi
{
echo "# Generated by scripts/build-windows.sh; runtime execution is not validated on Linux."
printf '%s\n' "$artifact_names"
} >"$manifest"
if ! grep -Fxq "$(basename "$output")" "$manifest"; then
echo "build-windows: artifact manifest does not include $(basename "$output")." >&2
exit 1
fi
echo "build-windows: exported $output and validated $manifest; Windows runtime was not executed on this host."
+44 -14
View File
@@ -13,9 +13,16 @@ import sys
import zlib import zlib
from pathlib import Path from pathlib import Path
WIDTH = 1280 REFERENCE_WIDTH = 1920
HEIGHT = 720 REFERENCE_HEIGHT = 1080
VIEWPORT = (256, 40, 1024, 678) EXPECTED_DIMENSIONS = {
"visual-check.png": (REFERENCE_WIDTH, REFERENCE_HEIGHT),
"visual-check-exit.png": (REFERENCE_WIDTH, REFERENCE_HEIGHT),
"visual-check-compact.png": (1280, 720),
}
# The unmasked PlayAreaFrame in the reference 1920×1080 artboard.
# This is scaled for the real 720p capture.
PLAY_AREA_REFERENCE = (498, 125, 1422, 955)
UNKNOWN = (1, 2, 5) UNKNOWN = (1, 2, 5)
# Captured explored tiles are texture modulated, so classify their blue-black # Captured explored tiles are texture modulated, so classify their blue-black
# pixels by palette range rather than expecting one flat overlay color. # pixels by palette range rather than expecting one flat overlay color.
@@ -68,8 +75,14 @@ def read_png(path: Path) -> tuple[int, int, list[bytes]]:
if header is None or not saw_iend or offset != len(data): if header is None or not saw_iend or offset != len(data):
fail("incomplete PNG") fail("incomplete PNG")
width, height, depth, color_type, compression, filtering, interlace = header width, height, depth, color_type, compression, filtering, interlace = header
if (width, height) != (WIDTH, HEIGHT): expected_dimensions = EXPECTED_DIMENSIONS.get(path.name)
fail(f"expected {WIDTH}x{HEIGHT} PNG, got {width}x{height}") if expected_dimensions is None:
fail(f"unsupported visual capture name: {path.name}")
if (width, height) != expected_dimensions:
fail(
f"expected {expected_dimensions[0]}x{expected_dimensions[1]} PNG, "
f"got {width}x{height}"
)
if depth != 8 or color_type not in (2, 6): if depth != 8 or color_type not in (2, 6):
fail("visual capture must be an 8-bit RGB or RGBA PNG") fail("visual capture must be an 8-bit RGB or RGBA PNG")
if (compression, filtering, interlace) != (0, 0, 0): if (compression, filtering, interlace) != (0, 0, 0):
@@ -140,23 +153,40 @@ def luminance(rgb: tuple[int, int, int]) -> float:
def is_visible(pixel: tuple[int, int, int]) -> bool: def is_visible(pixel: tuple[int, int, int]) -> bool:
# The unmodulated grayscale floor texture includes these neutral bright texels. # Visible terrain can be either the neutral wall texture or the brown floor
return max(pixel) - min(pixel) <= 3 and max(pixel) >= 112 # texture. The authored surface begins in a large open room, so a capture is
# not required to include a wall inside the central measurement crop.
neutral_wall = max(pixel) - min(pixel) <= 3 and max(pixel) >= 112
unmodulated_floor = pixel in {
(23, 4, 0), (23, 7, 0), (10, 10, 0), (30, 13, 0),
(4, 4, 0), (41, 23, 1), (30, 9, 0), (66, 36, 6),
}
return neutral_wall or unmodulated_floor
def is_explored(pixel: tuple[int, int, int]) -> bool: def is_explored(pixel: tuple[int, int, int]) -> bool:
# Tile texture remains visible under a blue-black fog overlay. This is the # Texture-preserving explored terrain is rendered under a blue-black fog
# dominant fog-modulated floor texel; keeping the detector exact avoids HUD # overlay. GPU blend rounding and the authored floor texture produce a
# colors and visible terrain satisfying it. # palette rather than one portable exact RGB value; accept only its dark,
return pixel == (19, 29, 39) # blue-shifted range so HUD chrome and visible brown terrain cannot match.
red, green, blue = pixel
return 4 <= red <= 14 and 7 <= green <= 22 and 16 <= blue <= 32 and blue >= green + 4 and green >= red + 3
def viewport_for(width: int, height: int) -> tuple[int, int, int, int]:
scale_x = width / REFERENCE_WIDTH
scale_y = height / REFERENCE_HEIGHT
return tuple(round(coordinate * (scale_x if index % 2 == 0 else scale_y)) for index, coordinate in enumerate(PLAY_AREA_REFERENCE))
def measure(path: Path) -> None: def measure(path: Path) -> None:
width, height = EXPECTED_DIMENSIONS[path.name]
observed = list(pixels(path)) observed = list(pixels(path))
viewport = viewport_for(width, height)
dungeon_pixels = [ dungeon_pixels = [
observed[y * WIDTH + x] observed[y * width + x]
for y in range(VIEWPORT[1], VIEWPORT[3]) for y in range(viewport[1], viewport[3])
for x in range(VIEWPORT[0], VIEWPORT[2]) for x in range(viewport[0], viewport[2])
] ]
non_black = sum(pixel != (0, 0, 0) for pixel in dungeon_pixels) non_black = sum(pixel != (0, 0, 0) for pixel in dungeon_pixels)
unknown_pixels = [pixel for pixel in dungeon_pixels if pixel == UNKNOWN] unknown_pixels = [pixel for pixel in dungeon_pixels if pixel == UNKNOWN]
+4
View File
@@ -12,6 +12,9 @@ var max_hit_points: int
# Legacy basic damage remains the unarmed/default weapon damage. # Legacy basic damage remains the unarmed/default weapon damage.
var attack_damage: int var attack_damage: int
var content_id: StringName var content_id: StringName
# Non-combat authored NPC state (including protected tourist health) persists
# alongside the actor without exposing it to normal combat resolution.
var metadata: Dictionary = {}
# Data-backed combat stats. Defaults retain the pre-C2 prototype fixtures. # Data-backed combat stats. Defaults retain the pre-C2 prototype fixtures.
var accuracy := 30 var accuracy := 30
@@ -65,6 +68,7 @@ func _init(new_id: StringName, new_cell: Vector2i, new_hit_points: int, new_atta
max_hit_points = new_hit_points max_hit_points = new_hit_points
attack_damage = new_attack_damage attack_damage = new_attack_damage
content_id = new_content_id if not new_content_id.is_empty() else new_id content_id = new_content_id if not new_content_id.is_empty() else new_id
metadata = combat_data.get("metadata", {}).duplicate(true)
accuracy = int(combat_data.get("accuracy", accuracy)) accuracy = int(combat_data.get("accuracy", accuracy))
defense = int(combat_data.get("defense", defense)) defense = int(combat_data.get("defense", defense))
armor = int(combat_data.get("armor", armor)) armor = int(combat_data.get("armor", armor))
+51 -17
View File
@@ -3,33 +3,40 @@ extends RefCounted
const CompanionStateType = preload("res://scripts/domain/entities/companion_state.gd") const CompanionStateType = preload("res://scripts/domain/entities/companion_state.gd")
const PathfindingType = preload("res://scripts/domain/ai/pathfinding.gd") const PathfindingType = preload("res://scripts/domain/ai/pathfinding.gd")
const SUPPORT_HEAL_THRESHOLD := 0.5
const SUPPORT_HEAL_RANGE := 4
const SUPPORT_HEAL_AMOUNT := 2
static func decide(companion: CompanionState, player: ActorState, enemies: Dictionary[StringName, ActorState], map: GridMapState, blocked_cells: Dictionary[Vector2i, bool] = {}) -> Dictionary: static func decide(companion: CompanionState, player: ActorState, enemies: Dictionary[StringName, ActorState], map: GridMapState, blocked_cells: Dictionary[Vector2i, bool] = {}, detected_cells: Dictionary[Vector2i, bool] = {}) -> Dictionary:
if companion == null or not companion.is_alive(): if companion == null or not companion.is_alive():
return {"kind": &"idle"} return {"kind": &"idle"}
match companion.stance: match CompanionStateType.normalize_stance(companion.stance):
CompanionStateType.Stance.FOLLOW: CompanionStateType.Stance.STAY_BACK:
return _follow(companion.actor, player, map, blocked_cells) return _follow(companion.actor, player, map, blocked_cells)
CompanionStateType.Stance.DEFEND: CompanionStateType.Stance.DEFEND_ME:
return _defend(companion.actor, player, enemies, map, blocked_cells) return _defend(companion.actor, player, enemies, map, blocked_cells)
CompanionStateType.Stance.SUPPORT: CompanionStateType.Stance.ATTACK_ON_SIGHT:
return {"kind": &"idle"} return _aggressive(companion.actor, player, enemies, map, blocked_cells, detected_cells)
_: _:
return {"kind": &"idle"} return {"kind": &"idle"}
static func _aggressive(actor: ActorState, player: ActorState, enemies: Dictionary[StringName, ActorState], map: GridMapState, blocked_cells: Dictionary[Vector2i, bool], detected_cells: Dictionary[Vector2i, bool]) -> Dictionary:
var target := _nearest_enemy(actor.cell, enemies, detected_cells)
if target == null:
return _follow(actor, player, map, blocked_cells)
if actor.cell.distance_to(target.cell) <= 1.5:
return {"kind": &"melee", "target_id": target.id}
return _move_toward(actor, target.cell, player.cell, map, blocked_cells)
static func _support(actor: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
if player.is_alive() and float(player.hit_points) / float(maxi(1, player.effective_max_hit_points())) < SUPPORT_HEAL_THRESHOLD and actor.cell.distance_to(player.cell) <= SUPPORT_HEAL_RANGE:
return {"kind": &"heal_player", "amount": SUPPORT_HEAL_AMOUNT}
return _follow(actor, player, map, blocked_cells)
static func _follow(actor: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary: static func _follow(actor: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
if actor.cell.distance_to(player.cell) <= 1.5: if actor.cell.distance_to(player.cell) <= 1.5:
return {"kind": &"idle"} return {"kind": &"idle"}
var occupied := blocked_cells.duplicate() return _move_toward(actor, player.cell, player.cell, map, blocked_cells)
occupied.erase(actor.cell)
occupied[player.cell] = true
var goals: Array[Vector2i] = []
for direction: Vector2i in PathfindingType.CARDINAL_DIRECTIONS:
var cell := player.cell + direction
if map.is_walkable(cell) and not occupied.has(cell):
goals.append(cell)
var path := PathfindingType.find_path_to_any(map, actor.cell, goals, occupied)
return {"kind": &"move", "to_cell": path.front()} if not path.is_empty() else {"kind": &"idle"}
static func _defend(actor: ActorState, player: ActorState, enemies: Dictionary[StringName, ActorState], map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary: static func _defend(actor: ActorState, player: ActorState, enemies: Dictionary[StringName, ActorState], map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
var targets: Array[ActorState] = [] var targets: Array[ActorState] = []
@@ -37,6 +44,33 @@ static func _defend(actor: ActorState, player: ActorState, enemies: Dictionary[S
if enemy.is_alive() and enemy.cell.distance_to(player.cell) <= 1.5: if enemy.is_alive() and enemy.cell.distance_to(player.cell) <= 1.5:
targets.append(enemy) targets.append(enemy)
targets.sort_custom(func(first: ActorState, second: ActorState) -> bool: return String(first.id) < String(second.id)) targets.sort_custom(func(first: ActorState, second: ActorState) -> bool: return String(first.id) < String(second.id))
if not targets.is_empty() and actor.cell.distance_to(targets[0].cell) <= 1.5: if not targets.is_empty():
if actor.cell.distance_to(targets[0].cell) <= 1.5:
return {"kind": &"melee", "target_id": targets[0].id} return {"kind": &"melee", "target_id": targets[0].id}
return _move_toward(actor, targets[0].cell, player.cell, map, blocked_cells)
return _follow(actor, player, map, blocked_cells) return _follow(actor, player, map, blocked_cells)
static func _move_toward(actor: ActorState, destination: Vector2i, player_cell: Vector2i, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
var occupied := blocked_cells.duplicate()
occupied.erase(actor.cell)
occupied[player_cell] = true
occupied[destination] = true
var goals: Array[Vector2i] = []
for direction: Vector2i in PathfindingType.CARDINAL_DIRECTIONS:
var cell := destination + direction
if map.is_walkable(cell) and not occupied.has(cell):
goals.append(cell)
var path := PathfindingType.find_path_to_any(map, actor.cell, goals, occupied)
return {"kind": &"move", "to_cell": path.front()} if not path.is_empty() else {"kind": &"idle"}
static func _nearest_enemy(origin: Vector2i, enemies: Dictionary[StringName, ActorState], detected_cells: Dictionary[Vector2i, bool]) -> ActorState:
var candidates: Array[ActorState] = []
for enemy: ActorState in enemies.values():
if enemy.is_alive() and detected_cells.has(enemy.cell):
candidates.append(enemy)
candidates.sort_custom(func(first: ActorState, second: ActorState) -> bool:
var first_distance := origin.distance_squared_to(first.cell)
var second_distance := origin.distance_squared_to(second.cell)
return String(first.id) < String(second.id) if first_distance == second_distance else first_distance < second_distance
)
return candidates[0] if not candidates.is_empty() else null
+6 -2
View File
@@ -15,7 +15,8 @@ func _init(scripted_rolls: Array[float] = []) -> void:
_rolls.assign(scripted_rolls) _rolls.assign(scripted_rolls)
func resolve_attack(attacker: ActorState, defender: ActorState, grant_xp: bool = true) -> Dictionary: func resolve_attack(attacker: ActorState, defender: ActorState, grant_xp: bool = true) -> Dictionary:
var events: Array[Dictionary] = [_event(&"attack_started", attacker, defender, {"stance": String(attacker.stance)})] var attack_method := String(attacker.metadata.get("melee_weapon_name", "mains nues" if attacker.id == &"player" else "attaque naturelle"))
var events: Array[Dictionary] = [_event(&"attack_started", attacker, defender, {"stance": String(attacker.stance), "attack_method": attack_method})]
var attack_score := attacker.accuracy - attacker.wound_severity(&"arms") * ARM_WOUND_PENALTY var attack_score := attacker.accuracy - attacker.wound_severity(&"arms") * ARM_WOUND_PENALTY
var defense_score := defender.defense * 3 - defender.wound_severity(&"legs") * LEG_WOUND_PENALTY var defense_score := defender.defense * 3 - defender.wound_severity(&"legs") * LEG_WOUND_PENALTY
if defender.stance == &"dodge": if defender.stance == &"dodge":
@@ -66,4 +67,7 @@ func _next_roll() -> float:
return clampf(_rolls.pop_front(), 0.0, 0.999999) return clampf(_rolls.pop_front(), 0.0, 0.999999)
func _event(kind: StringName, actor: ActorState, target: ActorState, payload: Dictionary) -> Dictionary: func _event(kind: StringName, actor: ActorState, target: ActorState, payload: Dictionary) -> Dictionary:
return {"kind": kind, "actor_id": actor.id, "target_id": target.id, "cell": actor.cell, "payload": payload} var full_payload := payload.duplicate(true)
full_payload["actor_content_id"] = actor.content_id
full_payload["target_content_id"] = target.content_id
return {"kind": kind, "actor_id": actor.id, "target_id": target.id, "cell": actor.cell, "payload": full_payload}
+23 -1
View File
@@ -2,6 +2,8 @@ class_name ConditionEngine
extends RefCounted extends RefCounted
const StatusEffectType = preload("res://scripts/domain/combat/status_effect.gd") const StatusEffectType = preload("res://scripts/domain/combat/status_effect.gd")
const SafeRoomServiceType = preload("res://scripts/domain/world/safe_room_service.gd")
const TouristServiceType = preload("res://scripts/domain/world/tourist_service.gd")
var diagnostics := PackedStringArray() var diagnostics := PackedStringArray()
@@ -111,6 +113,26 @@ func apply_effect(effect: Dictionary, context: Dictionary) -> Dictionary:
&"add_rep": &"add_rep":
var faction := StringName(effect.get("faction", "")) var faction := StringName(effect.get("faction", ""))
player.reputation[faction] = player.reputation.get(faction, 0) + int(effect.get("amount", 0)) player.reputation[faction] = player.reputation.get(faction, 0) + int(effect.get("amount", 0))
&"moderation_violation":
var moderation_fn: Callable = context.get("moderation_fn", Callable())
if not moderation_fn.is_valid():
return {"applied": false, "type": kind, "reason": &"missing_moderation_context"}
return moderation_fn.call(StringName(effect.get("reason", "propos_interdits")))
&"tourist_selfie", &"endanger_tourist":
var tourist_run: RunState = context.get("run_state")
var tourist_id := StringName(context.get("npc_id", ""))
if tourist_run == null or tourist_id.is_empty():
return {"applied": false, "type": kind, "reason": &"missing_tourist_context"}
var tourist_events := TouristServiceType.selfie(tourist_run, tourist_id) if kind == &"tourist_selfie" else TouristServiceType.endanger(tourist_run, tourist_id, int(effect.get("amount", 0)))
return {"applied": not tourist_events.is_empty(), "type": kind, "events": tourist_events}
&"give_item":
var run: RunState = context.get("run_state")
var npc_id: StringName = StringName(context.get("npc_id", ""))
var npc_content_id: StringName = StringName(context.get("npc_content_id", ""))
if run == null or npc_id.is_empty() or npc_content_id != SafeRoomServiceType.BOBKA_CONTENT_ID or StringName(effect.get("item", "")) != SafeRoomServiceType.RATION_ITEM_ID:
return {"applied": false, "type": kind, "reason": &"unsupported_item_grant"}
var ration_events := SafeRoomServiceType.give_bobka_ration(run, npc_id)
return {"applied": not ration_events.is_empty(), "type": kind, "events": ration_events}
&"join_party": &"join_party":
var party: PartyState = context.get("party") var party: PartyState = context.get("party")
var recruit: ActorState = context.get("recruit") var recruit: ActorState = context.get("recruit")
@@ -119,7 +141,7 @@ func apply_effect(effect: Dictionary, context: Dictionary) -> Dictionary:
return {"applied": false, "type": kind, "reason": &"missing_party_context"} return {"applied": false, "type": kind, "reason": &"missing_party_context"}
var result := party.recruit(recruit, player.cell, map, context.get("blocked_cells", {})) var result := party.recruit(recruit, player.cell, map, context.get("blocked_cells", {}))
return {"applied": bool(result.get("accepted", false)), "type": kind, "result": result} return {"applied": bool(result.get("accepted", false)), "type": kind, "result": result}
&"message", &"give_item", &"remove_item", &"learn_spell", &"learn_random_spell", &"complete_objective", &"endanger_tourist", &"augment_companion", &"tourist_selfie": &"message", &"remove_item", &"learn_spell", &"learn_random_spell", &"complete_objective", &"augment_companion":
# Later content slices own the corresponding inventory, quest, NPC, and spell mutations. # Later content slices own the corresponding inventory, quest, NPC, and spell mutations.
pass pass
_: _:
@@ -0,0 +1,24 @@
class_name HealthRegeneration
extends RefCounted
const ENDURANCE_DIVISOR := 3
const SKILL_AMPLIFIER := 0.15
const DIFFICULTY_MULTIPLIERS := {
&"touriste": 1.5,
&"crawler": 1.0,
&"veteran": 0.75,
&"masochiste": 0.5,
}
static func amount(endurance: int, regeneration_skill: int = 1, perk_bonus: int = 0, difficulty_id: StringName = &"crawler") -> int:
var base := maxi(1, endurance / ENDURANCE_DIVISOR)
var skill_bonus := maxi(0, regeneration_skill - 1)
var total := float(base + maxi(0, perk_bonus)) * (1.0 + float(skill_bonus) * SKILL_AMPLIFIER)
return maxi(0, int(total * float(DIFFICULTY_MULTIPLIERS.get(difficulty_id, 1.0))))
static func apply(actor: ActorState, endurance: int, regeneration_skill: int = 1, perk_bonus: int = 0, difficulty_id: StringName = &"crawler") -> int:
if actor == null or not actor.is_alive():
return 0
var before := actor.hit_points
actor.hit_points = mini(actor.effective_max_hit_points(), actor.hit_points + amount(endurance, regeneration_skill, perk_bonus, difficulty_id))
return actor.hit_points - before
@@ -0,0 +1 @@
uid://3ccnf6g0ily8
+3
View File
@@ -37,6 +37,9 @@ func resolve(map: GridMapState, attacker: ActorState, target: ActorState) -> Dic
"events": events, "events": events,
} }
func validation_reason(map: GridMapState, attacker: ActorState, target: ActorState) -> StringName:
return _validation_reason(map, attacker, target)
func _validation_reason(map: GridMapState, attacker: ActorState, target: ActorState) -> StringName: func _validation_reason(map: GridMapState, attacker: ActorState, target: ActorState) -> StringName:
if attacker == null or target == null or attacker == target or attacker.id == target.id or not target.is_alive(): if attacker == null or target == null or attacker == target or attacker.id == target.id or not target.is_alive():
return &"invalid_target" return &"invalid_target"
@@ -8,6 +8,7 @@ var _entries := {
"enemy": {}, "enemy": {},
"spell": {}, "spell": {},
"achievement": {}, "achievement": {},
"faction": {},
"loot_table": {}, "loot_table": {},
"npc": {}, "npc": {},
"quest": {}, "quest": {},
@@ -42,6 +43,9 @@ func get_spell(id: StringName) -> Dictionary:
func get_achievement(id: StringName) -> Dictionary: func get_achievement(id: StringName) -> Dictionary:
return _definition_for("achievement", id) return _definition_for("achievement", id)
func get_faction(id: StringName) -> Dictionary:
return _definition_for("faction", id)
func get_loot_table(id: StringName) -> Dictionary: func get_loot_table(id: StringName) -> Dictionary:
return _definition_for("loot_table", id) return _definition_for("loot_table", id)
+40 -6
View File
@@ -4,36 +4,70 @@ extends RefCounted
# E4 deliberately owns only the companion's earned-XP ledger. F1 remains the # E4 deliberately owns only the companion's earned-XP ledger. F1 remains the
# sole owner of level thresholds and character progression. # sole owner of level thresholds and character progression.
class Stance: class Stance:
const STAY_BACK: StringName = &"stay_back"
const DEFEND_ME: StringName = &"defend_me"
const ATTACK_ON_SIGHT: StringName = &"attack_on_sight"
# Legacy identifiers remain readable for code and saves created before the
# player-facing behavior names were introduced.
const FOLLOW: StringName = &"follow" const FOLLOW: StringName = &"follow"
const DEFEND: StringName = &"defend" const DEFEND: StringName = &"defend"
const SUPPORT: StringName = &"support" const SUPPORT: StringName = &"support"
const ActorStateType = preload("res://scripts/domain/actor_state.gd") const ActorStateType = preload("res://scripts/domain/actor_state.gd")
const ExperienceType = preload("res://scripts/domain/progression/experience.gd") const ExperienceType = preload("res://scripts/domain/progression/experience.gd")
const VALID_STANCES: Array[StringName] = [Stance.FOLLOW, Stance.DEFEND, Stance.SUPPORT] const VALID_STANCES: Array[StringName] = [Stance.STAY_BACK, Stance.DEFEND_ME, Stance.ATTACK_ON_SIGHT]
var choice_id: StringName var choice_id: StringName
var actor: ActorState var actor: ActorState
var stance: StringName = Stance.FOLLOW var stance: StringName = Stance.STAY_BACK
var name := "Familier"
var species := "Animal"
var endurance := 4
var regeneration_skill := 1
var regeneration_perk_bonus := 0
func _init(new_choice_id: StringName, new_actor: ActorState) -> void: func _init(new_choice_id: StringName, new_actor: ActorState) -> void:
choice_id = new_choice_id choice_id = new_choice_id
actor = new_actor actor = new_actor
static func from_choice(new_choice_id: StringName, cell: Vector2i, hit_points: int = 8) -> CompanionState: static func from_choice(new_choice_id: StringName, cell: Vector2i, hit_points: int = 8, new_name: String = "Familier", new_species: String = "Animal") -> CompanionState:
var id := new_choice_id if not new_choice_id.is_empty() else &"moth" var id := new_choice_id if not new_choice_id.is_empty() else &"moth"
var companion_actor := ActorStateType.new(&"companion", cell, maxi(1, hit_points), 3, id, {"accuracy": 30, "xp": 0}) var companion_actor := ActorStateType.new(&"companion", cell, maxi(1, hit_points), 3, id, {"accuracy": 30, "xp": 0})
return CompanionState.new(id, companion_actor) var companion := CompanionState.new(id, companion_actor)
companion.name = new_name.strip_edges() if not new_name.strip_edges().is_empty() else "Familier"
companion.species = new_species.strip_edges() if not new_species.strip_edges().is_empty() else "Animal"
return companion
func is_alive() -> bool: func is_alive() -> bool:
return actor != null and actor.is_alive() return actor != null and actor.is_alive()
func set_stance(new_stance: StringName) -> bool: func set_stance(new_stance: StringName) -> bool:
if not new_stance in VALID_STANCES: var normalized := normalize_stance(new_stance)
if not normalized in VALID_STANCES:
return false return false
stance = new_stance stance = normalized
return true return true
static func normalize_stance(value: StringName) -> StringName:
match value:
Stance.FOLLOW, &"aggressif": return Stance.ATTACK_ON_SIGHT
Stance.DEFEND, Stance.SUPPORT, &"defensif", &"soutien": return Stance.DEFEND_ME
return value
static func stance_label(value: StringName) -> String:
match normalize_stance(value):
Stance.STAY_BACK: return "Reste en arrière"
Stance.DEFEND_ME: return "Défends-moi"
Stance.ATTACK_ON_SIGHT: return "Attaque à vue"
return "Inconnu"
static func stance_description(value: StringName) -> String:
match normalize_stance(value):
Stance.STAY_BACK: return "Suit le joueur sans engager les ennemis."
Stance.DEFEND_ME: return "Intercepte et attaque les ennemis qui menacent le joueur."
Stance.ATTACK_ON_SIGHT: return "Poursuit et attaque l’ennemi visible le plus proche."
return ""
# This is intentionally a neutral allocation seam: it records earned XP only # This is intentionally a neutral allocation seam: it records earned XP only
# and neither reads nor changes levels, thresholds, attributes, or skills. # and neither reads nor changes levels, thresholds, attributes, or skills.
func share_xp(player: ActorState, amount: int) -> Dictionary: func share_xp(player: ActorState, amount: int) -> Dictionary:
+5 -2
View File
@@ -14,6 +14,9 @@ var hit_points := 1
var focus := 0 var focus := 0
var equipment_attribute_modifiers: Dictionary[StringName, int] = {} var equipment_attribute_modifiers: Dictionary[StringName, int] = {}
var equipment_skill_modifiers: Dictionary[StringName, int] = {} var equipment_skill_modifiers: Dictionary[StringName, int] = {}
# Perks are character-level modifiers, independent from swappable equipment.
var perk_attribute_modifiers: Dictionary[StringName, int] = {}
var perk_skill_modifiers: Dictionary[StringName, int] = {}
var flags: Dictionary[StringName, Variant] = {} var flags: Dictionary[StringName, Variant] = {}
var reputation: Dictionary[StringName, int] = {} var reputation: Dictionary[StringName, int] = {}
var archetype: StringName = &"" var archetype: StringName = &""
@@ -42,13 +45,13 @@ func max_focus() -> int:
return maxi(0, 15 + attributes.get_attribute(&"wil") * 5 + (level - 1) * 3) return maxi(0, 15 + attributes.get_attribute(&"wil") * 5 + (level - 1) * 3)
func effective_attribute(key: StringName) -> int: func effective_attribute(key: StringName) -> int:
var value: int = attributes.get_attribute(key) + equipment_attribute_modifiers.get(key, 0) var value: int = attributes.get_attribute(key) + equipment_attribute_modifiers.get(key, 0) + perk_attribute_modifiers.get(key, 0)
for effect in status_effects: for effect in status_effects:
value += effect.attribute_modifier().get(key, 0) value += effect.attribute_modifier().get(key, 0)
return value return value
func effective_skill(key: StringName) -> int: func effective_skill(key: StringName) -> int:
return skills.get(key, 0) + equipment_skill_modifiers.get(key, 0) return skills.get(key, 0) + equipment_skill_modifiers.get(key, 0) + perk_skill_modifiers.get(key, 0)
func modify_attribute(key: StringName, amount: int) -> void: func modify_attribute(key: StringName, amount: int) -> void:
attributes.modify_attribute(key, amount) attributes.modify_attribute(key, amount)
+2 -1
View File
@@ -7,6 +7,7 @@ const TrapEngineType = preload("res://scripts/domain/world/trap_engine.gd")
const SpecialInteractionsType = preload("res://scripts/domain/world/special_interactions.gd") const SpecialInteractionsType = preload("res://scripts/domain/world/special_interactions.gd")
const CompanionStateType = preload("res://scripts/domain/entities/companion_state.gd") const CompanionStateType = preload("res://scripts/domain/entities/companion_state.gd")
const PartyStateType = preload("res://scripts/domain/entities/party_state.gd") const PartyStateType = preload("res://scripts/domain/entities/party_state.gd")
const PLAYER_VISION_RADIUS := 6
var player: ActorState var player: ActorState
# E4 keeps the selected pet run-scoped rather than making it a floor entity. # E4 keeps the selected pet run-scoped rather than making it a floor entity.
@@ -109,7 +110,7 @@ func compute_visible_cells(game_map: GridMapState, origin: Vector2i, radius: int
return visible return visible
func update_exploration() -> void: func update_exploration() -> void:
visible_cells = compute_visible_cells(map, player.cell, 6) visible_cells = compute_visible_cells(map, player.cell, PLAYER_VISION_RADIUS)
for cell in visible_cells: for cell in visible_cells:
explored_cells[cell] = true explored_cells[cell] = true
@@ -71,6 +71,11 @@ func recompute_player(player) -> void:
player.normalize_resources() player.normalize_resources()
elif player is ActorState: elif player is ActorState:
player.recompute_equipment_modifiers(attributes, skills, combat) player.recompute_equipment_modifiers(attributes, skills, combat)
var main_hand := item_in_slot(&"main_hand")
if main_hand != null and main_hand.definition != null and StringName(main_hand.definition.raw.get("weapon_kind", "")) != &"ranged":
player.metadata["melee_weapon_name"] = main_hand.definition.name
else:
player.metadata.erase("melee_weapon_name")
func _accumulate_combat_modifiers(item: ItemInstance, combat: Dictionary[StringName, Variant]) -> void: func _accumulate_combat_modifiers(item: ItemInstance, combat: Dictionary[StringName, Variant]) -> void:
var raw := item.definition.raw var raw := item.definition.raw
@@ -22,6 +22,13 @@ func add_item(item: ItemInstance) -> Dictionary:
items.append(item) items.append(item)
return _result(true, &"", item) return _result(true, &"", item)
func count_by_definition(item_id: StringName) -> int:
var total := 0
for item: ItemInstance in items:
if item.definition.id == item_id:
total += item.quantity
return total
func item_by_id(instance_id: StringName) -> ItemInstance: func item_by_id(instance_id: StringName) -> ItemInstance:
for item in items: for item in items:
if item.instance_id == instance_id: if item.instance_id == instance_id:
@@ -85,6 +92,8 @@ func use_item(instance_id: StringName, default_target, identification: ItemIdent
var status := StringName(effect_data.get("status", "")) var status := StringName(effect_data.get("status", ""))
recipient.apply_status(StatusEffect.new(status, int(effect_data.get("duration", -1)), int(effect_data.get("magnitude", 0)), item.definition.id)) recipient.apply_status(StatusEffect.new(status, int(effect_data.get("duration", -1)), int(effect_data.get("magnitude", 0)), item.definition.id))
effects.append({"type": effect_type, "status": status}) effects.append({"type": effect_type, "status": status})
&"learn_spell":
effects.append({"type": effect_type, "spell": StringName(effect_data.get("spell", ""))})
_: _:
effects.append({"type": effect_type}) effects.append({"type": effect_type})
var consumed := remove_item(instance_id) var consumed := remove_item(instance_id)
+8 -2
View File
@@ -10,15 +10,21 @@ static func resolve(table: Dictionary, seed: String, context: String = "") -> Di
var items: Array[Dictionary] = [] var items: Array[Dictionary] = []
var gold := 0 var gold := 0
var entries: Array = table.get("entries", []) var entries: Array = table.get("entries", [])
var selected_item_ids: Dictionary[StringName, bool] = {}
var rolls := maxi(0, int(table.get("rolls", 0))) var rolls := maxi(0, int(table.get("rolls", 0)))
for _roll in range(rolls): for _roll in range(rolls):
var entry := _choose_entry(entries, rng) var eligible_entries := entries.filter(func(value) -> bool:
return not (value is Dictionary and value.has("item") and selected_item_ids.has(StringName(value.item)))
)
var entry := _choose_entry(eligible_entries, rng)
if entry.is_empty(): if entry.is_empty():
continue continue
if bool(entry.get("gold", false)): if bool(entry.get("gold", false)):
gold += _range_value(entry, "min_gold", "max_gold", rng) gold += _range_value(entry, "min_gold", "max_gold", rng)
elif entry.has("item"): elif entry.has("item"):
_append_item(items, StringName(entry.item), _range_value(entry, "min_qty", "max_qty", rng, 1)) var item_id := StringName(entry.item)
selected_item_ids[item_id] = true
_append_item(items, item_id, _range_value(entry, "min_qty", "max_qty", rng, 1))
return { return {
"items": items, "items": items,
"gold": gold, "gold": gold,
+11
View File
@@ -33,6 +33,17 @@ func resolve(map: GridMapState, caster: ActorState, target: ActorState, spell: D
var xp_event := _event(&"xp_granted", caster, target, spell, {}) var xp_event := _event(&"xp_granted", caster, target, spell, {})
xp_event.payload = xp_payload xp_event.payload = xp_payload
events.append(xp_event) events.append(xp_event)
events.append({
"kind": &"loot_dropped",
"actor_id": target.id,
"target_id": caster.id,
"cell": target.cell,
"payload": {
"loot_table": String(target.loot_table),
"actor_content_id": target.content_id,
"target_content_id": caster.content_id,
},
})
return {"valid": true, "reason": &"", "damage": damage, "events": events} return {"valid": true, "reason": &"", "damage": damage, "events": events}
func valid_targets(map: GridMapState, caster: ActorState, enemies: Dictionary[StringName, ActorState], spell: Dictionary, spells: SpellState) -> Dictionary[StringName, Vector2i]: func valid_targets(map: GridMapState, caster: ActorState, enemies: Dictionary[StringName, ActorState], spell: Dictionary, spells: SpellState) -> Dictionary[StringName, Vector2i]:
+134
View File
@@ -0,0 +1,134 @@
class_name AchievementManager
extends RefCounted
# Achievement state is deliberately held by the owning RunState (or an injected
# dictionary in tests), rather than the content definitions. This keeps static
# ASCII data immutable while preserving unlocks, counters, and unclaimed fan
# chests for the lifetime of a run.
var _definitions: Array[Dictionary] = []
var _state: Dictionary
func _init(definitions: Array = [], state: Dictionary = {}) -> void:
for definition: Dictionary in definitions:
_definitions.append(definition.duplicate(true))
_state = state
_ensure_state()
static func from_catalog(catalog: ContentCatalog, state: Dictionary) -> AchievementManager:
var definitions: Array[Dictionary] = []
if catalog != null:
for achievement_id: StringName in catalog.get_ids(&"achievement"):
definitions.append(catalog.get_achievement(achievement_id))
return AchievementManager.new(definitions, state)
func observe(trigger: StringName, payload: Dictionary, character_level: int) -> Array[Dictionary]:
_ensure_state()
var counts: Dictionary = _state["achievement_event_counts"]
var count := int(counts.get(trigger, 0)) + 1
counts[trigger] = count
var context := payload.duplicate(true)
context["_event_count"] = count
var unlocked: Array[Dictionary] = []
for definition: Dictionary in _definitions:
if StringName(definition.get("trigger", "")) != trigger:
continue
var achievement_id := StringName(definition.get("id", ""))
if achievement_id.is_empty() or is_unlocked(achievement_id):
continue
if character_level < int(definition.get("min_char_level", 1)):
continue
if not _conditions_match(definition.get("conditions", []), context):
continue
_unlocked_ids().append(achievement_id)
_state["achievement_flags"]["achv_%s" % achievement_id] = true
var entry := definition.duplicate(true)
entry["id"] = achievement_id
unlocked.append(entry)
if definition.has("reward_category") and definition.has("reward_tier"):
_pending_rewards().append({
"achievement_id": achievement_id,
"category": StringName(definition["reward_category"]),
"tier": StringName(definition["reward_tier"]),
})
return unlocked
func is_unlocked(achievement_id: StringName) -> bool:
return achievement_id in _unlocked_ids()
func visible_definitions() -> Array[Dictionary]:
var visible: Array[Dictionary] = []
for definition: Dictionary in _definitions:
if not bool(definition.get("hidden", false)) or is_unlocked(StringName(definition.get("id", ""))):
visible.append(definition.duplicate(true))
return visible
func pending_rewards() -> Array[Dictionary]:
var rewards: Array[Dictionary] = []
for reward: Dictionary in _pending_rewards():
rewards.append(reward.duplicate(true))
return rewards
func claimed_rewards() -> Array[Dictionary]:
var rewards: Array[Dictionary] = []
for reward: Dictionary in _claimed_rewards():
rewards.append(reward.duplicate(true))
return rewards
func claim_reward(achievement_id: StringName) -> Dictionary:
var pending := _pending_rewards()
for index in range(pending.size()):
var reward: Dictionary = pending[index]
if StringName(reward.get("achievement_id", "")) != achievement_id:
continue
pending.remove_at(index)
_claimed_rewards().append(reward.duplicate(true))
return reward.duplicate(true)
return {}
func flags() -> Dictionary:
return _state["achievement_flags"].duplicate(true)
func _conditions_match(conditions: Array, payload: Dictionary) -> bool:
for condition: Dictionary in conditions:
var key := StringName(condition.get("key", ""))
match StringName(condition.get("type", "")):
&"payload_min":
if float(payload.get(key, 0)) < float(condition.get("min", 0)):
return false
&"payload_max":
if float(payload.get(key, 0)) > float(condition.get("max", 0)):
return false
&"payload_equals":
if payload.get(key) != condition.get("value"):
return false
&"payload_flag":
if bool(payload.get(key, false)) != bool(condition.get("equals", true)):
return false
&"payload_contains":
var value: Variant = payload.get(key, [])
if not (value is Array or value is PackedStringArray) or condition.get("value") not in value:
return false
_:
return false
return true
func _ensure_state() -> void:
if not _state.has("unlocked_achievement_ids"):
_state["unlocked_achievement_ids"] = []
if not _state.has("achievement_event_counts"):
_state["achievement_event_counts"] = {}
if not _state.has("achievement_flags"):
_state["achievement_flags"] = {}
if not _state.has("pending_achievement_rewards"):
_state["pending_achievement_rewards"] = []
if not _state.has("claimed_achievement_rewards"):
_state["claimed_achievement_rewards"] = []
func _unlocked_ids() -> Array:
return _state["unlocked_achievement_ids"]
func _pending_rewards() -> Array:
return _state["pending_achievement_rewards"]
func _claimed_rewards() -> Array:
return _state["claimed_achievement_rewards"]
@@ -0,0 +1 @@
uid://r8gpo3760toq
+85
View File
@@ -0,0 +1,85 @@
class_name AudienceState
extends RefCounted
# Audience state belongs to one run. Spectacle is cumulative and thresholds are
# crossed once, so replaying panel refreshes can never manufacture followers.
const DEFAULT_FOLLOWER_THRESHOLDS: Array[Dictionary] = [
{"spectacle": 10, "followers": 50},
{"spectacle": 30, "followers": 200},
{"spectacle": 60, "followers": 350},
]
const DEFAULT_SPONSORS: Array[Dictionary] = [
{"id": "forge_du_phenix", "name": "Forge du Phénix", "followers_required": 250},
{"id": "brasserie_du_donjon", "name": "Brasserie du Donjon", "followers_required": 600},
]
var follower_thresholds: Array = DEFAULT_FOLLOWER_THRESHOLDS.duplicate(true)
var sponsor_definitions: Array = DEFAULT_SPONSORS.duplicate(true)
var episode_interval_turns := 5
var _state: Dictionary
func _init(state: Dictionary = {}) -> void:
_state = state
_ensure_state()
func spectacle_score() -> int:
return int(_state["spectacle_score"])
func followers() -> int:
return int(_state["followers"])
func unlocked_sponsors() -> Array[StringName]:
var sponsors: Array[StringName] = []
for sponsor_id in _state["unlocked_sponsors"]:
sponsors.append(StringName(sponsor_id))
return sponsors
func add_spectacle(amount: int) -> Dictionary:
var gained := maxi(0, amount)
var before := spectacle_score()
_state["spectacle_score"] = before + gained
var followers_gained := 0
for threshold: Dictionary in follower_thresholds:
var score := int(threshold.get("spectacle", 0))
if before < score and spectacle_score() >= score:
followers_gained += int(threshold.get("followers", 0))
_state["followers"] = followers() + followers_gained
var unlocked: Array[StringName] = []
for definition: Dictionary in sponsor_definitions:
var sponsor_id := StringName(definition.get("id", ""))
if sponsor_id.is_empty() or sponsor_id in _state["unlocked_sponsors"]:
continue
if followers() >= int(definition.get("followers_required", 0)):
_state["unlocked_sponsors"].append(sponsor_id)
unlocked.append(sponsor_id)
return {"spectacle_gained": gained, "followers_gained": followers_gained, "unlocked_sponsors": unlocked}
func sponsor_definition(sponsor_id: StringName) -> Dictionary:
for definition: Dictionary in sponsor_definitions:
if StringName(definition.get("id", "")) == sponsor_id:
return definition.duplicate(true)
return {}
func consume_episode_due(turn: int) -> bool:
if episode_interval_turns <= 0 or turn <= 0 or turn % episode_interval_turns != 0:
return false
if int(_state["last_episode_turn"]) >= turn:
return false
_state["last_episode_turn"] = turn
_state["episode_count"] = episode_count() + 1
return true
func episode_count() -> int:
return int(_state["episode_count"])
func _ensure_state() -> void:
if not _state.has("spectacle_score"):
_state["spectacle_score"] = 0
if not _state.has("followers"):
_state["followers"] = 0
if not _state.has("unlocked_sponsors"):
_state["unlocked_sponsors"] = []
if not _state.has("last_episode_turn"):
_state["last_episode_turn"] = 0
if not _state.has("episode_count"):
_state["episode_count"] = 0
@@ -0,0 +1 @@
uid://xbnstb0u7lk0
+67
View File
@@ -0,0 +1,67 @@
class_name FactionWar
extends RefCounted
# The imported faction entries remain data-only. This run-owned service keeps
# their kill-derived standings and exposes neutral flags for titles/achievements.
var _catalog: ContentCatalog
var _state: Dictionary
func _init(catalog: ContentCatalog, state: Dictionary = {}) -> void:
_catalog = catalog
_state = state
if not _state.has("faction_war_scores"):
_state["faction_war_scores"] = {}
if not _state.has("faction_war_notified_leader"):
_state["faction_war_notified_leader"] = ""
func record_kill(faction_id: StringName) -> StringName:
var faction := definition(faction_id)
var rival_id := StringName(faction.get("rival_id", ""))
if faction.is_empty() or rival_id.is_empty() or definition(rival_id).is_empty():
return &""
var scores: Dictionary = _state["faction_war_scores"]
scores[rival_id] = kill_count(rival_id) + 1
return rival_id
func kill_count(faction_id: StringName) -> int:
return int((_state["faction_war_scores"] as Dictionary).get(faction_id, 0))
func leader() -> Dictionary:
var ranked: Array[Dictionary] = []
for faction_id: StringName in faction_ids():
ranked.append({"id": faction_id, "score": kill_count(faction_id)})
ranked.sort_custom(func(left: Dictionary, right: Dictionary) -> bool:
return int(left.score) > int(right.score) or (int(left.score) == int(right.score) and String(left.id) < String(right.id))
)
if ranked.is_empty() or int(ranked[0].score) <= 0:
return {}
var top: Dictionary = ranked[0]
var runner_up_score := int(ranked[1].score) if ranked.size() > 1 else 0
var margin := int(top.score) - runner_up_score
return {"id": StringName(top.id), "margin": margin} if margin > 0 else {}
func notified_leader() -> StringName:
return StringName(_state["faction_war_notified_leader"])
func set_notified_leader(faction_id: StringName) -> void:
_state["faction_war_notified_leader"] = faction_id
func flags() -> Dictionary:
var current_leader := leader()
return {
&"faction_war_leader": StringName(current_leader.get("id", "")),
&"faction_war_margin": int(current_leader.get("margin", 0)),
}
func standings_label() -> String:
var current_leader := leader()
if current_leader.is_empty():
return "Aucune guerre de factions engagée pour l’instant."
var faction := definition(StringName(current_leader.id))
return "%s domine (marge : %d)." % [String(faction.get("name", current_leader.id)), int(current_leader.margin)]
func faction_ids() -> Array[StringName]:
return _catalog.get_ids(&"faction") if _catalog != null else []
func definition(faction_id: StringName) -> Dictionary:
return _catalog.get_faction(faction_id) if _catalog != null else {}
+1
View File
@@ -0,0 +1 @@
uid://b3rmaeo1fpdqu
+60
View File
@@ -0,0 +1,60 @@
class_name Moderation
extends RefCounted
const PENALTIES := {
&"denigrement_borant": 40,
&"denigrement_gouvernement": 40,
&"malproprete": 15,
&"mise_en_danger_touriste": 60,
}
const DEFAULT_PENALTY := 25
const SYNDICATE_INTERVAL := 3
const SYNDICATE_ESCALATION_PENALTY := 80
var _state: Dictionary
func _init(state: Dictionary = {}) -> void:
_state = state
if not _state.has("moderation_strikes"):
_state["moderation_strikes"] = 0
if not _state.has("syndicate_escalations"):
_state["syndicate_escalations"] = 0
if not _state.has("last_syndicate_verdict"):
_state["last_syndicate_verdict"] = ""
func apply(reason: StringName, deadline: FloorDeadline) -> Dictionary:
var penalty := penalty_for(reason)
if deadline != null:
deadline.turns_remaining = maxi(0, deadline.turns_remaining - penalty)
_state["moderation_strikes"] = strikes() + 1
var escalation_penalty := 0
if strikes() % SYNDICATE_INTERVAL == 0:
escalation_penalty = SYNDICATE_ESCALATION_PENALTY
if deadline != null:
deadline.turns_remaining = maxi(0, deadline.turns_remaining - escalation_penalty)
_state["syndicate_escalations"] = escalations() + 1
return {
"reason": reason,
"penalty": penalty,
"strikes": strikes(),
"escalation_penalty": escalation_penalty,
"escalations": escalations(),
}
func set_last_verdict(verdict: String) -> void:
_state["last_syndicate_verdict"] = verdict
func last_verdict() -> String:
return String(_state["last_syndicate_verdict"])
func strikes() -> int:
return int(_state["moderation_strikes"])
func escalations() -> int:
return int(_state["syndicate_escalations"])
func penalty_for(reason: StringName) -> int:
return int(PENALTIES.get(reason, DEFAULT_PENALTY))
func flags() -> Dictionary:
return {&"moderation_strikes": strikes(), &"syndicate_escalations": escalations()}
+1
View File
@@ -0,0 +1 @@
uid://iaxi71gqnxa6
+45
View File
@@ -0,0 +1,45 @@
class_name RecapLog
extends RefCounted
const HIGHLIGHT_KINDS := [&"actor_died", &"item_picked_up", &"damage_dealt", &"quest_completed", &"sponsor_unlocked"]
const MAX_HIGHLIGHTS := 3
var _state: Dictionary
func _init(state: Dictionary = {}) -> void:
_state = state
if not _state.has("recap_recent_highlights"):
_state["recap_recent_highlights"] = []
if not _state.has("recap_episodes"):
_state["recap_episodes"] = []
func observe(kind: StringName, message: String) -> void:
if kind not in HIGHLIGHT_KINDS or message.is_empty():
return
_state["recap_recent_highlights"].append(message)
while _state["recap_recent_highlights"].size() > MAX_HIGHLIGHTS:
_state["recap_recent_highlights"].pop_front()
func record_episode(turn: int, spectacle: int, followers: int, sponsors: Array[StringName]) -> Dictionary:
var snapshot: Array[StringName] = []
for sponsor_id in sponsors:
snapshot.append(sponsor_id)
var episode := {
"number": _state["recap_episodes"].size() + 1,
"turn": turn,
"spectacle": spectacle,
"followers": followers,
"sponsors": snapshot,
"highlights": _state["recap_recent_highlights"].duplicate(),
}
_state["recap_episodes"].append(episode)
return episode.duplicate(true)
func episodes() -> Array[Dictionary]:
var result: Array[Dictionary] = []
for episode: Dictionary in _state["recap_episodes"]:
result.append(episode.duplicate(true))
return result
func timeline() -> Array[Dictionary]:
return episodes()
+1
View File
@@ -0,0 +1 @@
uid://bxn2hmuovkqyh

Some files were not shown because too many files have changed in this diff Show More