added status hud at bottom right + speed in tps
This commit is contained in:
@@ -129,6 +129,10 @@ class SnekGame {
|
||||
return Date.now()-this.firstStep;
|
||||
}
|
||||
|
||||
get speed() {
|
||||
return Math.round(1000/this.delay);
|
||||
}
|
||||
|
||||
getTilesOfType(type) {
|
||||
return this
|
||||
.world
|
||||
|
||||
Reference in New Issue
Block a user