Closed Newyn closed 11 years ago
In order to save only the 5 last score, it is necessary to add an auto-incremental ID when saving a score in IndexedDB for delete it when it's unnecessary
Frankly, just save an array to IndexedDB. It's not worth bothering with IDs for just saving 5 numbers.
Ok i'll do it with an array with a maximum size of 5 elements
Done.
In order to save only the 5 last score, it is necessary to add an auto-incremental ID when saving a score in IndexedDB for delete it when it's unnecessary