Assume we're in the 8 bit world, where games are small but interesting.
I've got my trader game, which currently is stateless. It doesn't save state. But it probably ought to, and it's probably not difficult to do.
SAVE STRING
However, I've also thought idly about "storing" a "LITE" game state in a short string.
Maybe it has the ship, its location, and the player's cash.
Seem reasonable? If the ship isn't customizable, it's easy. But what if it is? What are the limits here?
"0D0A" = hex location, in ehex, where Spinward Marches 0101 = "0101". Deneb would start at "2101". Or it can be in base-16.
"0743" = the guy has MCr 74.3, reasonably assuming you can't bank more than MCr 999. This could be in base-36 for a character saving.
The idea is that the player can type it in as a shortcut to give the initial conditions a bit of a kick.
This is also nice for me, the developer.
CONSOLE
Perhaps the BETTER option is to provide a console access in the game, where I can inspect and set values directly.
I've got my trader game, which currently is stateless. It doesn't save state. But it probably ought to, and it's probably not difficult to do.
SAVE STRING
However, I've also thought idly about "storing" a "LITE" game state in a short string.
Maybe it has the ship, its location, and the player's cash.
Seem reasonable? If the ship isn't customizable, it's easy. But what if it is? What are the limits here?
"4" = ship index code. It's ship number 5 in the master list -- the Free Trader.40D0A0743
"0D0A" = hex location, in ehex, where Spinward Marches 0101 = "0101". Deneb would start at "2101". Or it can be in base-16.
"0743" = the guy has MCr 74.3, reasonably assuming you can't bank more than MCr 999. This could be in base-36 for a character saving.
The idea is that the player can type it in as a shortcut to give the initial conditions a bit of a kick.
This is also nice for me, the developer.
CONSOLE
Perhaps the BETTER option is to provide a console access in the game, where I can inspect and set values directly.
Last edited: