rando-idiot / Terminus.JS

A somewhat small incremental game played in a web terminal.
Creative Commons Zero v1.0 Universal
0 stars 1 forks source link

No saves #5

Open Bleb1k opened 4 hours ago

Bleb1k commented 4 hours ago

Everything resets after a page reload

I suggest using localStorage as it is easier to integrate with small games

Later on it is possible to use IndexedDB to be able to manipulate data more efficiently (This assumes you have to handle 1-2 gigabytes of data at a time)

rando-idiot commented 4 hours ago

In actuality i was going to inplement an entirely different save system. Consider the following: yk how in older games when they gave you the express option to save they also gave you a code to go along with it? i was thinking of implementing that

Bleb1k commented 4 hours ago

older games when they gave you the express option to save they also gave you a code to go along with it? i was thinking of implementing that

This is a good way of adding a backup system, but can you imagine having to open a separate backup file each time you want to save/load? I think this is a bother

rando-idiot commented 4 hours ago

its not a file, its just a shrimple little string of text, at most 6 chars long

Bleb1k commented 3 hours ago

i mean, you have to store it somewhere, right? =)

rando-idiot commented 3 hours ago

your brain or your name