Checking the levels
This commit is contained in:
@ -3,6 +3,9 @@ class GamePlay extends Board {
|
||||
super(ctx, key);
|
||||
|
||||
this.controls = {
|
||||
'KeyS': ()=>{
|
||||
this.nextLevel(++this.level);
|
||||
},
|
||||
'KeyX': ()=>{
|
||||
let b = new Ball();
|
||||
b.update(this.ctx, this.bar.x + this.bar.w/2, this.bar.y);
|
||||
|
Reference in New Issue
Block a user