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 > CSDb Entries > Release id #121282 : Cyber Dream
2013-08-25 17:29
Six

Registered: Apr 2002
Posts: 288
Release id #121282 : Cyber Dream

Two things I noticed in this demo I was curious about - first is the parallax scrolling. It looks to me like a x/y expanded hires sprite layer on top of the screen in the part with the stars in front of the and multicolor sprites in the part where the two square-fields float behind the atlantis logo.
Has anyone ever done an effect like this with also a character layer in front for the appearance of 4 moving planes?

Second is the way they service interrupts (at least in the part I looked at) - they keep one location all the interrupts go through, then jump out through a vector, setting d012, and the vector with x/y/a on their way back out. Is there some technical advantage to handling it this way? (Regardless, I thought it was clever and something I'd recycle in my own code)


irq
pha
txa
pha
tya
pha
jmp ($vector)
irqexit
sta $d012
lda #$01
sta $d019
stx $vector
sty $vector+1
pla
tay
pla
tax
pla
rti
2013-08-25 17:30
Six

Registered: Apr 2002
Posts: 288
Tried to edit the url to redirect this to forum 11, but it didn't work :|
2013-08-26 10:18
Fungus

Registered: Sep 2002
Posts: 629
Six: this type of IRQ handler is pretty common in lots of games. Saves space I guess? =]
2013-08-26 10:46
chatGPZ

Registered: Dec 2001
Posts: 11148
it saves 4 bytes per additional handler - but adds confusion instead :) i rather wont do this, except its really needed for something in particular :)
2013-08-26 12:12
iopop

Registered: Dec 2001
Posts: 317
Who stole my irq code?! :)

I've been using something similar to that for the past 10 years. And I probably found it elsewhere. Of course.
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
celticdesign/G★P/M..
da Blondie/Resource
Wolk/Software of Swe..
Beast/Crescent
Krill/Plush
VanessaE/Digital Aud..
t0m3000/HF^BOOM!^IBX
Airwolf/F4CG
taper/ΤRIΛD
kbs/Pht/Lxt
Guests online: 90
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Aliens in Wonderland  (9.6)
7 No Bounds  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.7)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

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