Implement package reveal and active handling

This commit is contained in:
Dennis Schoepf 2021-07-26 19:15:58 +02:00
parent 3b7beecf8c
commit 2297bbb562
4 changed files with 64 additions and 15 deletions

View file

@ -21,7 +21,7 @@ export class DetailScene {
(contributor) => new Contributor(100, 200, 100)
);
this.legacy = state.currLegacy.map((legacy) => new Legacy(200, 300, 100));
this.packages = state.currPackages.map((currPackage) => new Package(400, 300, 100));
this.packages = state.currPackages.map((currPackage) => new Package(400, 300, 50));
});
}
@ -39,7 +39,7 @@ export class DetailScene {
});
this.packages.forEach((packageObj) => {
packageObj.place();
packageObj.drawOnReveal();
packageObj.draw();
});
}