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: 3196
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
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
TheRyk/MYD!
Mibri/ATL^MSL^PRX
Mike
Alakran_64
MWR/Visdom
DanPhillips
Rub_0201
LKP/CFN
megasoftargentina
Kakka/Extend, Damone..
Francois Prijt/Audia..
wil
Laddh
tlr
Guests online: 112
Top Demos
1
Next Level
(9.7)
2
13:37
(9.7)
3
Mojo
(9.7)
4
Coma Light 13
(9.6)
5
Edge of Disgrace
(9.6)
6
What Is The Matrix 2
(9.6)
7
The Demo Coder
(9.6)
8
Uncensored
(9.6)
9
Comaland 100%
(9.6)
10
Wonderland XIV
(9.6)
Top onefile Demos
1
No Listen
(9.6)
2
Layers
(9.6)
3
Cubic Dream
(9.6)
4
Party Elk 2
(9.6)
5
Copper Booze
(9.6)
6
Dawnfall V1.1
(9.5)
7
Rainbow Connection
(9.5)
8
Onscreen 5k
(9.5)
9
Morph
(9.5)
10
Libertongo
(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 Graphicians
1
Mirage
(9.8)
2
Archmage
(9.7)
3
Pal
(9.6)
4
Carrion
(9.6)
5
Sulevi
(9.6)
Home
-
Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.047 sec.