Author Topic: Importance of persistence  (Read 17216 times)

guest509

  • Guest
Re: Importance of persistence
« Reply #15 on: August 31, 2012, 01:08:35 PM »
  There's also a larger question that comes up. Do you have the internal motivation? There are always people that will shit on your ideas and goals. So you have to have the internal fire. Do you have it? Can I tell you how stupid you are, but you still do it anyway? It's a bridge we all must cross, especially if we make our goals known.

  Many will not talk about what they are trying to do because of the poo-poo attitudes of others.

  As for your game, are you looking to do 1 screen levels or multiscreen? Not many 2600 games did multiple multi screen levels. Pitfall? Adventure?

tuturto

  • Rogueliker
  • ***
  • Posts: 259
  • Karma: +0/-0
    • View Profile
    • pyherc
Re: Importance of persistence
« Reply #16 on: August 31, 2012, 04:36:48 PM »
I think what I'm feeling here is that SOME persistence is a good idea at least on the floor the player is exploring.

I wouldn't worry about persistence of other levels. Within one level it would be really nice if the items would be staying where you dropped them. But would it be possible to prohibit players from dropping items like suggested earlier? They could only pick up items, and every time they pick up a new weapon for example, it replaces the old one. Player could only have one of each type of item and managing them would be part of the challenge?

Keep us posted about your progress. This is fascinating project and I would like to see how it develops. Are you programming it on a genuine Atari or on an emulator?
Everyone you will ever meet knows something you don't.
 - Bill Nye

Leaf

  • Rogueliker
  • ***
  • Posts: 64
  • Karma: +0/-0
    • View Profile
    • Email
Re: Importance of persistence
« Reply #17 on: August 31, 2012, 06:37:36 PM »
Was there no way to put RAM in the cartridges of those things?

I think you can do it, though, and have a cool game, but the monsters won't be able to move. :3  And they would be "fresh" again if you ran away and then encountered them again a short time later.

Let's see....  2 bytes for player's x/y position.  If you use a fixed "equipment" list (like in Lawrence's DND), where you have things like "weapon", "armor", "cloak", "boots", "ring", etc, where each "equipment" is just tracked by a "plus", you could get away with a nibble for each item of inventory.  Assuming 16 inventory items, that'd be 8 bytes.  A byte to store the seed for the level so you can restart the prng.  Then maybe....  16 monsters and 16 loots, as bitfields, that's 4 bytes.  That's, what, 15 bytes?  Still 11 bytes of ram left for ZP scratch area.  Oh, I guess you'd need at least a nibble for the dungeon level, and 6 nibbles for stats (you can fit the 3d6 range into 4 bits if you store the stats as S-3 instead of just S, so there's 3.5 more bytes.  Still........

Then just loop through the prng to find values for different parts of the level.  The level layout could be generated by the first N bytes returned by the prng.  Monsters N+1...n+16, etc etc.  Slow, but......

Or you could partition the random number space into "blocks".  If your blocks were say, 32 bits wide, you could generate a sequence of random numbers off the level seed up to the number of the block you wanted to access (which you could quickly calculate with a bit shift if the block size was a power of 2).  Then reseed the prng with the random number you just got out of it, and generate another sequence up to the byte within the block that you wanted.  That'd be much faster than looping through the whole shebang with just one seed....

If you can pull it off, I for one will think it's awesome, given the hardware it is running on!!!  Hard to write, without having a stack to call procedures!
« Last Edit: August 31, 2012, 06:41:24 PM by Leaf »