New demo uploaded: Many Sprites

All aspects of programming on the Commander X16.
Post Reply
User avatar
desertfish
Posts: 1097
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New demo uploaded: Many Sprites

Post by desertfish »




Many Sprites




View File






How many sprites does the Commander X16 have?  Let's find out, shall we!

 

Written in Prog8.  Source code is here: https://github.com/irmen/prog8/blob/master/examples/cx16/bobs.p8






 
CreativityTheEmotion
Posts: 6
Joined: Sun Feb 28, 2021 8:21 pm

New demo uploaded: Many Sprites

Post by CreativityTheEmotion »


So, I'm pretty confident that this just reserves space in VRAM for a finite number of "frames" and loops through them, and concurrently, adds new "sprites" to those frames. Am I correct?

Impressive nonetheless - kudos!

User avatar
desertfish
Posts: 1097
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New demo uploaded: Many Sprites

Post by desertfish »


Shhhh @CreativityTheEmotion don't tell them

User avatar
desertfish
Posts: 1097
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New demo uploaded: Many Sprites

Post by desertfish »


Actually I don't deserve all the credits.

I stole the idea from an old megademo on the Amiga that had me floored back when it came out in 1990. It contained a section where the Amiga was apparently animating a sheer unbelievable amount of "bobs" (blitter objects) whereas previously the Amiga topped out at animating around 300 or 400 "bobs" or so.

Here's a video of what I'm talking about:     Skip to part 5, starting at 18:52 :





The grin on my face was pretty big when I eventually figured out how they did it.

And now the same effect runs on the commander X16 ?

Post Reply