ReOrganizing the code

This commit is contained in:
2021-11-14 14:56:31 +01:00
parent b682ad199c
commit 0f4a403edb
7 changed files with 121 additions and 72 deletions

View File

@ -15,6 +15,9 @@ class Lives {
this.lives--;
return this.lives==0;
}
get() {
return this.lives;
}
update() {
if (this.y != 60) this.y++;
if (this.y > 0) {