You are not logged in -
nap
CSDb User Forums
Forums
>
C64 Coding
>
Raster bars, chars screen and sprites
2007-09-14
08:55
johncl
Registered: Aug 2007
Posts: 37
Raster bars, chars screen and sprites
I have been searching a bit and it seems most stable raster modes use the $d011 trick but at the xpense of no character screen (only sprites).
I am making a platform game where I use some raster bars to indicate the ground (extending out into the border). I was able to render these fine (with 63 cycle delays between color changes) and set it up so that the top of the characters are drawn 1 line before my raster bars begin to avoid bad lines.
Well, now I added my hero sprite which is standing on the ground (data crossing my raster lines) and suddenly I have unstable rasters again - the sprite fetches has affected the amount of cycles available per raster. Furthermore it doesnt seem to be a stable "shift" but the lines flickers somewhat.
How can I get around this? It would be nice if I could call an alternate raster method for these "ground" raster bars and maybe have a permanent sprite crossing them (a transparent one perhaps).
I am using KickAssembler and my current raster bar macro looks like this:
.macro CopperLines( colors, endcolor ) {
.for(var i=0;i<16;i++) nop // initial delay
.var NOPS=25
.var len = colors.size()
.for (var l=0;l<len;l++) {
lda $10 // 3 cycles
lda #colors.get(l) // 2 cycles
sta BORDER_COLOR // 4 cycles
sta BG_COLOR // 4 cycles
// 50 cycles of nops - sum = 63 cycles (1 scan line)
.for(var i=0;i<NOPS;i++) nop
}
lda #endcolor
sta BORDER_COLOR
sta BG_COLOR
}
... 10 posts hidden. Click
here
to view all posts....
2007-11-12
16:24
Frantic
Registered: Mar 2003
Posts: 1661
Rumours say Jackasser plans to fix it this weekend! Finally! :)
2007-11-12
20:22
JackAsser
Registered: Jun 2002
Posts: 2038
Quote:
Rumours say Jackasser plans to fix it this weekend! Finally! :)
o_O DAMN! :D
Tonight your dreams MIGHT come true...
Previous
-
1
| 2 - Next
Refresh
Subscribe to this thread:
You need to be logged in to post in the forum.
Search the forum:
Search
All forums
C64 Coding
C64 Composing
C64 Pixeling
C64 Productions
CSDb Bug Reports
CSDb Development
CSDb Discussions
CSDb Entries
CSDb Feedback
CSDb Info
CSDb moderators
CSDb Questions
Messages to moderators
Requests
for
in
Writer & text
Text
Writer
All times are CET.
Search CSDb
All
Releases
Groups
Sceners
Events
BBS
SIDs
-------
Forum
Comments
Advanced
Users Online
Sokratekk
Rhythm/G★P
Knight Rider/TREX 🦖
Didi/Laxity
MWR/Visdom
katon/Lepsi De
Guests online: 130
Top Demos
1
Next Level
(9.7)
2
13:37
(9.7)
3
Codeboys & Endians
(9.7)
4
Mojo
(9.6)
5
Coma Light 13
(9.6)
6
Edge of Disgrace
(9.6)
7
Signal Carnival
(9.6)
8
Wonderland XIV
(9.5)
9
Uncensored
(9.5)
10
Comaland 100%
(9.5)
Top onefile Demos
1
Nine
(9.7)
2
Layers
(9.6)
3
Cubic Dream
(9.6)
4
Party Elk 2
(9.6)
5
Copper Booze
(9.5)
6
Scan and Spin
(9.5)
7
Onscreen 5k
(9.5)
8
Grey
(9.5)
9
Dawnfall V1.1
(9.5)
10
Rainbow Connection
(9.5)
Top Groups
1
Artline Designs
(9.3)
2
Booze Design
(9.3)
3
Oxyron
(9.3)
4
Performers
(9.3)
5
Censor Design
(9.3)
Top Coders
1
Axis
(9.8)
2
Sailor
(9.8)
3
Lft
(9.8)
4
Graham
(9.8)
5
Crossbow
(9.8)
Home
-
Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.05 sec.