diff --git a/Engine/src/states/Game.ts b/Engine/src/states/Game.ts index 987925a..6bf76d0 100644 --- a/Engine/src/states/Game.ts +++ b/Engine/src/states/Game.ts @@ -585,16 +585,18 @@ export function GameState(ctx: ContextI, selectedAnimal: string, selectedSegment l.colorMatrix.saturate(-0.75, true) //l.colorMatrix.hue(160, true) } - for (let e of entities) { - } } else { playSong('GGJ-HappyMusic') for (let l of layers) { l.colorMatrix.reset() } - for (let e of entities) { + } + for (let e of entities) { + if (e instanceof AnimalEntity) { + e.turn() } } + isNight = b }