better game overview, start/finish time

This commit is contained in:
Zutatensuppe 2020-12-06 21:55:23 +01:00
parent af5364155f
commit 69ab049f50
7 changed files with 142 additions and 27 deletions

View file

@ -101,6 +101,8 @@ async function createPuzzle(targetTiles, image) {
// TODO: maybe calculate this each time?
maxZ: 0, // max z of all pieces
maxGroup: 0, // max group of all pieces
started: Util.timestamp(), // start timestamp
finished: 0, // finish timestamp
},
// static puzzle information. stays same for complete duration of
// the game