KEy input pt 2

This commit is contained in:
s-prechtl 2022-12-13 09:46:18 +01:00
parent 2e1e4c3ce9
commit cb7d02896c
2 changed files with 7 additions and 5 deletions

View file

@ -54,7 +54,9 @@ function draw() {
}); });
} }
//
// function keyPressed() { function keyPressed() {
// if (key.toLowerCase() == "k") {
// } raspberry.boost();
}
}

View file

@ -30,7 +30,7 @@ abstract class Entity {
} }
//endregion //endregion
constructor(position: Position, width: number, height: number, fill: number) { protected constructor(position: Position, width: number, height: number, fill: number) {
this.position = position; this.position = position;
this.width = width; this.width = width;
this.height = height; this.height = height;