Many Sprites

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
User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Many Sprites

Post by desertfish »


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



updated the 'sprite' image and changed the pattern a bit to bea  more pleasing animation


Attachments
Many Sprites
Many Sprites
Screenshot_20210305_190022.png (6.91 KiB) Viewed 4307 times
bobs1.prg
Many Sprites
(3.33 KiB) Downloaded 318 times
bobs.prg
Many Sprites
(3.48 KiB) Downloaded 297 times
User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Many Sprites

Post by desertfish »

Try it online! Try It Now!
Attachments
bobs.zip
(2.42 KiB) Downloaded 379 times
Edmond D
Posts: 498
Joined: Thu Aug 19, 2021 1:42 am

Re: Many Sprites

Post by Edmond D »

I got to 1600+ sprites going - I couldn't watch after 10 as it made me kind of queasy. I wonder what the upper limit actual is.
User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Many Sprites

Post by desertfish »

Spoiler alert.



(there is no upper limit, eventually the counter will wrap around to zero I guess if you're patient enough. It's all an optical trick.)
Edmond D
Posts: 498
Joined: Thu Aug 19, 2021 1:42 am

Re: Many Sprites

Post by Edmond D »

Optical delusions?
User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Many Sprites

Post by desertfish »

It is heavily inspired by the classic Dragons Megademo "infinite bobs" trick [yt]https://youtu.be/3NhQGdXlkOE?t=1404[/yt]
It uses bitmap mode with a bunch of back buffers that it cycles.
Post Reply