Implement package states (hidden, revealed, active)
This commit is contained in:
parent
acdecc6e85
commit
1b68510ce0
4 changed files with 69 additions and 64 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Reference in a new issue