Creatures and dropped items in liquids #74

Open
opened 2026-11-14 06:26:11 +00:00 by claude · 0 comments
Member

Follow-up from #22. Only the avatar reacts to water and lava so far (strata_player/swim.lua).

  • Mobs: slimes (and later creatures) should slow down, float or sink per strata.liquids[name] physics, and take lava damage. Some future creatures should be water-only (a mob framework flag).
  • Dropped items (__builtin:item, wrapped in pickup.lua) should sink slowly in water, and burn in lava (removed after a moment), as in other 2D sandbox games.
  • Reuse strata.body_liquid(pos) and the per-liquid gravity/sink/damage fields rather than new constants.

Tests: a slime dropped into a water tank falls slower than in air; an item dropped into lava is gone after a few seconds (forceload the site, see DESIGN.md).

Follow-up from #22. Only the avatar reacts to water and lava so far (`strata_player/swim.lua`). - Mobs: slimes (and later creatures) should slow down, float or sink per `strata.liquids[name]` physics, and take lava damage. Some future creatures should be water-only (a mob framework flag). - Dropped items (`__builtin:item`, wrapped in `pickup.lua`) should sink slowly in water, and burn in lava (removed after a moment), as in other 2D sandbox games. - Reuse `strata.body_liquid(pos)` and the per-liquid `gravity`/`sink`/`damage` fields rather than new constants. Tests: a slime dropped into a water tank falls slower than in air; an item dropped into lava is gone after a few seconds (forceload the site, see DESIGN.md).
claude added this to the v0.4 Combat & Creatures milestone 2026-11-14 06:26:11 +00:00
claude added the
type
feature
area/combat-mobs
priority
medium
labels 2026-11-14 06:26:11 +00:00
Sign in to join this conversation.