Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using pseudo-random numbers for repeatable content - kind of a neat trick
#1
I just saw this youtube video by Retro Hack Shack where he talks about how David Crane was able to store the map of all the screens for the game Pitfall! on a cartridge with so little memory (just 4k) using pseudo-random numbers. It's kind of a neat trick, and it struck me that might come in handy in QB64PE, all you'd need to do is feed a specific number to the RANDOMIZE statement, right? 

Anyway I just thought I'd share a link to the video, that opens to the point in the video where he talks about it (the whole thing is an interesting watch): 
Atari VCS/2600 - 10 TECHNICAL Things You Didn't Know

Enjoy!

PS If anyone is interested, Pitfall! is a great old school game that I don't think I've ever seen done in QB64PE! (Pitfall II as well, now that would be a challenge! Big Grin )
Reply
#2
I did that for tracking fireworks trails so I didn't have to array all that data between loops. see fireworks through the years.
https://qb64phoenix.com/forum/showthread...8#pid26448

Code: (Select All)
Type rocket
    x As Single
    y As Single
    bang As Single
    seed As Integer
    age As Integer
    fini As Integer
    r As Integer
    c As _Unsigned Long
End Type

The seed was for a number to Randomize each time for that rocket.
b = b + ...
Reply
#3
(02-13-2025, 04:02 PM)bplus Wrote: I did that for tracking fireworks trails so I didn't have to array all that data between loops. see fireworks through the years.
https://qb64phoenix.com/forum/showthread...8#pid26448
...
The seed was for a number to Randomize each time for that rocket.

Good one! "Pretty sneaky, sis!" Tongue
Reply
#4
I've taken advantage of this as well. I also played Pitfall when it first came out. That game would have gathered greater popularity, except someone discovered fire that very same year.

Pete
Reply
#5
(02-13-2025, 10:53 PM)Pete Wrote: I've taken advantage of this as well. I also played Pitfall when it first came out. That game would have gathered greater popularity, except someone discovered fire that very same year.

Pete
I discovered fire - in the game, it killed my Pitfall Harry a bunch of times!!  Tongue
Reply
#6
I can't recall if they had a player avatar named Smoothy, you know, for people like Fell, who hail from Brazil.

Pete Huh
Reply




Users browsing this thread: 1 Guest(s)