Compare commits

...
Author SHA1 Message Date
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
goose 36f2f62271 feat: add XP levels and progression points 2026-10-03 19:09:47 -04:00
goose e520708d0a Merge pull request 'E5: Implement recruitable crawler party' (#40) from slice/e5-party into main 2026-10-03 18:37:20 -04:00
goose 8d7d980d71 feat: implement recruitable crawler party 2026-10-03 18:25:57 -04:00
goose 1354d3a983 Merge pull request 'E4: Implement pet companion commands and support' (#39) from slice/e4-companion into main 2026-10-03 17:47:19 -04:00
goose b29a5ac81d chore: archive E4 task report 2026-10-03 17:41:22 -04:00
goose 2bd2589810 feat: implement pet companion commands and support 2026-10-03 17:40:06 -04:00
goose 86a67a6d3c Merge pull request 'E3: Implement quest lifecycle' (#38) from slice/e3-quests into main 2026-10-03 17:17:12 -04:00
goose de85b758bf chore: archive E3 task report 2026-10-03 17:09:00 -04:00
goose 5139563d10 feat: implement quest lifecycle 2026-10-03 17:07:20 -04:00
goose 477c013474 Merge pull request 'E2: Port narrative events and puzzles' (#37) from slice/e2-narrative-events into main 2026-10-03 16:40:55 -04:00
goose e94ca7e4a3 chore: move E2 report out of product tree 2026-10-03 16:36:08 -04:00
goose ec12c9b35b feat: port narrative events and puzzles 2026-10-03 16:34:37 -04:00
goose e0e6cafee7 Merge pull request 'E1: Port data-driven dialogues' (#36) from slice/e1-dialogues into main 2026-10-03 16:18:08 -04:00
goose 21aa999ae6 chore: archive E1 task report 2026-10-03 16:13:37 -04:00
goose e91d2513b7 feat: port data-driven dialogues 2026-10-03 16:12:33 -04:00
goose e157b03e0c Merge pull request 'D6: Support full generated content catalog' (#35) from slice/d6-large-catalog into main 2026-10-03 15:51:18 -04:00
goose 665561a8a3 test: enforce D6 catalog open budget 2026-10-03 15:48:24 -04:00
goose 64361997b9 chore: untrack D6 working report 2026-10-03 15:38:46 -04:00
goose 74df03e806 chore: move D6 report out of product tree 2026-10-03 15:37:53 -04:00
goose 3853e99a97 perf: support full ASCII generated content catalog 2026-10-03 15:22:50 -04:00
goose c87fbce01a Merge pull request 'D5: Port crafting' (#34) from slice/d5-crafting into main 2026-10-03 15:11:45 -04:00
goose f8b4d1145b chore: move D5 report out of product tree 2026-10-03 15:07:25 -04:00
goose a160063b05 feat: port crafting 2026-10-03 15:04:38 -04:00
goose c1e5b9fa9c Merge pull request 'D4: Add economy shops and safe rest' (#33) from slice/d4-economy-shops into main 2026-10-03 14:53:03 -04:00
goose 8b92a888f2 feat: add economy shops and safe rest 2026-10-03 14:44:26 -04:00
goose d83a1eaf21 Merge pull request 'D3: Add equipment identification and item use' (#32) from slice/d3-equipment-identification into main 2026-10-03 14:24:03 -04:00
goose ba6690b680 fix: apply equipment modifiers to live combat actor 2026-10-03 14:21:46 -04:00
goose e5ab923a67 feat: add equipment identification and item use 2026-10-03 14:04:11 -04:00
goose 5214f5fa8b Merge pull request 'D2: Add deterministic world chest loot' (#31) from slice/d2-world-chest-loot into main 2026-10-03 13:38:43 -04:00
goose a251359885 feat: add deterministic world chest loot 2026-10-03 13:34:12 -04:00
goose 795d25fb4a Merge pull request 'D1: Port item instances and inventory' (#30) from slice/d1-inventory into main 2026-10-03 13:19:47 -04:00
goose f9e68e6110 feat: port item instances and inventory 2026-10-03 13:16:00 -04:00
goose 391e95f6f4 Merge pull request 'C6: Add traps and special interactions' (#29) from slice/c6-special-interactions into main 2026-10-03 13:02:42 -04:00
goose ed57316c87 chore: move C6 report to ignored SDD 2026-10-03 12:56:37 -04:00
goose 7e93cf0b5b feat: add C6 special interactions 2026-10-03 12:54:52 -04:00
goose 68d35bf94b Merge pull request 'C5: Add magic spellcasting' (#28) from slice/c5-magic-spells into main 2026-10-03 11:07:31 -04:00
goose d1eec579f8 chore: relocate C5 task report 2026-10-03 11:03:00 -04:00
goose 27f5d5b575 feat: add C5 magic spellcasting 2026-10-03 11:01:47 -04:00
goose a7c2e2d034 Merge pull request 'C4: Add ranged combat targeting' (#27) from slice/c4-ranged-combat into main 2026-10-03 02:27:17 -04:00
goose 41963a88a5 chore: archive C4 report outside product tree 2026-10-03 02:21:48 -04:00
goose 46b2c8a6ff feat: add ranged combat targeting 2026-10-03 01:47:41 -04:00
goose 910c24f66f Merge pull request 'C3: Port tactical enemy AI' (#26) from slice/c3-enemy-ai into main 2026-10-03 01:33:44 -04:00
goose 943a8117b5 fix: make C3 AI behavior policies explicit 2026-10-03 01:32:04 -04:00
goose ee9dc65184 feat: port tactical enemy AI 2026-10-03 01:22:20 -04:00
goose 1e1f43bc46 Merge pull request 'C2: Port melee combat and wounds' (#25) from slice/c2-melee-wounds into main 2026-10-03 01:05:28 -04:00
goose 454684bc87 feat: port melee combat and wounds 2026-10-03 01:03:28 -04:00
goose 159fd9f5bc Merge pull request 'C1: Add full attributes and conditions' (#24) from slice/c1-attributes-conditions into main 2026-10-03 00:41:05 -04:00
goose af3cda9eeb feat: add full attributes and conditions 2026-10-03 00:38:18 -04:00
goose f17b5dd7c0 Merge pull request 'B6: Add floor time pressure and gated stairs' (#23) from slice/b6-floor-deadline into main 2026-10-03 00:28:12 -04:00
goose 4b6521d308 feat: add floor time pressure and gated stairs 2026-10-03 00:25:24 -04:00
goose 4b9776ce20 Merge pull request 'B5: Add multi-floor dungeon transitions' (#22) from slice/b5-multi-floor into main 2026-10-03 00:03:18 -04:00
goose 484c91f4a6 chore: move B5 report to ignored SDD storage 2026-10-02 23:59:32 -04:00
goose fe13555778 feat: add multi-floor dungeon transitions 2026-10-02 23:58:07 -04:00
goose 4a3d2fc3ff Merge pull request 'B4: Populate procedural floors' (#21) from slice/b4-floor-populator into main 2026-10-02 23:37:48 -04:00
goose e0798384a9 feat: populate procedural floors 2026-10-02 23:33:14 -04:00
goose e8be817284 Merge pull request 'B3: Add procedural doors and room roles' (#20) from slice/b3-doors-room-roles into main 2026-10-02 23:23:29 -04:00
goose 7c9390bb0a feat: add procedural doors and room roles 2026-10-02 23:13:52 -04:00
goose eb595da756 Merge pull request 'B2: Generate connected dungeon rooms' (#19) from slice/b2-floor-generator into main 2026-10-02 18:50:31 -04:00
goose ead07e1a67 fix: guarantee minimum generated room count 2026-10-02 18:48:19 -04:00
goose 968ff489f9 feat: generate connected dungeon rooms 2026-10-02 18:38:39 -04:00
goose b52e563781 Merge pull request 'B1: Introduce full floor state model' (#18) from slice/b1-floor-state into main 2026-10-02 18:31:51 -04:00
goose aac1e451b6 fix: preserve mutable floor entities compatibility 2026-10-02 18:27:56 -04:00
goose 1ed6c677a3 fix: preserve explicit floor actor state 2026-10-02 18:20:47 -04:00
goose 6ce2b9c9c5 refactor: introduce full floor state model 2026-10-02 18:09:22 -04:00
goose 5a4047fa4c Merge pull request 'A6: Add main menu and run creation lifecycle' (#17) from slice/a6-run-lifecycle into main 2026-10-02 18:01:51 -04:00
goose 2938153ca8 fix: make run menus layout and input robust 2026-10-02 17:54:49 -04:00
goose 77c5e54728 feat: add run creation lifecycle 2026-10-02 17:31:54 -04:00
goose a26c07ffa4 Merge pull request 'A5: Add unified player action router' (#16) from slice/a5-action-router into main 2026-10-02 17:23:02 -04:00
goose be439c1475 docs: remove A5 evidence from S4 report 2026-10-02 17:20:31 -04:00
goose 314d186bc9 fix: exercise routed input and resolve E binding 2026-10-02 16:51:05 -04:00
goose 7f35300b77 feat: add unified player action router 2026-10-02 16:29:14 -04:00
goose 0947a27dec Merge pull request 'A4: Restore black dungeon fog' (#15) from slice/a4-black-fog into main 2026-10-02 16:21:24 -04:00
goose 5e626090ee feat: restore black dungeon fog 2026-10-02 13:37:10 -04:00
goose b3379154c8 Merge pull request 'A3: Add event-driven combat feedback' (#14) from slice/a3-event-presentation into main 2026-10-02 13:25:31 -04:00
544 changed files with 24186 additions and 894 deletions
+1
View File
@@ -1,5 +1,6 @@
.godot/
*.import
artifacts/
build/
.claude/
+25 -91
View File
@@ -1,111 +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
"${GODOT_BIN:-$(command -v godot4 || command -v godot)}" --path .
```
Use WASD / arrow keys (and QZC diagonals). The HUD help band uses the French labels `Déplacer : ZQSD / Flèches` and `Interagir : Espace ou E`; both **Space** and **E** are bound to `interact`. `Game.submit_test_action(Vector2i)` and `Game.submit_test_interact()` are deterministic public E2E seams and follow the same processors 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.
## 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:
Install export templates matching the exact Godot version, then build desktop artifacts:
```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
GODOT_BIN=/snap/bin/godot4 ./scripts/test-unit.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/test-integration.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/test-e2e.sh
GODOT_BIN=/snap/bin/godot4 ./scripts/run-visual-check.sh
./tests/scripts/test_export_scripts.sh
./tests/scripts/test_parity_recovery_gate.sh
./tests/scripts/test_parity_gauntlet.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, 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)
`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): an initial blue-black unknown region, a readable explored-tile overlay (luminance ≥ 0.55), and non-black dungeon pixels in both captures. The explored luminance is calculated from the 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 at full brightness; cells retained in `explored_cells` have a pale-blue readable overlay (tint luminance ≥ 0.55); unknown cells are distinguishable blue-black.
- 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.
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.
+17
View File
@@ -26,3 +26,20 @@ SCRIPT ERROR: Parse Error: Cannot find member REFERENCE_VIEWPORT in base Game
```
The runner exited with status `1`.
## B1 P1 — mutable `FloorState.entities` compatibility
### Root cause and resolution
`FloorState.entities` was aggregating `enemies` and `npcs` into a newly allocated dictionary on every read. Consequently, normal legacy operations such as `floor.entities[id] = actor` and `floor.entities.erase(id)` modified only that temporary dictionary.
The compatibility property now returns the real `enemies` dictionary. `enemies` and `npcs` remain explicit canonical collections; floor serialization continues to write separate `enemies` and `npcs` dictionaries, and the existing lossless `explored_cells` value serialization is unchanged. `GameState` continues to use the canonical `enemies` API.
### Compatibility coverage
`test_floor_state_entities_remains_a_mutable_legacy_enemy_alias` assigns the legacy dictionary, performs an indexed set through `entities`, verifies both actors exist in canonical `enemies`, then erases through `entities` and verifies the canonical store is updated.
### Verification
- `scripts/test-unit.sh`: passed — 62 tests, 546 assertions.
- `scripts/verify.sh`: passed — unit (62 tests, 546 assertions), integration (1 test, 13 assertions), E2E (18 tests, 199 assertions), and visual checks.
+27 -1
View File
@@ -1,6 +1,6 @@
# Asset registry — S4
S4 added no binary assets. Audio remains external under the documented ASCII layout; the project-owned visual capture is generated under ignored `artifacts/` and is not a shipped asset.
S4 added no binary assets. Audio remains external under the documented ASCII layout; the project-owned visual capture is generated under ignored `artifacts/` and is not a shipped asset. A4 applies its black-blue fog palette at render time over the existing CC0 tiles, preserving explored-tile texture without creating or modifying binary art.
All binary art below is an unmodified 32×32 PNG copied from the local **Dungeon Crawl Stone Soup Full** tile pack. The pack README identifies it as CC0; `assets/dcss/LICENSE-CC0-1.0.txt` is the included source license copy. Attribution is not required, but the pack is credited here as requested by its README.
@@ -13,3 +13,29 @@ 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/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/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 |
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

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
+6 -34
View File
@@ -4,56 +4,28 @@
"nodes": {
"root": {
"speaker": "Mordecai",
"text": [
"Encore un nouveau. Formidable.",
"Je suis la pour repondre a vos questions, dans la limite raisonnable de mon interet pour votre survie."
],
"text": ["Encore un nouveau. Formidable.", "Je suis la pour repondre a vos questions, dans la limite raisonnable de mon interet pour votre survie."],
"options": [
{"text": "C'est quoi, cette interface qui clignote partout ?", "goto": "tip_hud"},
{"text": "Les notifications de succes, ca sert a quelque chose ?", "goto": "tip_achievements"},
{"text": "Des conseils pour ne pas mourir tout de suite ?", "goto": "tip_combat"},
{"text": "C'est quoi, ce compte a rebours en haut de l'ecran ?", "goto": "tip_collapse_countdown"},
{"text": "[Niveau 3] Parlez-moi du choix de race et de classe.", "condition": {"type": "archetype", "is_set": true}, "goto": "tip_race_class"},
{"text": "Combien de temps me reste-t-il avec vous ?", "condition": {"type": "archetype", "is_set": false}, "goto": "tip_countdown"},
{"text": "Entre nous, le Syndicat n'est qu'une bande d'escrocs.", "goto": "denigrement_borant"},
{"text": "[Niveau 3] Parlez-moi du choix de race et de classe.", "condition": {"type": "archetype", "is_set": true}, "effects": [{"type": "set_flag", "flag": "guide_tip_seen", "value": true}], "goto": "tip_race_class"},
{"text": "Rien pour l'instant.", "end": true}
]
},
"tip_hud": {
"speaker": "Mordecai",
"text": "Vie, mana, compte a rebours, tout est affiche. Le journal en bas note tout ce qui vous arrive, meme ce que vous prefereriez oublier. La carte se consulte a tout moment. Ce n'est pas compliqué, juste hostile.",
"text": "Vie, mana, compte a rebours : le journal note tout ce qui vous arrive.",
"options": [{"text": "D'accord.", "goto": "root"}]
},
"tip_achievements": {
"speaker": "Mordecai",
"text": "Chaque succes rapporte generalement un coffret. Les premiers niveaux en distribuent beaucoup -- profitez-en, ca ralentit sec ensuite. Consultez l'onglet dedie pour tout voir d'un coup.",
"options": [{"text": "Note.", "goto": "root"}]
},
"tip_combat": {
"speaker": "Mordecai",
"text": "Foncer dans le tas fonctionne, jusqu'a ce que ca ne fonctionne plus plus. Un ennemi qui ne vous a pas repere encaisse plus de degats du premier coup. Utilisez-le.",
"text": "Ne foncez pas dans le tas. Un ennemi qui ne vous a pas repere encaisse plus au premier coup.",
"options": [{"text": "Compris.", "goto": "root"}]
},
"tip_race_class": {
"speaker": "Mordecai",
"text": "Vous avez fait votre choix, donc mon utilite vient officiellement de s'effondrer. A partir d'ici, les guildes de classe prennent le relais -- quand il y en a une pour vous. Bonne chance.",
"options": [{"text": "Merci pour tout, je suppose.", "end": true}]
},
"tip_countdown": {
"speaker": "Mordecai",
"text": "Jusqu'au niveau 3 du Donjon. La-bas, vous choisirez votre race puis votre classe, et mes conseils gratuits s'arreteront net. Profitez-en pendant que ca dure.",
"options": [{"text": "Note.", "goto": "root"}]
},
"tip_collapse_countdown": {
"speaker": "Mordecai",
"text": "Chaque etage a une duree de vie. Quand elle tombe a zero, le Dungeon recycle les lieux -- avec ou sans vous dedans. Trouvez la sortie avant. Ce n'est pas une menace en l'air, je vous rassure, je l'ai deja vu arriver.",
"options": [{"text": "Note, je me depeche.", "goto": "root"}]
},
"denigrement_borant": {
"speaker": "Mordecai",
"text": "Je n'ai rien entendu. L'IA d'arbitrage, en revanche, entend absolument tout.",
"on_enter": [{"type": "moderation_violation", "reason": "denigrement_borant"}],
"options": [{"text": "...Note.", "goto": "root"}]
"text": "Vous avez fait votre choix. Les guildes prennent le relais a partir d'ici.",
"options": [{"text": "Merci.", "end": true}]
}
}
}
+6 -48
View File
@@ -3,66 +3,24 @@
"start": "root",
"nodes": {
"root": {
"speaker": "Marchand",
"text": [
"Je pourrais te vendre cette epee.",
"Mais vu ton etat, je devrais probablement te vendre un testament avec."
],
"speaker": "Marchand ambulant",
"text": ["Je pourrais te vendre cette epee.", "Mais vu ton etat, je devrais probablement te vendre un testament avec."],
"options": [
{"text": "Combien pour l'epee ?", "goto": "price"},
{"text": "Tu appelles vraiment ca une epee ?", "goto": "insult"},
{"text": "[Marchandage] 100 pieces et on n'en parle plus.", "condition": {"type": "skill", "skill": "bargaining", "min": 2},
"skill_check": {"skill": "bargaining", "attr": "cha", "dc": 10, "success_goto": "bargain_success", "fail_goto": "bargain_fail"}},
{"text": "[Intimidation] Donne-la-moi. Maintenant.", "condition": {"type": "skill", "skill": "intimidation", "min": 2},
"skill_check": {"skill": "intimidation", "attr": "str_", "dc": 12, "success_goto": "intimidate_success", "fail_goto": "intimidate_fail"}},
{"text": "[Marchandage] 100 pieces et on n'en parle plus.", "condition": {"type": "skill", "skill": "bargaining", "min": 2}, "effects": [{"type": "set_flag", "flag": "merchant_bargained", "value": true}, {"type": "add_rep", "faction": "merchants", "amount": 1}], "goto": "bargain_success"},
{"text": "Voir toute sa marchandise.", "goto": "__SHOP__"},
{"text": "Partir.", "end": true}
]
},
"price": {
"speaker": "Marchand",
"speaker": "Marchand ambulant",
"text": "150 pieces. Et je ne fais pas credit, ne me regarde pas comme ca.",
"options": [
{"text": "Acheter l'epee (150 or).", "condition": {"type": "gold", "min": 150},
"effects": [{"type": "add_gold", "amount": -150}, {"type": "give_item", "item": "weapon_rusty_sword"}],
"end": true},
{"text": "C'est trop cher.", "goto": "root"}
]
},
"insult": {
"speaker": "Marchand",
"text": "C'est une epee de survie, pas une piece de musee. Elle tue exactement aussi bien qu'une belle.",
"options": [
{"text": "D'accord, d'accord.", "goto": "root"},
{"text": "Partir.", "end": true}
]
"options": [{"text": "Retour.", "goto": "root"}, {"text": "Partir.", "end": true}]
},
"bargain_success": {
"speaker": "Marchand",
"speaker": "Marchand ambulant",
"text": "...Bon. Va pour 100. Mais tu ne le dis a personne.",
"on_enter": [{"type": "add_gold", "amount": -100}, {"type": "give_item", "item": "weapon_rusty_sword"}],
"options": [{"text": "Merci.", "end": true}]
},
"bargain_fail": {
"speaker": "Marchand",
"text": "Le prix est le prix. Essaie encore et je le monte a 200.",
"options": [{"text": "Tant pis.", "goto": "root"}]
},
"intimidate_success": {
"speaker": "Marchand",
"text": "...Tiens. Prends-la. Prends tout ce que tu veux. Prends tout, en fait, et laisse-moi tranquille.",
"on_enter": [
{"type": "give_item", "item": "weapon_rusty_sword"},
{"type": "add_rep", "faction": "merchants", "amount": -15},
{"type": "set_flag", "flag": "merchant_intimidated", "value": true}
],
"options": [{"text": "(Partir avant qu'il ne change d'avis)", "end": true}]
},
"intimidate_fail": {
"speaker": "Marchand",
"text": "Essaie donc. Je crie tres, tres fort, et j'ai des amis pas loin.",
"on_enter": [{"type": "add_rep", "faction": "merchants", "amount": -5}],
"options": [{"text": "Une autre fois, alors.", "goto": "root"}]
}
}
}
+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
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_audience.py` | blocked | F4 — `test_audience.gd` |
| `test_audio.py` | blocked | G3 — `test_audio_playback.gd` / audio settings E2E |
| `test_beds_stairs.py` | blocked | B5–B6 — floor transition/deadline tests |
| `test_bulk_content.py` | replaced | A1 `test_ascii_content_parity.gd`; D6 owns bulk performance/catalog UI |
| `test_combat.py` | blocked | C2 — `test_melee_combat.gd` / melee feedback E2E |
| `test_companion.py` | blocked | E4 — `test_companion.gd` |
| `test_companion_support.py` | blocked | E4 — `test_companion_support.gd` |
| `test_countdown_moderation.py` | blocked | B6 / F5 — floor deadline and moderation tests |
| `test_crafting.py` | blocked | D5 — `test_crafting.gd` / crafting E2E |
| `test_dialogue.py` | blocked | E1 — `test_dialogue.gd` / NPC dialogue E2E |
| `test_economy.py` | blocked | D4 — `test_economy.gd` / shop-rest E2E |
| `test_factions.py` | blocked | F5 — `test_factions.gd` |
| `test_floor_zero.py` | blocked | B5 — `test_floor_transition.gd` / descend E2E |
| `test_generation.py` | blocked | B2–B4 — generator/population integration tests |
| `test_guilds.py` | blocked | B3 / E1 — guild room and dialogue tests |
| `test_healing_system.py` | blocked | C1 / D4 — status and safe-rest tests |
| `test_hero_classes.py` | blocked | F2 — `test_hero_classes.gd` |
| `test_identification.py` | blocked | D3 — `test_identification.gd` |
| `test_inventory.py` | blocked | D1 — `test_inventory.gd` / pickup E2E |
| `test_item_details.py` | blocked | D3 — equipment/inventory detail tests |
| `test_kill_method_gold.py` | blocked | C2 / D4 — combat and economy tests |
| `test_limb_wounds.py` | blocked | C2 — `test_limb_wounds.gd` |
| `test_loot.py` | blocked | D2 — `test_loot_resolver.gd` / chest E2E |
| `test_magic.py` | blocked | C5 — `test_magic.gd` / spell E2E |
| `test_map_persistence.py` | blocked | B5 — floor transition persistence tests |
| `test_menu_scrolling.py` | blocked | G2 / D6 — full UI navigation and large-catalog E2E |
| `test_minimap.py` | blocked | G2 — `test_minimap.gd` |
| `test_narrative_resurrection.py` | blocked | F6 — death/resurrection tests |
| `test_party_system.py` | blocked | E5 — `test_party_system.gd` / recruit-party E2E |
| `test_playtest_fixes.py` | blocked | G6 — full parity regression gauntlet |
| `test_playtest_v2.py` | blocked | G6 — full parity regression gauntlet |
| `test_quests.py` | blocked | E3 — `test_quests.gd` / quest lifecycle E2E |
| `test_quests_v3.py` | blocked | E3 — `test_quests.gd` / quest lifecycle E2E |
| `test_race_class.py` | blocked | F2 — `test_race_class.gd` |
| `test_real_time_deadline.py` | blocked | B6 — `test_floor_deadline.gd` |
| `test_realworld_items.py` | blocked | D6 — bulk-content loading and catalog UI E2E |
| `test_recap.py` | blocked | F4 — `test_recap.gd` |
| `test_safe_rooms_bobka.py` | blocked | B3 / D4 / E1 — sanctuary, rest, and dialogue tests |
| `test_save.py` | blocked | G1 — save repository/migration/load E2E |
| `test_syndicate.py` | blocked | F5 — `test_syndicate.gd` |
| `test_titles.py` | blocked | F3 — `test_titles.gd` |
| `test_tourists.py` | blocked | E1 — NPC dialogue E2E |
| `test_achievements.py` | replaced | F3 — `test_achievements.gd`, `test_achievement_reward_e2e.gd` |
| `test_audience.py` | replaced | F4 — `test_audience.gd`, `test_audience_episode_e2e.gd` |
| `test_audio.py` | replaced | G3 — `test_audio_library.gd`, `test_audio_playback.gd`, `test_audio_settings_e2e.gd` |
| `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/D6 — `test_ascii_content_parity.gd`, `test_bulk_content_loading.gd`, `test_large_catalog_menu_e2e.gd` |
| `test_combat.py` | replaced | C2 — `test_melee_combat.gd`, `test_melee_feedback_e2e.gd`, `test_combat_hud_e2e.gd` |
| `test_companion.py` | replaced | E4 — `test_companion.gd`, `test_pet_companion_e2e.gd` |
| `test_companion_support.py` | replaced | E4 — `test_companion_support.gd` |
| `test_countdown_moderation.py` | replaced | B6/F5 — `test_floor_deadline.gd`, `test_moderation_event_e2e.gd` |
| `test_crafting.py` | replaced | D5 — `test_crafting.gd`, `test_crafting_e2e.gd` |
| `test_dialogue.py` | replaced | E1 — `test_dialogue.gd`, `test_dialogue_e2e.gd` |
| `test_economy.py` | replaced | D4 — `test_economy.gd`, `test_shop_rest_e2e.gd` |
| `test_factions.py` | replaced | F5 — `test_factions.gd`, `test_moderation_event_e2e.gd` |
| `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` | replaced | B2–B4 — `test_floor_generator_connectivity.gd`, `test_floor_generator_exit_path.gd`, `test_floor_population_safety.gd` |
| `test_guilds.py` | replaced | B3/E1 — `test_floor_generator_rooms.gd`, `test_dialogue.gd` |
| `test_healing_system.py` | replaced | C1/D4 — `test_status_effects.gd`, `test_shop_rest_e2e.gd` |
| `test_hero_classes.py` | replaced | F2 — `test_hero_classes.gd`, `test_floor_three_choice_e2e.gd` |
| `test_identification.py` | replaced | D3 — `test_identification.gd` |
| `test_inventory.py` | replaced | D1 — `test_inventory.gd`, `test_pickup_inventory_e2e.gd`, `test_equip_use_item_e2e.gd` |
| `test_item_details.py` | replaced | D3 — `test_equipment.gd`, `test_identification.gd`, `test_equip_use_item_e2e.gd` |
| `test_kill_method_gold.py` | replaced | C2/D4 — `test_melee_combat.gd`, `test_economy.gd` |
| `test_limb_wounds.py` | replaced | C2 — `test_limb_wounds.gd` |
| `test_loot.py` | replaced | D2 — `test_loot_resolver.gd`, `test_world_chest_loot_e2e.gd` |
| `test_magic.py` | replaced | C5 — `test_magic.gd`, `test_spell_casting_e2e.gd` |
| `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` | replaced | G2/D6 — `test_full_ui_navigation_e2e.gd`, `test_large_catalog_menu_e2e.gd` |
| `test_minimap.py` | replaced | G2 — `test_minimap.gd`, `test_black_fog_e2e.gd` |
| `test_narrative_resurrection.py` | replaced | F6 — `test_death_resurrection.gd`, `test_death_mode_e2e.gd` |
| `test_party_system.py` | replaced | E5 — `test_party_system.gd`, `test_recruit_party_e2e.gd` |
| `test_playtest_fixes.py` | replaced | G6 — `test_achievements.gd`, `test_floor_deadline.gd`, `test_world_chest_loot_e2e.gd` |
| `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` | replaced | E3 — `test_quests.gd`, `test_quest_lifecycle_e2e.gd` |
| `test_quests_v3.py` | replaced | E3 — `test_quests.gd`, `test_quest_lifecycle_e2e.gd` |
| `test_race_class.py` | replaced | F2 — `test_race_class.gd`, `test_floor_three_choice_e2e.gd` |
| `test_real_time_deadline.py` | replaced | B6 — `test_floor_deadline.gd`, `test_stair_deadline_e2e.gd` |
| `test_realworld_items.py` | replaced | D6 — `test_bulk_content_loading.gd`, `test_large_catalog_menu_e2e.gd` |
| `test_recap.py` | replaced | F4 — `test_recap.gd`, `test_audience_episode_e2e.gd` |
| `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` | replaced | G1 — `test_save_repository.gd`, `test_ascii_save_migration.gd`, `test_save_load_e2e.gd` |
| `test_syndicate.py` | replaced | F5 — `test_syndicate.gd`, `test_moderation_event_e2e.gd` |
| `test_titles.py` | replaced | F3 — `test_titles.gd`, `test_achievement_reward_e2e.gd` |
| `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"
+179 -22
View File
@@ -1,35 +1,192 @@
; 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
[application]
config/name="Dungeon Crawler World"
run/main_scene="res://scenes/Game.tscn"
run/main_scene="res://scenes/menu/MainMenu.tscn"
config/features=PackedStringArray("4.7")
[display]
window/size/viewport_width=1280
window/size/viewport_height=720
window/size/window_width_override=1280
window/size/window_height_override=720
window/size/resizable=true
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/window_width_override=1920
window/size/window_height_override=1080
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]
enabled=PackedStringArray("res://addons/gut/plugin.cfg")
[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)]}
move_south={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":83),Object(InputEventKey,"physical_keycode":4194322)]}
move_west={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":65),Object(InputEventKey,"physical_keycode":4194319)]}
move_east={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":68),Object(InputEventKey,"physical_keycode":4194321)]}
move_northwest={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":81)]}
move_northeast={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":69)]}
move_southwest={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":90)]}
move_southeast={"deadzone":0.5,"events":[Object(InputEventKey,"physical_keycode":67)]}
interact={
"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":32,"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":69,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_north={
"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":87,"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":4194320,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_south={
"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":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":4194322,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
move_west={
"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":65,"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":4194319,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
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":67,"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":80,"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"
+518 -126
View File
@@ -1,32 +1,78 @@
[gd_scene load_steps=10 format=3]
[gd_scene load_steps=24 format=3]
[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/actor_view.gd" id="3_actor"]
[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/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/presentation/event_presenter.gd" id="7_presenter"]
[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/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/InventoryPanel.tscn" id="12_inventory"]
[ext_resource type="PackedScene" path="res://scenes/ui/ShopPanel.tscn" id="13_shop"]
[ext_resource type="PackedScene" path="res://scenes/ui/CraftingPanel.tscn" id="14_crafting"]
[ext_resource type="PackedScene" path="res://scenes/ui/DialoguePanel.tscn" id="15_dialogue"]
[ext_resource type="PackedScene" path="res://scenes/ui/EventPanel.tscn" id="16_event"]
[ext_resource type="PackedScene" path="res://scenes/ui/QuestPanel.tscn" id="17_quest"]
[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/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"]
bg_color = Color(0.035, 0.055, 0.09, 0.9)
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 = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
content_margin_left = 12.0
content_margin_top = 8.0
content_margin_right = 12.0
content_margin_bottom = 8.0
[ext_resource type="Theme" path="res://assets/ui/dark_fantasy/dark_fantasy_theme.tres" id="36_hud_theme"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/portrait_roger.png" id="38_hud_portrait"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/panel_64x64_nine_patch_source.png" id="37_hud_panel"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/dungeon_ui_background.png" id="38_hud_background"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_vie_pleine.png" id="40_hud_health"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_focus_pleine.png" id="41_hud_focus"]
[ext_resource type="Texture2D" path="res://assets/ui/dark_fantasy/jauge_xp_pleine.png" id="42_hud_xp"]
[sub_resource type="StyleBoxTexture" id="StyleBox_hud_panel"]
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.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"]
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_top = 2
border_width_right = 2
@@ -37,6 +83,60 @@ corner_radius_top_right = 6
corner_radius_bottom_right = 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"]
script = ExtResource("1_game")
@@ -48,6 +148,12 @@ script = ExtResource("7_presenter")
[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="."]
position = Vector2(32, 48)
@@ -60,6 +166,12 @@ script = ExtResource("3_actor")
[node name="Enemies" type="Node2D" parent="World"]
[node name="Companion" type="Sprite2D" parent="World"]
texture = ExtResource("35_companion")
script = ExtResource("3_actor")
[node name="Party" type="Node2D" parent="World"]
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(2, 2)
position_smoothing_enabled = false
@@ -68,152 +180,432 @@ position_smoothing_enabled = false
layer = 1
script = ExtResource("4_hud")
[node name="TargetingOverlay" parent="HUD" instance=ExtResource("9_targeting")]
[node name="SpellTargetingOverlay" parent="HUD" instance=ExtResource("10_spell_targeting")]
[node name="LootPanel" parent="HUD" instance=ExtResource("11_loot")]
[node name="InventoryPanel" parent="HUD" instance=ExtResource("12_inventory")]
[node name="ShopPanel" parent="HUD" instance=ExtResource("13_shop")]
[node name="CraftingPanel" parent="HUD" instance=ExtResource("14_crafting")]
[node name="DialoguePanel" parent="HUD" instance=ExtResource("15_dialogue")]
[node name="EventPanel" parent="HUD" instance=ExtResource("16_event")]
[node name="QuestPanel" parent="HUD" instance=ExtResource("17_quest")]
[node name="CompanionPanel" parent="HUD" instance=ExtResource("18_companion")]
[node name="PartyPanel" parent="HUD" instance=ExtResource("19_party")]
[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
[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 = 20
horizontal_alignment = 1
vertical_alignment = 1
[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 = "Sans-Nom • Étage 0 • Salle inconnue • 0 cases explorées"
[node name="ResponsiveLayout" type="Control" parent="HUD"]
layout_mode = 3
z_index = -1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 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 = 2
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
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 = 2
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/font_size = 16
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"]
layout_mode = 1
anchors_preset = 0
offset_left = 12.0
offset_top = 12.0
offset_right = 248.0
offset_bottom = 94.0
grow_horizontal = 0
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBox_hud_panel")
layout_mode = 0
mouse_filter = 2
[node name="LogPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1
anchors_preset = 1
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")
layout_mode = 0
mouse_filter = 2
[node name="PromptPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1
anchors_preset = 10
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")
layout_mode = 0
mouse_filter = 2
[node name="HelpPanel" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 1
anchors_preset = 12
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")
layout_mode = 0
mouse_filter = 2
[node name="PlayerHealthLabel" type="Label" parent="HUD"]
layout_mode = 1
anchors_preset = 0
offset_left = 26.0
offset_top = 26.0
offset_right = 236.0
offset_bottom = 46.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 1, 1, 1)
[node name="QuickSlotStrip" type="PanelContainer" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
[node name="QuickSlotHint" type="Label" parent="HUD/ResponsiveLayout"]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(0.86, 0.78, 0.58, 1)
theme_override_font_sizes/font_size = 16
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 = "Sans-Nom"
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
text = "PV du joueur : 12/12"
vertical_alignment = 1
[node name="HealthBar" type="ProgressBar" parent="HUD"]
layout_mode = 0
mouse_filter = 2
max_value = 12.0
value = 12.0
show_percentage = false
theme_override_styles/background = SubResource("StyleBox_xp_background")
theme_override_styles/fill = SubResource("StyleBox_health_fill")
[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_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="GoldLabel" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(1, 0.84, 0.35, 1)
theme_override_font_sizes/font_size = 18
text = "Or : 0"
vertical_alignment = 1
[node name="QuestTrackerLabel" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(0.65, 1, 0.72, 1)
theme_override_font_sizes/font_size = 14
text = "Quêtes : aucune"
autowrap_mode = 2
vertical_alignment = 1
[node name="SpellLabel" type="Label" parent="HUD"]
layout_mode = 0
theme_override_colors/font_color = Color(0.82, 0.7, 1, 1)
theme_override_font_sizes/font_size = 14
vertical_alignment = 1
[node name="EnemyHealthLabel" type="Label" parent="HUD"]
layout_mode = 1
anchors_preset = 0
offset_left = 26.0
offset_top = 48.0
offset_right = 236.0
offset_bottom = 68.0
grow_horizontal = 0
grow_vertical = 0
layout_mode = 0
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"]
layout_mode = 1
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
layout_mode = 0
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"]
layout_mode = 0
theme_override_colors/font_color = Color(1, 0.76, 0.4, 1)
theme_override_font_sizes/font_size = 14
autowrap_mode = 2
vertical_alignment = 1
[node name="EventLog" type="RichTextLabel" parent="HUD"]
layout_mode = 1
anchors_preset = 1
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
layout_mode = 0
mouse_filter = 2
bbcode_enabled = false
fit_content = false
theme_override_colors/default_color = Color(1, 1, 0.8, 1)
theme_override_font_sizes/normal_font_size = 14
[node name="ContextPromptLabel" type="Label" parent="HUD"]
layout_mode = 1
anchors_preset = 10
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
[node name="ActionHintLabel" type="Label" parent="HUD/ResponsiveLayout/PromptPanel" groups=["hud_command_hints"]]
layout_mode = 0
mouse_filter = 2
theme_override_colors/font_color = Color(1, 0.92, 0.63, 1)
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
vertical_alignment = 1
[node name="HelpLabel" type="Label" parent="HUD"]
layout_mode = 1
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
[node name="HelpLabel" 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 = 14
text = "Déplacer : ZQSD / Flèches • Interagir : Espace ou E"
text = "Déplacer ZQSD • Interagir Espace • Inventaire I • Sauvegarde V • Aide F1"
clip_text = false
horizontal_alignment = 1
vertical_alignment = 1
+156
View File
@@ -0,0 +1,156 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/presentation/menu/character_creation.gd" id="1_creation"]
[sub_resource type="StyleBoxFlat" id="StyleBox_panel"]
bg_color = Color(0.035, 0.055, 0.09, 0.97)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
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
content_margin_left = 28.0
content_margin_top = 20.0
content_margin_right = 28.0
content_margin_bottom = 20.0
[node name="CharacterCreation" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_creation")
[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 = -270.0
offset_top = -310.0
offset_right = 270.0
offset_bottom = 310.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 = 9
[node name="Title" type="Label" parent="Panel/Layout"]
custom_minimum_size = Vector2(0, 32)
layout_mode = 2
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
theme_override_font_sizes/font_size = 28
text = "NEW RUN"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Fields" type="VBoxContainer" parent="Panel/Layout"]
layout_mode = 2
theme_override_constants/separation = 6
[node name="NameLabel" type="Label" parent="Panel/Layout/Fields"]
layout_mode = 2
text = "Character name"
[node name="NameEdit" type="LineEdit" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
placeholder_text = "Sans-Nom"
[node name="PetCheck" type="CheckBox" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 27)
layout_mode = 2
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"]
layout_mode = 2
text = "Generation seed"
[node name="SeedEdit" type="LineEdit" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
placeholder_text = "Enter a seed"
[node name="DifficultyLabel" type="Label" parent="Panel/Layout/Fields"]
layout_mode = 2
text = "Difficulty"
[node name="DifficultyOption" type="OptionButton" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
item_count = 4
selected = 1
popup/item_0/text = "Touriste"
popup/item_0/id = 0
popup/item_0/metadata = "touriste"
popup/item_1/text = "Crawler"
popup/item_1/id = 1
popup/item_1/metadata = "crawler"
popup/item_2/text = "Veteran"
popup/item_2/id = 2
popup/item_2/metadata = "veteran"
popup/item_3/text = "Masochiste"
popup/item_3/id = 3
popup/item_3/metadata = "masochiste"
[node name="DeathModeLabel" type="Label" parent="Panel/Layout/Fields"]
layout_mode = 2
text = "Death mode"
[node name="PermadeathOption" type="OptionButton" parent="Panel/Layout/Fields"]
custom_minimum_size = Vector2(0, 31)
layout_mode = 2
item_count = 2
selected = 0
popup/item_0/text = "Classic — save and reload"
popup/item_0/id = 0
popup/item_1/text = "Permadeath — one life"
popup/item_1/id = 1
[node name="ValidationLabel" type="Label" parent="Panel/Layout"]
custom_minimum_size = Vector2(0, 25)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.48, 0.44, 1)
horizontal_alignment = 1
vertical_alignment = 1
[node name="Actions" type="HBoxContainer" parent="Panel/Layout"]
layout_mode = 2
theme_override_constants/separation = 10
alignment = 1
[node name="StartRunButton" type="Button" parent="Panel/Layout/Actions"]
custom_minimum_size = Vector2(180, 44)
layout_mode = 2
text = "START RUN"
[node name="CancelButton" type="Button" parent="Panel/Layout/Actions"]
custom_minimum_size = Vector2(120, 44)
layout_mode = 2
text = "BACK"
+132
View File
@@ -0,0 +1,132 @@
[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="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/SaveLoadPanel.tscn" id="4_save_load"]
[sub_resource type="StyleBoxFlat" id="StyleBox_menu"]
bg_color = Color(0.025, 0.04, 0.075, 0.96)
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 = 56.0
content_margin_top = 40.0
content_margin_right = 56.0
content_margin_bottom = 40.0
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_menu")
[node name="Backdrop" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.005, 0.008, 0.02, 1)
mouse_filter = 2
[node name="Menu" 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 = -245.0
offset_top = -255.0
offset_right = 245.0
offset_bottom = 255.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_menu")
[node name="Layout" type="VBoxContainer" parent="Menu"]
layout_mode = 2
theme_override_constants/separation = 9
[node name="Title" type="Label" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
theme_override_font_sizes/font_size = 34
text = "DUNGEON CRAWLER WORLD"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Subtitle" type="Label" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 25)
layout_mode = 2
theme_override_colors/font_color = Color(0.7, 0.82, 0.94, 1)
theme_override_font_sizes/font_size = 16
text = "THE DUNGEON AWAITS"
horizontal_alignment = 1
vertical_alignment = 1
[node name="ActionSpacer" type="Control" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 14)
layout_mode = 2
mouse_filter = 2
[node name="NewRunButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "NEW RUN"
[node name="ContinueButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "CONTINUE"
[node name="LoadSlotButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "LOAD SLOT"
[node name="OptionsButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "OPTIONS"
[node name="CatalogButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "CONTENT CATALOG (C)"
[node name="QuitButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "QUIT"
[node name="StatusSpacer" type="Control" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 6)
layout_mode = 2
mouse_filter = 2
[node name="StatusLabel" type="Label" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
[node name="CharacterCreation" parent="." instance=ExtResource("2_creation")]
[node name="CatalogBrowser" parent="." instance=ExtResource("3_catalog")]
[node name="SaveLoadPanel" parent="." instance=ExtResource("4_save_load")]
@@ -0,0 +1,52 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/spell_targeting_overlay.gd" id="1_overlay"]
[sub_resource type="StyleBoxFlat" id="StyleBox_targeting"]
bg_color = Color(0.12, 0.06, 0.18, 0.96)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.62, 0.38, 0.95, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[node name="SpellTargetingOverlay" type="Control"]
layout_mode = 3
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -360.0
offset_top = -190.0
offset_right = 360.0
offset_bottom = -142.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
script = ExtResource("1_overlay")
[node name="Panel" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_targeting")
[node name="TargetLabel" type="Label" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0.9, 0.8, 1, 1)
theme_override_font_sizes/font_size = 16
horizontal_alignment = 1
vertical_alignment = 1
+52
View File
@@ -0,0 +1,52 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/targeting_overlay.gd" id="1_overlay"]
[sub_resource type="StyleBoxFlat" id="StyleBox_targeting"]
bg_color = Color(0.06, 0.1, 0.15, 0.96)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.95, 0.7, 0.25, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[node name="TargetingOverlay" type="Control"]
layout_mode = 3
anchors_preset = 10
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -300.0
offset_top = -140.0
offset_right = 300.0
offset_bottom = -96.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
script = ExtResource("1_overlay")
[node name="Panel" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_targeting")
[node name="TargetLabel" type="Label" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(1, 0.9, 0.65, 1)
theme_override_font_sizes/font_size = 16
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/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
+73
View File
@@ -0,0 +1,73 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/catalog_browser.gd" id="1_browser"]
[sub_resource type="StyleBoxFlat" id="StyleBox_catalog_browser"]
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.46, 0.72, 0.95, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="CatalogBrowser" 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 = -400.0
offset_top = -245.0
offset_right = 400.0
offset_bottom = 245.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_catalog_browser")
script = ExtResource("1_browser")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -350.0
offset_top = 18.0
offset_right = 350.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.65, 0.84, 1, 1)
theme_override_font_sizes/font_size = 24
text = "CONTENT CATALOG"
horizontal_alignment = 1
[node name="Search" type="LineEdit" parent="."]
layout_mode = 0
offset_left = 28.0
offset_top = 58.0
offset_right = 772.0
offset_bottom = 90.0
placeholder_text = "Search name or id"
[node name="Entries" type="RichTextLabel" parent="."]
layout_mode = 0
offset_left = 28.0
offset_top = 104.0
offset_right = 475.0
offset_bottom = 450.0
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17
[node name="Details" type="RichTextLabel" parent="."]
layout_mode = 0
offset_left = 500.0
offset_top = 104.0
offset_right = 772.0
offset_bottom = 450.0
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17
+60
View File
@@ -0,0 +1,60 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/character_panel.gd" id="1_character"]
[sub_resource type="StyleBoxFlat" id="StyleBox_character_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.66, 0.82, 0.42, 0.95)
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"]
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 = -220.0
offset_top = -170.0
offset_right = 220.0
offset_bottom = 170.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_character_panel")
script = ExtResource("1_character")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -185.0
offset_top = 18.0
offset_right = 185.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.75, 0.94, 0.55, 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 = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -24.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
+60
View File
@@ -0,0 +1,60 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/companion_panel.gd" id="1_companion"]
[sub_resource type="StyleBoxFlat" id="StyleBox_companion_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.55, 0.8, 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="CompanionPanel" 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 = -220.0
offset_top = -145.0
offset_right = 220.0
offset_bottom = 145.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_companion_panel")
script = ExtResource("1_companion")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -185.0
offset_top = 18.0
offset_right = 185.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.62, 0.87, 1, 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 = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -24.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
+65
View File
@@ -0,0 +1,65 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/crafting_panel.gd" id="1_crafting"]
[sub_resource type="StyleBoxFlat" id="StyleBox_crafting_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.5, 0.8, 0.38, 0.95)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="CraftingPanel" 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 = -400.0
offset_top = -235.0
offset_right = 400.0
offset_bottom = 235.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_crafting_panel")
script = ExtResource("1_crafting")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -350.0
offset_top = 18.0
offset_right = 350.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.7, 1, 0.55, 1)
theme_override_font_sizes/font_size = 24
text = "ALCHIMIE ET ARTISANAT"
horizontal_alignment = 1
[node name="Entries" type="RichTextLabel" parent="."]
layout_mode = 0
offset_left = 28.0
offset_top = 66.0
offset_right = 355.0
offset_bottom = 400.0
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 18
[node name="Details" type="RichTextLabel" parent="."]
layout_mode = 0
offset_left = 380.0
offset_top = 66.0
offset_right = 770.0
offset_bottom = 420.0
theme_override_colors/default_color = Color(0.92, 0.95, 1, 1)
theme_override_font_sizes/normal_font_size = 17
+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"
+71
View File
@@ -0,0 +1,71 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/dialogue_panel.gd" id="1_dialogue"]
[sub_resource type="StyleBoxFlat" id="StyleBox_dialogue_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.35, 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
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"]
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 = -480.0
offset_top = -360.0
offset_right = 480.0
offset_bottom = 360.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_dialogue_panel")
script = ExtResource("1_dialogue")
[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(0.55, 0.9, 1, 1)
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 300)
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 = 20
[node name="Entries" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 190)
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/default_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/normal_font_size = 19
[node name="Help" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_colors/font_color = Color(0.55, 0.9, 1, 1)
theme_override_font_sizes/font_size = 17
text = "↑/↓ Choisir Entrée Confirmer Échap Partir"
horizontal_alignment = 1
vertical_alignment = 1
+71
View File
@@ -0,0 +1,71 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/event_panel.gd" id="1_event"]
[sub_resource type="StyleBoxFlat" id="StyleBox_event_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
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"]
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 = -480.0
offset_top = -360.0
offset_right = 480.0
offset_bottom = 360.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_event_panel")
script = ExtResource("1_event")
[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.84, 0.42, 1)
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 300)
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 = 20
[node name="Entries" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 190)
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/default_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/normal_font_size = 19
[node name="Help" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.84, 0.42, 1)
theme_override_font_sizes/font_size = 17
text = "↑/↓ Choisir Entrée Confirmer Échap Partir"
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
+83
View File
@@ -0,0 +1,83 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/inventory_panel.gd" id="1_inventory"]
[sub_resource type="StyleBoxFlat" id="StyleBox_inventory_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
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"]
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 = -400.0
offset_top = -260.0
offset_right = 400.0
offset_bottom = 260.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_inventory_panel")
script = ExtResource("1_inventory")
[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(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 24
text = "INVENTAIRE"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Columns" type="HBoxContainer" parent="Layout"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 20
[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_font_sizes/normal_font_size = 18
scroll_active = true
scroll_following = false
[node name="Details" type="RichTextLabel" parent="Layout/Columns"]
custom_minimum_size = Vector2(400, 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_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
+65
View File
@@ -0,0 +1,65 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/loot_panel.gd" id="1_loot"]
[sub_resource type="StyleBoxFlat" id="StyleBox_loot_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
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"]
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 = -210.0
offset_top = -145.0
offset_right = 210.0
offset_bottom = 145.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_loot_panel")
script = ExtResource("1_loot")
[node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 2
theme_override_constants/separation = 14
[node name="Title" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 24
text = "COFFRE OUVERT"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Entries" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 148)
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 = 19
[node name="TakeAll" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 17
text = "Entrée / Espace — Tout prendre"
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/party_panel.gd" id="1_party"]
[sub_resource type="StyleBoxFlat" id="StyleBox_party_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.55, 0.8, 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="PartyPanel" 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 = -220.0
offset_top = -145.0
offset_right = 220.0
offset_bottom = 145.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_party_panel")
script = ExtResource("1_party")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -185.0
offset_top = 18.0
offset_right = 185.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.62, 0.87, 1, 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 = 30.0
offset_top = 62.0
offset_right = -30.0
offset_bottom = -24.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
+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
+71
View File
@@ -0,0 +1,71 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/quest_panel.gd" id="1_quest"]
[sub_resource type="StyleBoxFlat" id="StyleBox_quest_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.42, 0.82, 0.55, 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 = 36.0
content_margin_top = 28.0
content_margin_right = 36.0
content_margin_bottom = 28.0
[node name="QuestPanel" 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 = -480.0
offset_top = -360.0
offset_right = 480.0
offset_bottom = 360.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_quest_panel")
script = ExtResource("1_quest")
[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(0.55, 1, 0.67, 1)
theme_override_font_sizes/font_size = 24
horizontal_alignment = 1
vertical_alignment = 1
[node name="Body" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 300)
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 = 19
[node name="Entries" type="RichTextLabel" parent="Layout"]
custom_minimum_size = Vector2(0, 190)
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/default_color = Color(0.7, 1, 0.75, 1)
theme_override_font_sizes/normal_font_size = 19
[node name="Help" type="Label" parent="Layout"]
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_colors/font_color = Color(0.55, 1, 0.67, 1)
theme_override_font_sizes/font_size = 17
text = "↑/↓ Choisir Entrée Accepter A Abandonner Échap Fermer"
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"
+77
View File
@@ -0,0 +1,77 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="Script" path="res://scripts/presentation/shop_panel.gd" id="1_shop"]
[sub_resource type="StyleBoxFlat" id="StyleBox_shop_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="ShopPanel" 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 = -260.0
offset_top = -185.0
offset_right = 260.0
offset_bottom = 185.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_shop_panel")
script = ExtResource("1_shop")
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_left = 0.5
anchor_right = 0.5
offset_left = -235.0
offset_top = 18.0
offset_right = 235.0
offset_bottom = 46.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 20
horizontal_alignment = 1
[node name="Entries" 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 = -58.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 = 19
[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 = -230.0
offset_top = -43.0
offset_right = 230.0
offset_bottom = -18.0
grow_horizontal = 2
theme_override_colors/font_color = Color(1, 0.9, 0.5, 1)
theme_override_font_sizes/font_size = 16
text = "↑/↓ Choisir Entrée Acheter Échap Partir"
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/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."
+74 -33
View File
@@ -13,10 +13,20 @@ import sys
import zlib
from pathlib import Path
WIDTH = 1280
HEIGHT = 720
VIEWPORT = (256, 40, 1024, 678)
UNKNOWN = (4, 6, 18)
REFERENCE_WIDTH = 1920
REFERENCE_HEIGHT = 1080
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)
# Captured explored tiles are texture modulated, so classify their blue-black
# pixels by palette range rather than expecting one flat overlay color.
EXPLORED_MAX_LUMINANCE = 0.35
def fail(message: str) -> "NoReturn":
@@ -65,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):
fail("incomplete PNG")
width, height, depth, color_type, compression, filtering, interlace = header
if (width, height) != (WIDTH, HEIGHT):
fail(f"expected {WIDTH}x{HEIGHT} PNG, got {width}x{height}")
expected_dimensions = EXPECTED_DIMENSIONS.get(path.name)
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):
fail("visual capture must be an 8-bit RGB or RGBA PNG")
if (compression, filtering, interlace) != (0, 0, 0):
@@ -136,21 +152,46 @@ def luminance(rgb: tuple[int, int, int]) -> float:
return 0.2126 * red + 0.7152 * green + 0.0722 * blue
def is_visible(pixel: tuple[int, int, int]) -> bool:
# Visible terrain can be either the neutral wall texture or the brown floor
# 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:
# Texture-preserving explored terrain is rendered under a blue-black fog
# overlay. GPU blend rounding and the authored floor texture produce a
# palette rather than one portable exact RGB value; accept only its dark,
# 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:
width, height = EXPECTED_DIMENSIONS[path.name]
observed = list(pixels(path))
dungeon = (
observed[y * WIDTH + x]
for y in range(VIEWPORT[1], VIEWPORT[3])
for x in range(VIEWPORT[0], VIEWPORT[2])
)
dungeon_pixels = list(dungeon)
viewport = viewport_for(width, height)
dungeon_pixels = [
observed[y * width + x]
for y in range(viewport[1], viewport[3])
for x in range(viewport[0], viewport[2])
]
non_black = sum(pixel != (0, 0, 0) for pixel in dungeon_pixels)
unknown_pixels = [pixel for pixel in dungeon_pixels if pixel == UNKNOWN]
explored_pixels = [
pixel
for pixel in dungeon_pixels
if pixel[0] >= 196 and pixel[1] >= 207 and pixel[2] >= 217
]
visible_pixels = [pixel for pixel in dungeon_pixels if is_visible(pixel)]
explored_pixels = [pixel for pixel in dungeon_pixels if is_explored(pixel)]
if non_black == 0:
fail("capture dungeon region is entirely black")
@@ -159,29 +200,29 @@ def measure(path: Path) -> None:
if unknown_pixels
else 1.0
)
if path.name == "visual-check.png":
if not unknown_pixels or UNKNOWN[2] <= UNKNOWN[0] or unknown_luminance >= 0.1:
fail("unknown fog is not distinguishable blue-black")
else:
if not explored_pixels:
fail("missing explored floor pixels in exit capture")
# Measure the RGB values that were actually detected, rather than the
# renderer's pre-modulation tint. This catches capture/readback regressions.
explored_luminances = [luminance(pixel) for pixel in explored_pixels]
explored_luminance = sum(explored_luminances) / len(explored_luminances)
if explored_luminance < 0.55:
fail(f"detected explored luminance {explored_luminance:.3f} is below 0.55")
explored_luminance = (
sum(luminance(pixel) for pixel in explored_pixels) / len(explored_pixels)
if explored_pixels
else 0.0
else 1.0
)
if not unknown_pixels or UNKNOWN != (1, 2, 5) or unknown_luminance >= explored_luminance:
fail("missing or incorrectly ordered unknown black-blue fog pixels")
if not visible_pixels:
fail("missing unmodulated visible terrain pixels")
if path.name == "visual-check-exit.png":
if not explored_pixels:
fail("missing texture-preserving explored terrain pixels in exit capture")
if explored_luminance > EXPLORED_MAX_LUMINANCE:
fail(
f"detected explored luminance {explored_luminance:.3f} exceeds "
f"{EXPLORED_MAX_LUMINANCE:.2f}"
)
print(
f"visual measurement: {path} "
f"dungeon_non_black_pixels={non_black} "
f"unknown_pixels={len(unknown_pixels)} unknown_luminance={unknown_luminance:.3f} "
f"explored_floor_pixels={len(explored_pixels)} "
f"detected_explored_luminance={explored_luminance:.3f}"
f"visible_pixels={len(visible_pixels)} "
f"explored_pixels={len(explored_pixels)} explored_luminance={explored_luminance:.3f} "
f"unknown_pixels={len(unknown_pixels)} unknown_luminance={unknown_luminance:.3f}"
)
+139 -1
View File
@@ -1,18 +1,156 @@
class_name ActorState
extends RefCounted
const LimbWoundsType = preload("res://scripts/domain/combat/limb_wounds.gd")
const StatusEffectType = preload("res://scripts/domain/combat/status_effect.gd")
const ExperienceType = preload("res://scripts/domain/progression/experience.gd")
var id: StringName
var cell: Vector2i
var hit_points: int
var max_hit_points: int
# Legacy basic damage remains the unarmed/default weapon damage.
var attack_damage: int
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 = {}
func _init(new_id: StringName, new_cell: Vector2i, new_hit_points: int, new_attack_damage: int) -> void:
# Data-backed combat stats. Defaults retain the pre-C2 prototype fixtures.
var accuracy := 30
var defense := 0
var armor := 0
var weapon_damage := 0
var damage_variance := 0
var penetration := 0
var crit_chance := 0.0
var crit_mult := 1.5
var block := 0
var stance: StringName = &"none"
var xp_reward := 0
# `xp` remains the legacy compatibility ledger. `progression` is authoritative
# for thresholds and reward points; grant_xp keeps both representations synced.
var xp := 0
var progression: Experience
var loot_table: StringName = &""
var perception := 0
# Equipment is owned by RunState, but combat resolves against this live actor.
# Keep its applied values and a construction-time combat baseline separate so
# repeated equipment recomputes do not stack modifiers onto stale live stats.
var equipment_attribute_modifiers: Dictionary[StringName, int] = {}
var equipment_skill_modifiers: Dictionary[StringName, int] = {}
var equipment_combat_modifiers: Dictionary[StringName, Variant] = {}
var _base_equipment_combat_stats: Dictionary[StringName, Variant] = {}
# C6 keeps trap proficiency on the lightweight actor until the full skill state
# owns the player model. Imported traps still name their required `traps` skill.
var trap_skill := 0
# Tactical data is copied from the ASCII enemy definition at spawn/load time.
var ai_behavior: StringName = &"legacy"
# Legacy/demo fixtures did not carry a catalog definition; keep their previous
# global-chase behavior while catalog-backed enemies overwrite this value.
var vision_range := 99
var attack_range := 1
# C4 retains equipment as data definitions until the inventory slice owns it.
# The active ranged definition is enough to resolve targeting safely now.
var ranged_weapon: Dictionary = {}
var ammunition := 0
# C5 keeps the active-player focus resource on the combat actor until D1 owns
# full character/equipment persistence. PlayerState remains the character-model source.
var max_focus := 15
var focus := 15
var status_effects: Array[StatusEffect] = []
var wounds: LimbWounds
func _init(new_id: StringName, new_cell: Vector2i, new_hit_points: int, new_attack_damage: int, new_content_id: StringName = &"", combat_data: Dictionary = {}) -> void:
id = new_id
cell = new_cell
hit_points = new_hit_points
max_hit_points = new_hit_points
attack_damage = new_attack_damage
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))
defense = int(combat_data.get("defense", defense))
armor = int(combat_data.get("armor", armor))
weapon_damage = int(combat_data.get("weapon_damage", combat_data.get("damage", attack_damage)))
damage_variance = int(combat_data.get("damage_variance", damage_variance))
penetration = int(combat_data.get("penetration", penetration))
crit_chance = float(combat_data.get("crit_chance", crit_chance))
crit_mult = float(combat_data.get("crit_mult", crit_mult))
block = int(combat_data.get("block", block))
stance = StringName(combat_data.get("stance", stance))
xp_reward = int(combat_data.get("xp_reward", xp_reward))
xp = int(combat_data.get("xp", xp))
progression = ExperienceType.new(xp)
loot_table = StringName(combat_data.get("loot_table", loot_table))
perception = int(combat_data.get("perception", combat_data.get("per", perception)))
trap_skill = int(combat_data.get("trap_skill", combat_data.get("traps", trap_skill)))
ai_behavior = StringName(combat_data.get("ai", combat_data.get("ai_behavior", ai_behavior)))
vision_range = int(combat_data.get("vision_range", vision_range))
attack_range = int(combat_data.get("range", combat_data.get("attack_range", attack_range)))
_base_equipment_combat_stats = {
&"attack_damage": attack_damage,
&"weapon_damage": weapon_damage,
&"damage_variance": damage_variance,
&"accuracy": accuracy,
&"armor": armor,
&"penetration": penetration,
&"crit_mult": crit_mult,
}
wounds = LimbWoundsType.new()
func recompute_equipment_modifiers(attributes: Dictionary[StringName, int], skills: Dictionary[StringName, int], combat: Dictionary[StringName, Variant]) -> void:
equipment_attribute_modifiers = attributes.duplicate()
equipment_skill_modifiers = skills.duplicate()
equipment_combat_modifiers = combat.duplicate()
for stat: StringName in _base_equipment_combat_stats:
set(stat, _base_equipment_combat_stats[stat])
for stat: StringName in combat:
if _base_equipment_combat_stats.has(stat):
set(stat, _base_equipment_combat_stats[stat] + combat[stat])
func equip_ranged_weapon(definition: Dictionary, ammunition_count: int) -> void:
if StringName(definition.get("weapon_kind", "")) != &"ranged":
push_warning("Only ranged weapon definitions can be equipped for ranged combat.")
return
ranged_weapon = definition.duplicate(true)
ammunition = maxi(0, ammunition_count)
func grant_xp(amount: int) -> Dictionary:
var granted := progression.grant(amount)
xp = progression.total_xp
return granted
func is_alive() -> bool:
return hit_points > 0
func apply_status(effect: StatusEffect) -> void:
for existing in status_effects:
if existing.key == effect.key:
existing.duration = maxi(existing.duration, effect.duration)
return
status_effects.append(effect)
func has_status(key: StringName) -> bool:
return status_effects.any(func(effect: StatusEffect) -> bool: return effect.key == key)
func clear_status(key: StringName) -> void:
status_effects = status_effects.filter(func(effect: StatusEffect) -> bool: return effect.key != key)
func take_damage(amount: int) -> int:
var actual := mini(maxi(0, amount), hit_points)
hit_points -= actual
return actual
func wound_severity(slot: StringName) -> int:
return wounds.severity_at(slot)
func effective_perception() -> int:
return perception - wounds.severity_at(&"head")
func effective_trap_skill() -> int:
return trap_skill - wounds.severity_at(&"head")
func effective_max_hit_points() -> int:
var reduction := int(float(max_hit_points) * 0.05 * wounds.severity_at(&"torso"))
return maxi(1, max_hit_points - reduction)
+76
View File
@@ -0,0 +1,76 @@
class_name CompanionBehaviors
extends RefCounted
const CompanionStateType = preload("res://scripts/domain/entities/companion_state.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] = {}, detected_cells: Dictionary[Vector2i, bool] = {}) -> Dictionary:
if companion == null or not companion.is_alive():
return {"kind": &"idle"}
match CompanionStateType.normalize_stance(companion.stance):
CompanionStateType.Stance.STAY_BACK:
return _follow(companion.actor, player, map, blocked_cells)
CompanionStateType.Stance.DEFEND_ME:
return _defend(companion.actor, player, enemies, map, blocked_cells)
CompanionStateType.Stance.ATTACK_ON_SIGHT:
return _aggressive(companion.actor, player, enemies, map, blocked_cells, detected_cells)
_:
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:
if actor.cell.distance_to(player.cell) <= 1.5:
return {"kind": &"idle"}
return _move_toward(actor, player.cell, player.cell, map, blocked_cells)
static func _defend(actor: ActorState, player: ActorState, enemies: Dictionary[StringName, ActorState], map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
var targets: Array[ActorState] = []
for enemy: ActorState in enemies.values():
if enemy.is_alive() and enemy.cell.distance_to(player.cell) <= 1.5:
targets.append(enemy)
targets.sort_custom(func(first: ActorState, second: ActorState) -> bool: return String(first.id) < String(second.id))
if not targets.is_empty():
if actor.cell.distance_to(targets[0].cell) <= 1.5:
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)
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
@@ -0,0 +1 @@
uid://ccicjlejwfn4e
+94
View File
@@ -0,0 +1,94 @@
class_name EnemyBehaviors
extends RefCounted
const PathfindingType = preload("res://scripts/domain/ai/pathfinding.gd")
const MELEE_RANGE := 1
# C3 deliberately only selects movement and melee. Ranged attacks remain C4.
# Every catalog behavior is listed deliberately. Unknown data must remain safe
# and observable rather than inheriting an accidental aggressive fallback.
static func decide(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool] = {}) -> Dictionary:
match enemy.ai_behavior:
&"legacy":
return _legacy_decide(enemy, player, map, blocked_cells)
&"passive", &"defensive":
return {"kind": &"idle"}
&"aggressive":
return _aggressive_decide(enemy, player, map, blocked_cells)
&"guard":
return _guard_decide(enemy, player, map, blocked_cells)
&"boss":
return _boss_aggressive_decide(enemy, player, map, blocked_cells)
&"ranged":
return _ranged_decide(enemy, player, map, blocked_cells)
_:
return _unsupported_behavior_decision(enemy.ai_behavior)
# Enemy data defines tactical detection distance. Pathfinding subsequently
# handles occluders rather than treating a wall/door as a reason to forget a
# target that is already within the enemy's vision range.
static func _aggressive_decide(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
if not _can_see_player(enemy, player):
return {"kind": &"idle"}
if _manhattan_distance(enemy.cell, player.cell) == MELEE_RANGE:
return {"kind": &"melee"}
return _move_toward(enemy, player, map, blocked_cells)
# Guards hold their post until the player enters their data-backed vision, then
# use the same close/approach engagement rules as an aggressive enemy.
static func _guard_decide(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
return _aggressive_decide(enemy, player, map, blocked_cells)
# Bosses intentionally use this named aggressive profile in C3. Boss-specific
# abilities and phases remain future behavior work rather than an implicit
# fallback through the generic branch.
static func _boss_aggressive_decide(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
return _aggressive_decide(enemy, player, map, blocked_cells)
static func _ranged_decide(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
if not _can_see_player(enemy, player):
return {"kind": &"idle"}
if _manhattan_distance(enemy.cell, player.cell) <= enemy.attack_range:
return {"kind": &"idle"}
return _move_toward(enemy, player, map, blocked_cells)
static func _can_see_player(enemy: ActorState, player: ActorState) -> bool:
return _manhattan_distance(enemy.cell, player.cell) <= enemy.vision_range
static func _unsupported_behavior_decision(behavior: StringName) -> Dictionary:
return {
"kind": &"idle",
"diagnostic": &"unsupported_ai_behavior",
"behavior": behavior,
}
static func _legacy_decide(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
var delta := player.cell - enemy.cell
if _manhattan_distance(enemy.cell, player.cell) == MELEE_RANGE:
return {"kind": &"melee"}
var step := Vector2i(int(sign(delta.x)), int(sign(delta.y)))
if abs(delta.x) >= abs(delta.y):
step.y = 0
else:
step.x = 0
var target: Vector2i = enemy.cell + step
if map.is_walkable(target) and target != player.cell and not blocked_cells.has(target):
return {"kind": &"move", "to_cell": target}
return {"kind": &"idle"}
static func _move_toward(enemy: ActorState, player: ActorState, map: GridMapState, blocked_cells: Dictionary[Vector2i, bool]) -> Dictionary:
var occupied := blocked_cells.duplicate()
occupied.erase(enemy.cell)
occupied[player.cell] = true
var target_cells: Array[Vector2i] = []
for direction: Vector2i in PathfindingType.CARDINAL_DIRECTIONS:
var target: Vector2i = player.cell + direction
if map.is_walkable(target) and not occupied.has(target):
target_cells.append(target)
var path := PathfindingType.find_path_to_any(map, enemy.cell, target_cells, occupied)
if path.is_empty():
return {"kind": &"idle"}
return {"kind": &"move", "to_cell": path.front()}
static func _manhattan_distance(first: Vector2i, second: Vector2i) -> int:
return abs(first.x - second.x) + abs(first.y - second.y)
+1
View File
@@ -0,0 +1 @@
uid://26u8jfhpklpb
+39
View File
@@ -0,0 +1,39 @@
class_name PartyTurnEngine
extends RefCounted
const PathfindingType = preload("res://scripts/domain/ai/pathfinding.gd")
# Each living crawler resolves once, in PartyState recruitment order. Later
# members see earlier members' new cells as occupied, which makes movement both
# deterministic and collision-free.
static func resolve_follow_turns(party: PartyState, player: ActorState, map: GridMapState, blocked_cells: Dictionary = {}) -> Array[Dictionary]:
var turns: Array[Dictionary] = []
if party == null or player == null:
return turns
var occupied := blocked_cells.duplicate()
occupied[player.cell] = true
for member in party.living_members():
occupied[member.cell] = true
for member in party.living_members():
var from := member.cell
occupied.erase(from)
var target := _next_step(member.cell, player.cell, map, occupied)
if target == member.cell:
occupied[from] = true
turns.append({"actor_id": member.id, "kind": &"party_waited", "from_cell": from, "to_cell": from})
continue
member.cell = target
occupied[target] = true
turns.append({"actor_id": member.id, "kind": &"party_moved", "from_cell": from, "to_cell": target})
return turns
static func _next_step(from: Vector2i, player_cell: Vector2i, map: GridMapState, occupied: Dictionary) -> Vector2i:
if from.distance_to(player_cell) <= 1.5:
return from
var goals: Array[Vector2i] = []
for direction: Vector2i in PathfindingType.CARDINAL_DIRECTIONS:
var goal := player_cell + direction
if map.is_walkable(goal) and not occupied.has(goal):
goals.append(goal)
var path := PathfindingType.find_path_to_any(map, from, goals, occupied)
return path.front() if not path.is_empty() else from
@@ -0,0 +1 @@
uid://f6aav1fjrmpy
+57
View File
@@ -0,0 +1,57 @@
class_name Pathfinding
extends RefCounted
# Fixed ordering is part of the replay contract: equal-length routes always
# resolve identically without consuming random state.
const CARDINAL_DIRECTIONS: Array[Vector2i] = [Vector2i.LEFT, Vector2i.DOWN, Vector2i.RIGHT, Vector2i.UP]
static func find_path(map: GridMapState, start: Vector2i, goal: Vector2i, blocked_cells: Dictionary = {}) -> Array[Vector2i]:
return find_path_to_any(map, start, [goal], blocked_cells)
static func find_path_to_any(map: GridMapState, start: Vector2i, goals: Array[Vector2i], blocked_cells: Dictionary = {}) -> Array[Vector2i]:
var goal_cells: Dictionary[Vector2i, bool] = {}
for goal in goals:
goal_cells[goal] = true
if goal_cells.has(start):
return []
var frontier: Array[Vector2i] = [start]
var previous: Dictionary[Vector2i, Vector2i] = {start: start}
while not frontier.is_empty():
var current: Vector2i = frontier.pop_front()
for direction: Vector2i in CARDINAL_DIRECTIONS:
var next_cell: Vector2i = current + direction
if previous.has(next_cell) or not map.is_walkable(next_cell) or blocked_cells.has(next_cell):
continue
previous[next_cell] = current
if goal_cells.has(next_cell):
return _reconstruct_path(previous, start, next_cell)
frontier.append(next_cell)
return []
static func has_line_of_sight(map: GridMapState, origin: Vector2i, target: Vector2i) -> bool:
var current := origin
var delta_x: int = abs(target.x - origin.x)
var step_x: int = 1 if origin.x < target.x else -1
var delta_y: int = -abs(target.y - origin.y)
var step_y: int = 1 if origin.y < target.y else -1
var error: int = delta_x + delta_y
while current != target:
var doubled_error: int = 2 * error
if doubled_error >= delta_y:
error += delta_y
current.x += step_x
if doubled_error <= delta_x:
error += delta_x
current.y += step_y
if current != target and map.is_opaque(current):
return false
return true
static func _reconstruct_path(previous: Dictionary[Vector2i, Vector2i], start: Vector2i, goal: Vector2i) -> Array[Vector2i]:
var reversed: Array[Vector2i] = []
var current := goal
while current != start:
reversed.append(current)
current = previous[current]
reversed.reverse()
return reversed
+1
View File
@@ -0,0 +1 @@
uid://b5shc50x3x7lj
+73
View File
@@ -0,0 +1,73 @@
class_name CombatEngine
extends RefCounted
# Direct port of the ASCII melee probabilities, reduced to C2's domain inputs.
const MIN_HIT_CHANCE := 0.05
const MAX_HIT_CHANCE := 0.97
const ARM_WOUND_PENALTY := 6
const LEG_WOUND_PENALTY := 6
const DODGE_STANCE_BONUS := 18
const BLOCK_BASE_REDUCTION := 2
var _rolls: Array[float] = []
func _init(scripted_rolls: Array[float] = []) -> void:
_rolls.assign(scripted_rolls)
func resolve_attack(attacker: ActorState, defender: ActorState, grant_xp: bool = true) -> Dictionary:
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 defense_score := defender.defense * 3 - defender.wound_severity(&"legs") * LEG_WOUND_PENALTY
if defender.stance == &"dodge":
defense_score += DODGE_STANCE_BONUS
var hit_chance := clampf(0.55 + float(attack_score - defense_score) * 0.02, MIN_HIT_CHANCE, MAX_HIT_CHANCE)
if _next_roll() > hit_chance:
return {"hit": false, "critical": false, "damage": 0, "events": events}
events.append(_event(&"attack_hit", attacker, defender, {"hit_chance": hit_chance}))
var critical := _next_roll() < attacker.crit_chance
var base_damage := attacker.weapon_damage + _damage_variance(attacker.damage_variance)
var damage: int
# ASCII player attacks use full target armor and weapon penetration.
# Enemy attacks apply block first, then half of the target's armor.
if attacker.id == &"player":
damage = maxi(1, base_damage - maxi(0, defender.armor - attacker.penetration))
if defender.stance == &"block":
damage = maxi(0, damage - BLOCK_BASE_REDUCTION - defender.block / 2)
else:
damage = base_damage
if defender.stance == &"block":
damage = maxi(0, damage - BLOCK_BASE_REDUCTION - defender.block / 2)
if damage > 0:
damage = maxi(1, damage - defender.armor / 2)
if critical:
damage = int(float(damage) * attacker.crit_mult)
var actual := defender.take_damage(damage)
events.append(_event(&"damage_dealt", attacker, defender, {"damage": actual, "critical": critical}))
if not defender.is_alive():
events.append(_event(&"actor_died", defender, attacker, {"killed_by": String(attacker.id)}))
if grant_xp:
var progression := attacker.grant_xp(defender.xp_reward)
var xp_payload := {"xp": defender.xp_reward}
if progression.levels_gained > 0:
xp_payload["levels_gained"] = progression.levels_gained
events.append(_event(&"xp_granted", attacker, defender, xp_payload))
events.append(_event(&"loot_dropped", defender, attacker, {"loot_table": String(defender.loot_table)}))
return {"hit": true, "critical": critical, "damage": actual, "events": events}
func _damage_variance(variance: int) -> int:
if variance <= 0:
return 0
return int(_next_roll() * float(variance + 1))
func _next_roll() -> float:
if _rolls.is_empty():
return 0.0
return clampf(_rolls.pop_front(), 0.0, 0.999999)
func _event(kind: StringName, actor: ActorState, target: ActorState, payload: Dictionary) -> Dictionary:
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}
@@ -0,0 +1 @@
uid://dcxbc8mscls6t
+158
View File
@@ -0,0 +1,158 @@
class_name ConditionEngine
extends RefCounted
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()
func evaluate(condition: Dictionary, context: Dictionary) -> bool:
if condition.is_empty():
return true
var kind := StringName(condition.get("type", ""))
var player: PlayerState = context.get("player")
if player == null:
_diagnose("Condition requires a player: %s" % kind)
return false
match kind:
&"skill":
return player.effective_skill(StringName(condition.get("skill", ""))) >= int(condition.get("min", 0))
&"attr":
return player.effective_attribute(StringName(condition.get("attr", ""))) >= int(condition.get("min", 0))
&"level":
return player.level >= int(condition.get("min", 1))
&"flag":
return player.flags.get(StringName(condition.get("flag", "")), false) == condition.get("equals", true)
&"reputation":
return player.reputation.get(StringName(condition.get("faction", "")), 0) >= int(condition.get("min", 0))
&"gold":
return int(_payload(context).get("gold", 0)) >= int(condition.get("min", 0))
&"archetype":
if condition.has("is_set"):
return (not player.archetype.is_empty()) == bool(condition["is_set"])
return player.archetype == StringName(condition.get("value", ""))
&"has_race":
if condition.has("is_set"):
return (not player.race.is_empty()) == bool(condition["is_set"])
return player.race == StringName(condition.get("value", ""))
&"payload_flag":
return _payload(context).get(StringName(condition.get("key", "")), false) == condition.get("equals", true)
&"payload_equals":
return _payload(context).get(StringName(condition.get("key", ""))) == condition.get("value")
&"payload_min":
return float(_payload(context).get(StringName(condition.get("key", "")), 0)) >= float(condition.get("min", 0))
&"payload_max":
return float(_payload(context).get(StringName(condition.get("key", "")), 0)) <= float(condition.get("max", 0))
&"payload_contains":
var value: Variant = _payload(context).get(StringName(condition.get("key", "")))
return value is Array and value.has(condition.get("value")) or value is String and String(value).contains(String(condition.get("value", "")))
&"quest_state":
var quest_manager: QuestManager = context.get("quest_manager")
return quest_manager != null and quest_manager.condition_met(condition)
&"has_item":
var inventory: InventoryState = context.get("inventory")
if inventory == null:
return false
return inventory.items.any(func(item: ItemInstance) -> bool: return item.definition.id == StringName(condition.get("item", "")))
&"not":
return not evaluate(condition.get("cond", {}), context)
&"all":
for nested: Dictionary in condition.get("conds", []):
if not evaluate(nested, context):
return false
return true
&"any":
for nested: Dictionary in condition.get("conds", []):
if evaluate(nested, context):
return true
return false
_:
_diagnose("Unknown condition type: %s" % kind)
return false
func evaluate_all(conditions: Array, context: Dictionary) -> bool:
for condition: Dictionary in conditions:
if not evaluate(condition, context):
return false
return true
func apply_effects(effects: Array, context: Dictionary) -> Array[Dictionary]:
var applications: Array[Dictionary] = []
for effect: Dictionary in effects:
applications.append(apply_effect(effect, context))
return applications
func apply_effect(effect: Dictionary, context: Dictionary) -> Dictionary:
var player: PlayerState = context.get("player")
var kind := StringName(effect.get("type", ""))
if player == null:
_diagnose("Effect requires a player: %s" % kind)
return {"applied": false, "type": kind}
var quest_manager: QuestManager = context.get("quest_manager")
if quest_manager != null and kind in [&"start_quest", &"complete_objective", &"remove_item"]:
return quest_manager.apply_effect(effect, context)
match kind:
&"set_flag":
player.flags[StringName(effect.get("flag", ""))] = effect.get("value", true)
&"add_attr":
player.modify_attribute(StringName(effect.get("attr", "")), int(effect.get("amount", 1)))
&"add_skill":
player.modify_skill(StringName(effect.get("skill", "")), int(effect.get("amount", 1)))
&"apply_status", &"inflict_status":
player.apply_status(StatusEffectType.new(StringName(effect.get("status", "")), int(effect.get("duration", -1)), int(effect.get("magnitude", 0))))
&"cure_status":
player.clear_status(StringName(effect.get("status", "")))
&"heal":
player.hit_points = mini(player.max_hp(), player.hit_points + int(effect.get("amount", 0)))
&"heal_pct":
player.hit_points = mini(player.max_hp(), player.hit_points + int(player.max_hp() * float(effect.get("pct", 0.0))))
&"damage":
player.hit_points = maxi(0, player.hit_points - int(effect.get("amount", 0)))
&"add_rep":
var faction := StringName(effect.get("faction", ""))
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":
var party: PartyState = context.get("party")
var recruit: ActorState = context.get("recruit")
var map: GridMapState = context.get("map")
if party == null or recruit == null or map == null:
return {"applied": false, "type": kind, "reason": &"missing_party_context"}
var result := party.recruit(recruit, player.cell, map, context.get("blocked_cells", {}))
return {"applied": bool(result.get("accepted", false)), "type": kind, "result": result}
&"message", &"remove_item", &"learn_spell", &"learn_random_spell", &"complete_objective", &"augment_companion":
# Later content slices own the corresponding inventory, quest, NPC, and spell mutations.
pass
_:
_diagnose("Unknown effect type: %s" % kind)
return {"applied": false, "type": kind}
return {"applied": true, "type": kind}
func _payload(context: Dictionary) -> Dictionary:
var payload: Variant = context.get("payload", {})
return payload if payload is Dictionary else {}
func _diagnose(message: String) -> void:
# Keep unsupported content visible to callers without silently granting access.
diagnostics.append(message)
@@ -0,0 +1 @@
uid://u44apfxu8ud4
@@ -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
+61
View File
@@ -0,0 +1,61 @@
class_name LimbWounds
extends RefCounted
# ASCII parity: one recoverable wound per body slot, with severity 1..3.
const SLOTS: Array[StringName] = [&"head", &"torso", &"arms", &"legs"]
const DEFAULT_DURATION := 8
const MAX_SEVERITY := 3
var _wounds: Dictionary[StringName, Dictionary] = {}
func apply(slot: StringName, severity: int = 1, duration: int = DEFAULT_DURATION, source: String = "") -> void:
if not SLOTS.has(slot):
return
var existing: Dictionary = _wounds.get(slot, {})
_wounds[slot] = {
"severity": maxi(int(existing.get("severity", 0)), clampi(severity, 1, MAX_SEVERITY)),
"duration": maxi(int(existing.get("duration", 0)), maxi(1, duration)),
"source": source if not source.is_empty() else String(existing.get("source", "")),
}
func severity_at(slot: StringName) -> int:
return int(_wounds.get(slot, {}).get("severity", 0))
func duration_at(slot: StringName) -> int:
return int(_wounds.get(slot, {}).get("duration", 0))
func source_at(slot: StringName) -> String:
return String(_wounds.get(slot, {}).get("source", ""))
func tick(recovery_multiplier: float = 1.0) -> Array[StringName]:
var recovered: Array[StringName] = []
var step := 2 if recovery_multiplier >= 2.0 else 1
for slot in _wounds.keys():
var wound: Dictionary = _wounds[slot]
wound["duration"] = int(wound["duration"]) - step
if int(wound["duration"]) <= 0:
_wounds.erase(slot)
recovered.append(slot)
else:
_wounds[slot] = wound
return recovered
func active_wounds() -> Array[Dictionary]:
var active: Array[Dictionary] = []
for slot in SLOTS:
if _wounds.has(slot):
var wound: Dictionary = _wounds[slot].duplicate(true)
wound["slot"] = slot
active.append(wound)
return active
func to_dictionary() -> Dictionary:
return _wounds.duplicate(true)
static func from_dictionary(data: Dictionary = {}) -> LimbWounds:
var wounds := LimbWounds.new()
for raw_slot in data:
var slot := StringName(raw_slot)
var wound: Dictionary = data[raw_slot]
wounds.apply(slot, int(wound.get("severity", 1)), int(wound.get("duration", DEFAULT_DURATION)), String(wound.get("source", "")))
return wounds

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