added status hud at bottom right + speed in tps

This commit is contained in:
Nathan DECHER
2020-04-13 15:34:11 +02:00
parent 5775f6c96c
commit 462668e5cd
4 changed files with 58 additions and 6 deletions
+4
View File
@@ -129,6 +129,10 @@ class SnekGame {
return Date.now()-this.firstStep;
}
get speed() {
return Math.round(1000/this.delay);
}
getTilesOfType(type) {
return this
.world