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 > 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: 1648
Rumours say Jackasser plans to fix it this weekend! Finally! :)
2007-11-12 20:22
JackAsser

Registered: Jun 2002
Posts: 2014
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
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
Scrap/Genesis Project
leonofsgr/Singular C..
Didi/Laxity
slimeysmine
Genius/Xenon
WVL/Xenon
A3/AFL
Guests online: 124
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 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (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 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

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