English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 18 March 2021, 19:01   #1
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
[blitz] dual playfield (AGA) + 2 screens

Hi,

is it possible to have another screen at the bottom when the top one is dual playfield (2*16 colors)?

Looking at the picture, top screen would be dual playfield: the maze (back field) + entities (fore field) and second screen would be the status bar at the bottom.


Thanks
peceha is online now  
Old 19 March 2021, 10:33   #2
carrion
Registered User
 
carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 152
Hey Peceha
yes it's possible. you need two copperlists done normal way with:
InitCopList copper0, 44, 200,.....
InitCopList copper1, 248, 32,.....

and then in your mainloop just use

DisplayBitmap copper0,..... -< the one with dual playfield
DisplayBitmap copper1,..... -< the one for the panel

This is how I do it and it works great.
carrion is offline  
Old 19 March 2021, 12:39   #3
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
wow!

Thanks.
peceha is online now  
Old 19 March 2021, 14:15   #4
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
Ok,
the screen is there -> you can see the bitmap at the bottom
but there is something wrong with it...

Last picture shows fragment of the code - maybe you can see something strange there..


peceha is online now  
Old 19 March 2021, 15:44   #5
carrion
Registered User
 
carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 152
hint:
how many bitplanes the panel bitmap has?
carrion is offline  
Old 19 March 2021, 16:10   #6
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 862
JetHunt does this. Dual playfield above a 256 colour panel. I remember though having to leave a bigger-than-the-manual stated gap between the Coplists as the panel kept being displayed corrupted like yours.
Coagulus is offline  
Old 19 March 2021, 17:04   #7
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
@carrion
now 4 (first version, the one on the picture above: 5)
bitmap that I load onto this panel has 4 bitplanes as well

@Coagulus
I tried.. but there must be something else - making the gap bigger doesn't help in my case
I started from 3 pixels and ended up with something like 20 or so.
peceha is online now  
Old 19 March 2021, 17:43   #8
carrion
Registered User
 
carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 152
@peceha
and that's the problem because you setup 8 biplanes in your copperlist, aren't you?
carrion is offline  
Old 19 March 2021, 17:58   #9
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
Ha !
Thanks! - now works

that's the beauty of copy&paste
peceha is online now  
Old 19 March 2021, 18:10   #10
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
ok, but now that bottom bitmap is shifted to the right like around 16 or more pixels...
it is not aligned vertically with top display
peceha is online now  
Old 19 March 2021, 18:32   #11
carrion
Registered User
 
carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 152
I think you you don't need displayControls for copper1
and pls it doesn't hurt to just try changing few options by yourself
carrion is offline  
Old 19 March 2021, 18:42   #12
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
second displayControls is long time gone
and..
that's what i've been doing for min. last one hour - changing few options myself
- I ran through many gap's heights (like stated before) - at the same time adjusting second display height - so all fits within 256 pixels
- I changed display depths
- I switch on/off displaycontrols with different combinations of above
- I set different flags under TYPE for InitCopList

there were more - but cannot recall now

Anyway thanks for help, will keep trying more


edit
hehe, ok, I did so many combinations and I missed one thing
smoothscrolling must be set on the second display - now it is finally like expected

Thank you
peceha is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[blitz] InitCopList, dual playfield, AGA - palette question peceha Coders. Blitz Basic 2 15 November 2020 10:33
Sprite priorities without dual playfield on AGA mcgeezer Coders. Asm / Hardware 6 11 March 2020 01:08
AGA Dual Playfield Colour Assignment mcgeezer Coders. Asm / Hardware 21 24 January 2020 15:29
AGA Sprite + Dual Playfield Limits Marle Coders. Blitz Basic 14 12 January 2019 14:14
Dual playfield colors and AGA losso Coders. Asm / Hardware 1 03 December 2013 02:48

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:32.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09774 seconds with 13 queries