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: 295
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: 295
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: 695
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: 11418
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
Doc Strange/Atlantis
shuran33/Outsiders
Genius/Xenon
CA$H/TRiAD
A3/AFL
Andy/AEG
Dwangi/Fairlight
JEZ
cba
Giulio/Wolf/HF
MCM/ONSLAUGHT
rambo/Therapy/ Resou..
Chesser/Blazon
grass/LETHARGY
TPM/Silicon Ltd
thesuperfrog
Electric/Extend
Guests online: 493
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.6)
4 Mojo  (9.6)
5 Edge of Disgrace  (9.6)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 Wonderland XIV  (9.6)
9 Unboxed  (9.5)
10 Memento Mori  (9.5)
Top onefile Demos
1 Nine  (9.8)
2 Layers  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Libertongo  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Performers  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.2)
Top Cover Designers
1 Duce  (9.8)
2 Electric  (9.8)
3 Junkie  (9.6)
4 The Elegance  (9.5)
5 Mermaid  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.035 sec.