Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Blog: All Border Double DYPP
2022-03-15 13:38
Raistlin

Registered: Mar 2007
Posts: 680
Blog: All Border Double DYPP

So.. a few people had asked me about how I created certain effects.. I love blogging about code (I do this for my game-dev work, for example, and have done on-and-off for 10 years)... so...

https://c64demo.com/?p=19

The website needs a LOT of work, I know .. but for now it gives me a sandbed to upload these texts to.

Please let me know if you spot any mistakes, if you think I've overlooked explaining anything important, if you think I'm stupid and missed some obvious optimisation, etc...

Cheers!
 
... 51 posts hidden. Click here to view all posts....
 
2022-03-17 13:55
Copyfault

Registered: Dec 2001
Posts: 478
Splendid idea to write a whole blog about the routine! Only had a quick glance up to now, but this already made me happy!

Thank you, Raistlin, for sharing all the tricks involved <3
2022-03-18 06:20
Raistlin

Registered: Mar 2007
Posts: 680
Thanks all! I’ll be doing another blog very soon… Very enjoyable to write, actually.
2022-03-18 17:18
Youth

Registered: Aug 2003
Posts: 43
I love reading stuff like this. Even though it is still too much over my head to tie all this together into an actual working demo effect, it is very inspiring to see these creative solutions to the limitations of the c64. Also cool to see that these top notch coders are not some sort of magicians but theres actually some decent hard thinking and problem solving behind the magic.

Does anyone know more of these sort of blog posts?
2022-03-18 17:56
Oswald

Registered: Apr 2002
Posts: 5094
Quote: I love reading stuff like this. Even though it is still too much over my head to tie all this together into an actual working demo effect, it is very inspiring to see these creative solutions to the limitations of the c64. Also cool to see that these top notch coders are not some sort of magicians but theres actually some decent hard thinking and problem solving behind the magic.

Does anyone know more of these sort of blog posts?


I recommend articles by bitbreaker from here, but you might find other gems too: https://codebase64.org/doku.php?id=base:demo_programming
2022-03-18 22:48
Digger

Registered: Mar 2005
Posts: 437
Great blog post Raistlin!

Do I understand it right, for sprite interleave the sprites have to overlap (with 1 pixel line)?
So it's not possible to make it work with 8 sprites in a row?
2022-03-19 01:10
Raistlin

Registered: Mar 2007
Posts: 680
No overlap, no, the sprites are stacked as usual with (at least) 21px spacing.

With no interleave, each sprite of course would be drawing all 21 lines, 0 to 20.

With 20px interleave, you have 1 line (the 20th) where you’re not quite sure whether, after you update the sprite indices, row 0 or row 1 will be being drawn to the screen - so you make sure that line 20 on both rows is identical.

On the next row, at rasterline 40, it’s the 19th line that needs to be identical on rows 1 and 2 - and then the rest of row 2 needs to be slid up such that line 20 on row 2 is the new start point (what would’ve been line 0).

And so on.. each row sliding 1px further.

Sorry, my description sucks… the Codebase64 article includes some diagrams and formula to help with visualising this ….
2022-03-19 01:21
chatGPZ

Registered: Dec 2001
Posts: 11386
here is something to screw your mind more :)
2022-03-19 02:00
Raistlin

Registered: Mar 2007
Posts: 680
Quote: here is something to screw your mind more :)

Hah, nice!

But, yeah, the more that sprite interleave is explained, the more tricky it sounds… the best thing that you can do is just try it out, see for yourself what happens.
2022-03-19 04:20
DanPhillips

Registered: Jan 2003
Posts: 39
Enigma Force (1986) is the 1st game I saw using the sprite interleaving trick.

Cheers

Dan
2022-03-19 08:39
Raistlin

Registered: Mar 2007
Posts: 680
Interesting .. I never played Enigma Force - but remember Shadowfire that came before it. It used sprite interleave?? Just looking at screenshots, i wonted how and why - I will check it out sometime!
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Mr. Commodore/UCF/Un..
Guests online: 62
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.043 sec.