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


Forums > C64 Productions > Sprites over rasterbars: where?
2012-04-27 15:06
Flavioweb

Registered: Nov 2011
Posts: 122
Sprites over rasterbars: where?

Someone can tell me a demo/intro name where are sprites movin' over rasterbars?
Or, at least, sprites without movement over rasterbars?
Tnx.
 
... 7 posts hidden. Click here to view all posts....
 
2012-04-27 20:24
Flavioweb

Registered: Nov 2011
Posts: 122
Quoting Skate
There are many. I leave others to give you examples. But i will try to give you the main idea about sprites with rasterbars.


I hope you were looking for the techniques. I thought it's better this way than examining the codes. If you just needed the demo names, you can forget about my answer. :)


Yes, i want to know "how things works".
I don't start this thread into "coding" section, because i don't know how many people want to share his knowledge, but if someone want to help me into learning how to do sprites moving over rasterbars... any help is welcome...

Maybe some moderator will change thread section =)
2012-04-28 02:10
Codey

Registered: Oct 2005
Posts: 75
also if you use fld for your timing, your rasters will be perfect and can have sprites moving over them iirc. the only drawback is no char mode..
2012-04-28 06:02
Flavioweb

Registered: Nov 2011
Posts: 122
Quoting Peiselulli
Maybe look into Jars's Revenge ingame code ... there are no rasterbars, but the border is disabled (which is more time critical) with moving sprites ...


At a first look, seems that is used a stable irq (inverted timer) with code for every line unrolled, and jitter is compensated "on the fly" when -cycles- goes on new raster line...
I'm on right path?
2012-04-28 08:14
Graham

Registered: Dec 2002
Posts: 969
Real DYSP
2012-05-01 15:01
iAN CooG

Registered: May 2002
Posts: 1158
Dingy
2012-05-01 20:18
Zaz

Registered: Mar 2004
Posts: 26
This Is What It Is
2012-05-04 22:52
ready.

Registered: Feb 2003
Posts: 388
a part of this demo:

20 Minutes in the Future
2012-08-28 23:34
raven

Registered: Jan 2002
Posts: 129
Continuing what Skate has started, there's a 3rd method which is easiest to implement & also most versatile, as it basically takes care of itself.

Use a timer to count down from 63 and branch according to its value. This code must be done each line.
If you'd like bad-lines active, they'll require different handling.

The line code will look something like this:

lda #cycles
sbc $dd04
sta *+4
bcs *
lda #$a9
lda #$a9
...
bit $ea
...rest of raster code...


+ Sprites can be moved freely without restrictions, no update of the timings is required for non bad-lines
- Doesn't leave much raster-time per line
2012-08-29 15:06
Trash

Registered: Jan 2002
Posts: 52
Another simple solution if you dont want graphics behind the sprites is:
outer_loop:
lda #raster_row
ldx #count_rows
cmp $d012
bne * - 3
inner_loop:
lda coltable, x
sta $d020
sta $d021
lda $d011
and #7
ora #16
sta $d011
dex
bne inner_loop
; move sprites around here
jmp outer_loop
2012-08-30 09:10
Oswald

Registered: Apr 2002
Posts: 3146
or you can do it as Ninja, set a CIA timer to count down from 63 & set the irq vector over the CIA timer & set the register before to jump instruction $4c, and it will select the routine needed for the desired timing automagically. Beware, this eplanation is very rough, just added to drop in the idea.
Previous - 1 | 2 - 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
Lavazza/Censor Design
Mike
Britelite/Dekadence
csio/monarchy c+4
Didi/Laxity
Hoxy/Avatar
Total Chaos
X-jammer/G¤P
Guests online: 36
Top Demos
1 Edge of Disgrace  (9.7)
2 Coma Light 13  (9.7)
3 Daah, those acid pil..  (9.7)
4 Deus Ex Machina  (9.3)
5 Andropolis  (9.3)
6 Te-Te-Te-TechTech It..  (9.3)
7 +H2K  (9.2)
8 GOLC  (9.2)
9 Artphosis  (9.2)
10 2011 - A Press Space..  (9.2)
Top Groups
1 Booze Design  (9.4)
2 Crest  (9.4)
3 Oxyron  (9.4)
4 Maniacs of Noise  (9.2)
5 Eagle Soft Incorpora..  (9.2)
Top Coders
1 Graham  (9.8)
2 Crossbow  (9.8)
3 Axis  (9.8)
4 Lft  (9.8)
5 HCL  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2013
Page generated in: 0.331 sec.