Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > AGSP stop
2018-04-08 20:03
DKT

Registered: Aug 2004
Posts: 96
AGSP stop

Howdy!
How to "stop" AGSP and show another static gfx starting at some position of the screen? AGSP starts from the top of the screen and I would like to show static logo at the bottom of the screen.
VSP is possible to stop with "anti" VSP, but what to do with Linecrunch? Is it possible with some trickery or do I have to move regions of mem to show gfx in a right place?
DKT
2018-04-08 20:31
Oswald

Registered: Apr 2002
Posts: 5017
anti linecrunch is what I can think of.
2018-04-08 20:44
DKT

Registered: Aug 2004
Posts: 96
Hehe.
I would like to not loose to much raster lines (max 1 char) for that in a "switch area". Any examples (demo link)? Thanks in advance.
2018-04-08 21:32
Oswald

Registered: Apr 2002
Posts: 5017
I think if there was another method to skip current char row, or manipulate char row displayed it'd had been discovered already.

better redesigning your effect, so that static part is on the upper area.
2018-04-09 05:23
ChristopherJam

Registered: Aug 2004
Posts: 1370
Yes, the only way you can restore the character pointer to what it would have otherwise been is with anti-AGSP.

Even with Oswald's suggestion of swapping the AGSP area with your logo, you're still stuck running an AGSP routine in the middle of the screen. That would make it a lot easier to display graphics over that area mind; check out GOLC for one technique..

Simplest route of course would be to display your logo with sprites instead of chars/bitmap.
2018-04-09 11:03
Copyfault

Registered: Dec 2001
Posts: 466
Maybe it is feasible to just stick to VSP and do the y-mopvement the "hard" way, i.e. do softscrolling via $d011 but the hardscrolling by copying the gfx data. Ofcourse depends on scrolling speed and what other heavy duty tasks the cpu has to cope with;)

If you do it the other way around (copy the gfx data for the logo), you'll be forced to copy all data within one frame (whenever there is a linecrunch-event) whereas you have up to 8 frames time for the y-hardscroll as skteched above.

And this "anti"-VSP is needed in any case if I get it right atm...
2018-04-09 18:37
Compyx

Registered: Jan 2005
Posts: 631
Like others have mentioned, it's probably best to move the AGSP effect higher in the screen.

But displaying a logo after the AGSP can be achieved when using a charset-based logo. Just use a different screenram you can just 'plot' a 6x40 logo using the AGSP X and Y coords to store the logo at the correct position (wrapping around when required, which will slightly slow down the coying).

Of course sprite pointers will at some point be used as screen data, so unless you adjust the AGSP movement, sprites won't be possible.
Another possibility, as others have mentioned, is using just sprites. You can make 40-char wide dycp with just 14 sprites.
2018-04-09 20:03
DKT

Registered: Aug 2004
Posts: 96
Thanks guys for the tips. I can see some workarounds and will try to find most optimized to get best looking effect.
2018-04-09 20:21
Oswald

Registered: Apr 2002
Posts: 5017
"40-char wide dycp with just 14 sprites."


what?
2018-04-09 22:52
ChristopherJam

Registered: Aug 2004
Posts: 1370
Well, you know, each sprite is 3 chars wide, so 14*3=42, enough to cover the width of the screen.

Just write $3fff to register $d015 to enable them.

(No time to open borders though, with all that DMA going on.)
2018-04-10 05:48
Peacemaker

Registered: Sep 2004
Posts: 243
14 sprites at same rasterline(s)?
did i miss something? :D
 
... 8 posts hidden. Click here to view all posts....
 
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
Alakran_64
Yogibear/Protovision
Slaxx/Q/HF/MDY
sebalozlepsi
Mibri/ATL^MSL^PRX
Medicus
Guests online: 118
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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