KEy input pt 2
This commit is contained in:
parent
2e1e4c3ce9
commit
cb7d02896c
2 changed files with 7 additions and 5 deletions
|
|
@ -54,7 +54,9 @@ function draw() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// function keyPressed() {
|
function keyPressed() {
|
||||||
//
|
if (key.toLowerCase() == "k") {
|
||||||
// }
|
raspberry.boost();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue