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 > Koala Screen Swapping
2010-08-19 14:16
MisterMSK
Account closed

Registered: Jul 2009
Posts: 37
Koala Screen Swapping

Hi All,

I saw a Max Headroom demo (if you could call it that) when I was a child. It was blue and basically moved his head from side to side. It look like three different pictures. Anyway, I was curious of how to change a picture on the fly. Do I just move the image in memory down to $2000 and re-run the view code or is there a different way I am missing?
 
... 10 posts hidden. Click here to view all posts....
 
2010-08-24 21:06
JCB
Account closed

Registered: Jun 2002
Posts: 241
Sorry about that, I'd not thought about just loading in raw koa files so they will overlap (or at least copying the screen ram to $4400 will overwrite the end of the other). I usually save everything out in parts so I can just shove things where I want them rather than 1 file.

Aaaanyway, to alleviate that problem just use $800 and $4800 for the two screen colour ram areas.

So you load one koa to $2000, the other to $6000, copy the koa+$1f40 to $800 and $4800 respectively, leave the bit data where it is and then the $d800 ram should be safe and not overwritten by anything..

After that you don't need to keep looping round and moving the $0800/$4800 ram just the $d800 from koa+$2328 and change the bank and you should be sorted.

So you should have code that looks like this...

Copy colour data for both pictures
Copy initial pictures $d800 ram
Set bitmap mode, bank, $d018 etc for 1st picture

Loop:
Wait on raster
copy other pictures $d800 ram
switch banks
Loop

*edit*
Doesn't really matter where you choose for the "screen" ram, as long as it's in the same bank, on an allowable boundary/start address etc. You can move it to just before the pixel data which makes it all a bit tidier (and one of the reasons I usually split things like koa files into their 3 sections)
2010-08-26 14:10
iAN CooG

Registered: May 2002
Posts: 3142
Lincoln Memorial - Day & Nite
source posted for those who want to learn by example.
The pics are not in koala but for convenience already split in bitmap, screenmap and colormap, the splits have been obtained by saving vice snapshots while viewing the images and then using Vice Snapshot Grabber 4.0
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
encore
bugjam
Isildur/Samar
CA$H/TRiAD
Paul Bearer
Didi/Laxity
Guests online: 83
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Aliens in Wonderland  (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 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Birth of a Flower  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 S!R  (9.7)
5 Fungus  (9.7)

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