Diablo-style isometric norse dungeon crawler written in godot
README.md

SURTR #

An isometric, Norse-mythology, Diablo-like built in Godot 4 (GDScript) — inspired by the roguelite Eitr. Vertical slice goal: the cow level, one class (the Berserker), waves of hell cows, gold loot.

Play #

  1. Install Godot 4.7 (see docs/setup.md).
  2. Open the repo folder in Godot (it imports on first open), then press F5.
  3. Controls: WASD move · mouse aim · left click swing · space dash · SPACE on title/game-over to start/restart.

What is in the slice #

  • Title screen → game → game-over/restart loop.
  • An isometric 2:1 fenced pen (diamond TileSet + Y-sorted entities), built programmatically in scenes/level/cow_level.gd.
  • Berserker: aim by cursor, committed axe swing (windup arc + lunge), dash with i-frames.
  • Hell cows with an IDLE/WANDER/CHASE/WINDUP/DEAD state machine over NavigationAgent2D, telegraphed windup attacks, pack waves (4/6/8).
  • Gold coin loot with magnet pickup, health orb HUD, wave/pack messaging.

Documentation #

  • docs/adr/ — architecture decision records (start at docs/adr/README.md): engine/version, GDScript, 2D-drawn isometric presentation, input scheme, entity/combat architecture, placeholder-first assets, agent tooling (godot-mcp), commit convention.
  • docs/CONTRIBUTING.md — commit style (git-cz / Conventional Commits) and code style.
  • docs/setup.md — Godot install + MCP wiring for agent-driven development.

Physics layer map (keep updated!) #

bit layer name used by
1 world fence static bodies
2 player player body, coin body detection
3 enemies cow bodies
4 enemy_hurtboxes cow Hurtbox areas
5 player_hurtboxes player Hurtbox area

Damage flow: attack activates → sweeps overlapping hurtboxes (mask on the attack area) → calls take_damage() on the hurtbox owner. See ADR 0005.

Asset contract (for future art) #

  • All entity sprites: pivot at the ground contact point (bottom-center), so billboard actors stand correctly (ADR 0009; originally ADR 0003).
  • Sprite3D in 3D differs from Sprite2D: with centered = false the texture's bottom edge is already at the node origin and it extends upward y >= 0, and offset.y maps downward (negative y buries the sprite under the ground plane). So center horizontally with offset.x = -texture_width / 2 and keep offset.y = 0. Placeholder art is authored in "pixel = world unit" scale, consumed by Sprite3D(pixel_size = 1); ground tiles remain 64x32 2:1 diamonds rendered as flat 3D geometry. Placeholder generator: tools/generate_placeholders.ps1.