Stealth Cymbal #3

Merged
notid merged 10 commits from stealth-cymbal into master 2026-04-29 16:56:44 -07:00
Showing only changes of commit c24709d02d - Show all commits

View File

@@ -35,8 +35,9 @@ Room identification at runtime:
The canonical way is via `MainGame.get_current_room_name()`: The canonical way is via `MainGame.get_current_room_name()`:
Use `godot_game_call_method` to call it directly on the node path:
```json ```json
{"command": "eval", "params": {"code": "get_tree().root.get_node('Node2D').get_current_room_name()"}} Call method get_current_room_name on /root/Node2D
``` ```
Returns a string like `"kq4_010_forest_path"`. The implementation extracts the filename from the scene script's resource path (`script_path.trim_suffix(".gd").get_file()`), NOT the node name (which is always `"background"`). Returns a string like `"kq4_010_forest_path"`. The implementation extracts the filename from the scene script's resource path (`script_path.trim_suffix(".gd").get_file()`), NOT the node name (which is always `"background"`).