Implement basic scene manager with ability to switch between scenes

This commit is contained in:
Dennis Schoepf 2021-07-18 14:11:38 +02:00
parent 9063b45180
commit f9079e4823
7 changed files with 75 additions and 21 deletions

View file

@ -57,6 +57,7 @@ export class Player {
}
private drawCursorIndicator(x: number, y: number, size: number) {
mp5.strokeWeight(2);
mp5.stroke(mp5.color(colors.black));
mp5.line(x - size, y + size, x + size, y - size);
mp5.line(x + size, y - size, x - size, y + size);