Set up contributor and detail scene

This commit is contained in:
Dennis Schoepf 2021-07-24 17:19:54 +02:00
parent 18850e9fb8
commit e6536ca7c8
8 changed files with 73 additions and 3 deletions

View file

@ -1,19 +1,31 @@
import { mp5 } from '../../main';
import { colors } from '../constants/colors';
import { Player } from '../sketchObjects/Player';
import store from '../store';
import { Scenes } from './scenes';
export class DetailScene {
player: Player;
contributors: any;
legacy: any;
packages: any;
constructor() {
this.player = new Player();
store.subscribe((state) => {
this.contributors = state.currContributors;
this.legacy = state.currLegacy;
this.packages = state.currPackages;
});
}
draw() {
mp5.background(100);
mp5.background(mp5.color(colors.greyLighter));
this.player.follow();
this.player.move();
// TODO: Draw what can be found
}
onSceneClick() {