How ranier-lendon/ruingeon works
Ruingeon 2 is a Godot 3D dungeon-combat game. The visible workflow is procedural map generation, room instantiation, room-entry wave spawning, and player/enemy combat. The sampled code supports these links; room-scene details and some scene wiring are not shown, so those relationships are omitted rather than inferred.
Main entry points: SpawnManager.cs Mob spawning · PlayerControl.cs Player control · MapBuilder.cs Map builder · Enemy.cs Enemy AI
Components 15
Dungeon world
- Map generation
scripts/Dungeon/MapSystem.cs - Map builder
scripts/Dungeon/MapBuilder.cs - Dungeon room scenes
scenes/dungeonRooms - Dungeon scene script
scenes/Dungeon.cs
Encounters
- Room wave trigger
scripts/Dungeon/RoomTrigger.cs - Mob spawning
scripts/Dungeon/SpawnManager.cs - Wave spawn data
scripts/Dungeon/DungeonSpawnData.cs - Dungeon mob list
resources/Dungeon1MobList.tres
Combat actors
- Player control
scripts/Player/PlayerControl.cs - Enemy AI
scripts/Enemy/Enemy.cs
Shared runtime
- Attacker contract
scripts/Combat/IAttacker.cs - Damage contract
scripts/Combat/IDamageable.cs - Gravity helper
scripts/Core/IGravity.cs - Game enums
scripts/Core/GlobalEnums.cs
Other components
- Player input
Connections 9
- Player input → Player control: drives
scripts/Player/PlayerControl.cs - Map builder → Map generation: generates map
scripts/Dungeon/MapBuilder.cs - Map builder → Dungeon room scenes: instantiates rooms
scripts/Dungeon/MapBuilder.cs - Room wave trigger → Mob spawning: starts waves
scripts/Dungeon/RoomTrigger.cs - Mob spawning → Wave spawn data: selects wave mobs
scripts/Dungeon/SpawnManager.cs - Mob spawning → Enemy AI: instantiates enemies
scripts/Dungeon/SpawnManager.cs - Player control → Damage contract: deals damage
scripts/Player/PlayerControl.cs - Player control → Gravity helper: applies gravity
scripts/Player/PlayerControl.cs - Enemy AI → Gravity helper: applies gravity
scripts/Enemy/Enemy.cs