diff --git a/assets/levels/01-friendly-obstacles.lvl b/assets/levels/01-friendly-obstacles.lvl index 5470e2e..3eee36a 100644 --- a/assets/levels/01-friendly-obstacles.lvl +++ b/assets/levels/01-friendly-obstacles.lvl @@ -4,11 +4,11 @@ Background: background-lila ############# - # # + # t # #> S # # - # ># ># - #< # # - # v# <# + # ># ^# + #< #W##### + # o v# o# ############# diff --git a/systems/destroyable_system.go b/systems/destroyable_system.go index 45db9b3..ca497a4 100644 --- a/systems/destroyable_system.go +++ b/systems/destroyable_system.go @@ -60,6 +60,10 @@ func (system *DestroyableSystem) Update() error { doorposition, renderable, door := query.Get() for player := range playerobserver.Entities { + if !system.World.Alive(player) { + continue + } + playerposition := (*Position)(system.World.Get(player, posID)) playervelocity := (*Velocity)(system.World.Get(player, veloID)) diff --git a/systems/transient_system.go b/systems/transient_system.go index 5e4bcc0..85cb386 100644 --- a/systems/transient_system.go +++ b/systems/transient_system.go @@ -60,6 +60,10 @@ func (system *TransientSystem) Update() error { transientposition, _, transient := query.Get() for player := range playerobserver.Entities { + if !system.World.Alive(player) { + continue + } + playerposition := (*Position)(system.World.Get(player, posID)) playervelocity := (*Velocity)(system.World.Get(player, veloID))