Implement package states (hidden, revealed, active)

This commit is contained in:
Dennis Schoepf 2021-07-30 16:57:47 +02:00
parent acdecc6e85
commit 1b68510ce0
4 changed files with 69 additions and 64 deletions

View file

@ -27,9 +27,9 @@ export class DetailScene {
draw() {
mp5.background(mp5.color(colors.greyLighter));
this.player.drawOnReveal();
this.player.follow();
this.player.move();
this.contributors.forEach((contributor) => {
contributor.place();
@ -38,9 +38,10 @@ export class DetailScene {
legacyObj.place();
});
this.packages.forEach((packageObj) => {
packageObj.place();
packageObj.draw();
});
this.player.move();
}
onSceneClick() {