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: 293
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: 293
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: 689
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: 11386
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
LDX#40
TheRyk/MYD!
t0m3000/hf^boom!^ibx
Low Spirit
Trurl/Extend
.jetan/AI-supported ..
crayon/Hokuto Force
El Gato
celticdesign/G★P/M..
encore
CopAss/Leader
Hagar/The Supply Team
Tom-Cat/Nostalgia
MP Software/Hokuto F..
Felidae/Reflex
Guests online: 106
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 X-Mas Demo 2024  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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