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.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings - Numbers Kernelpanic 0 112 01-20-2026, 10:29 PM
Last Post: Kernelpanic
  Random Numbers PhilOfPerth 16 1,724 10-19-2025, 10:26 PM
Last Post: Pete
  random numbers badger 8 1,389 11-08-2024, 02:22 AM
Last Post: DANILIN
  Identifying colour attributes with negative numbers CharlieJV 1 575 01-28-2023, 05:16 AM
Last Post: CharlieJV
  BASIC's Comparison Matrix: ideas for content? CharlieJV 28 6,629 10-03-2022, 01:27 AM
Last Post: CharlieJV

Forum Jump:


Users browsing this thread: 1 Guest(s)