Turn entities every night
This commit is contained in:
parent
926165faf0
commit
ebeeb30fb1
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user