Implement reveal bubbles on click

This commit is contained in:
Dennis Schoepf 2021-07-25 15:22:34 +02:00
parent db39a8cb42
commit 7e634917bf
3 changed files with 47 additions and 30 deletions

View file

@ -27,6 +27,7 @@ export class DetailScene {
draw() {
mp5.background(mp5.color(colors.greyLighter));
this.player.drawOnReveal();
this.player.follow();
this.player.move();
@ -42,8 +43,7 @@ export class DetailScene {
}
onSceneClick() {
console.log('Click on detail scene');
console.log('Changing back to overview');
store.setState({ currentScene: Scenes.OVERVIEW });
// store.setState({ currentScene: Scenes.OVERVIEW });
this.player.reveal();
}
}