Something went wrong. Try again.
Something went wrong. Try again.
Files
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 #
- Install Godot 4.7 (see
docs/setup.md). - Open the repo folder in Godot (it imports on first open), then press F5.
- 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 inscenes/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 atdocs/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 = falsethe texture's bottom edge is already at the node origin and it extends upwardy >= 0, andoffset.ymaps downward (negative y buries the sprite under the ground plane). So center horizontally withoffset.x = -texture_width / 2and keepoffset.y = 0. Placeholder art is authored in "pixel = world unit" scale, consumed bySprite3D(pixel_size = 1); ground tiles remain 64x32 2:1 diamonds rendered as flat 3D geometry. Placeholder generator:tools/generate_placeholders.ps1.