Turn entities every night

This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-30 12:27:14 -08:00
parent 926165faf0
commit ebeeb30fb1

View File

@ -585,16 +585,18 @@ export function GameState(ctx: ContextI, selectedAnimal: string, selectedSegment
l.colorMatrix.saturate(-0.75, true) l.colorMatrix.saturate(-0.75, true)
//l.colorMatrix.hue(160, true) //l.colorMatrix.hue(160, true)
} }
for (let e of entities) {
}
} else { } else {
playSong('GGJ-HappyMusic') playSong('GGJ-HappyMusic')
for (let l of layers) { for (let l of layers) {
l.colorMatrix.reset() l.colorMatrix.reset()
} }
}
for (let e of entities) { for (let e of entities) {
if (e instanceof AnimalEntity) {
e.turn()
} }
} }
isNight = b isNight = b
} }