Implement package reveal and active handling
This commit is contained in:
parent
3b7beecf8c
commit
2297bbb562
4 changed files with 64 additions and 15 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue