Confetti2 - created by accident

For Scene Demos that display animations, graphics, and music. Also for tech demos of graphics capability of VERA or the audio capabilities of the PSG, FM, or PCM audio channels.
Post Reply
voidstar
Posts: 360
Joined: Thu Apr 15, 2021 8:05 am

Confetti2 - created by accident

Post by voidstar »

Well, this wasn't intended as a "demo" - but it morphed into one after messing around with the Confetti example in the Appendix A of the X16 guide.
<https://github.com/voidstar78/X16_MANUA ... T_REV9.pdf>

Might it be the only PETSCII-demo, at least so far on the X16? (actually it uses ISO mode) I didn't even use BASLOAD for this one, just evolved freestyle. Bet ChatGPT can't match this :)

Press ESC to end the madness!

Try It Now!
Attachments
CONFETTI2.ZIP
(1.42 KiB) Downloaded 21 times
CONFETTI2.BAS.TXT
(697 Bytes) Downloaded 13 times
CONFETTI2.BAS
(580 Bytes) Downloaded 7 times
DragWx
Posts: 311
Joined: Tue Mar 07, 2023 9:07 pm

Re: Confetti2 - created by accident

Post by DragWx »

There's something about printing random characters in random colors all over the screen that really brings me back to being a kid messing around in qbasic. :D
voidstar
Posts: 360
Joined: Thu Apr 15, 2021 8:05 am

Re: Confetti2 - created by accident

Post by voidstar »

For sure! And the X16 lets us toy around with the 20x15 resolution :)


But I just had a thought - on a "software RNG" (that doesn't use RTC or any clock), the random-seed and random-sequence is very predictable. Has anyone ever used that sequence to be the basis for any data to drive a demo? I'd have to think about that - if you could end up with a sequence that can get bit-masked over into some interesting pattern, so your program only ends up like 10 lines long because all the data is in the seeded "random" sequence. I'm not sure if the RNG in the X16 System ROM can work like that (unless maybe we override the clock and just reset it back to 0 constantly, or some fixed value?)

I do know the original 8KB Dungeon of Daggorath somewhat did a similar thing - all the dungeon levels were always the same, but not because they stored the data that way, they just picked some particular random seeds that ended up in playable dungeons.
User avatar
ahenry3068
Posts: 996
Joined: Tue Apr 04, 2023 9:57 pm

Re: Confetti2 - created by accident

Post by ahenry3068 »

voidstar wrote: Tue May 07, 2024 5:37 pm For sure! And the X16 lets us toy around with the 20x15 resolution :)


But I just had a thought - on a "software RNG" (that doesn't use RTC or any clock), the random-seed and random-sequence is very predictable. Has anyone ever used that sequence to be the basis for any data to drive a demo? I'd have to think about that - if you could end up with a sequence that can get bit-masked over into some interesting pattern, so your program only ends up like 10 lines long because all the data is in the seeded "random" sequence. I'm not sure if the RNG in the X16 System ROM can work like that (unless maybe we override the clock and just reset it back to 0 constantly, or some fixed value?)

I do know the original 8KB Dungeon of Daggorath somewhat did a similar thing - all the dungeon levels were always the same, but not because they stored the data that way, they just picked some particular random seeds that ended up in playable dungeons.
I'm not sure about outside of Basic but X=RND(-SEED) makes RND(1) a repeatable sequence as long as SEED is the same. RND(0) is hardware based.
Screenshot from 2024-05-07 17-51-21.png
Screenshot from 2024-05-07 17-51-21.png (11.59 KiB) Viewed 82 times
Post Reply