11 November 2019, 13:34 | #1 |
Registered User
Join Date: Oct 2019
Location: Eydelstedt / Germany
Age: 44
Posts: 114
|
Copper wait
Hi,
short and maybe stupid question: Is it possible to tell the copper to change the bg color to a specific colour, but only inside my playfield? In my case the whole screen changes to the new colour. Greetings Christian |
11 November 2019, 13:43 | #2 |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
You could change it at the beginning and end of each line, maybe?
|
11 November 2019, 14:03 | #3 |
Registered User
Join Date: Oct 2019
Location: Eydelstedt / Germany
Age: 44
Posts: 114
|
How can i do that? I thought i could only wait for a line (y position)....
|
11 November 2019, 14:11 | #4 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
http://eab.abime.net/attachment.php?...0&d=1572886472 In that picture I've reused the colours on the map in the round horizon thing to give 10 colours on an 8 colour display. Edit: Here's the code I used for that. It's C with my own macros, but you'll get the idea. Code:
// this loop takes us past the rollover for (UWORD i = 0xe4; i < 0x124; i++) { COP_INSTR(i << 8 | 0x01, 0xfffe) COP_INSTR(COLOR04, BLUE_RGB) COP_INSTR(COLOR05, GREEN_RGB) COP_INSTR(i << 8 | 0xc7, 0xfffe) COP_INSTR(COLOR04, 0x005c) COP_INSTR(COLOR05, 0x0731) if (i == 0xff) COP_INSTR(0xffdf, 0xfffe) // handle rollover } Your copper code might end up with a loop rather than many lines. Edit: Actually, thank you, I hadn't considered reusing colour 0. I'm going to try and see if I can get an extra colour on my main screen like that. Last edited by deimos; 11 November 2019 at 14:30. |
|
11 November 2019, 14:12 | #5 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
You can make the copper wait on horizontal positions as well.
Geezer |
11 November 2019, 14:54 | #6 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,498
|
Quote:
You have to do it for every line, so used if you have lot of splits (as these games). |
|
11 November 2019, 15:18 | #7 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
I did it in Rygar on the hi-score screen... it changes the colour for 18 lines lines at a specific start and end horizontal position.
Here's the code snippet... Code:
moveq #$12,d7 move.l #$7201fffe,d2 ; Wait VPOS $72 HPOS 01 move.l #$7285fffe,d3 ; Wait VPOS $72 HPOS $85 move.l #$72a5fffe,d4 ; Wait VPOS $72 HPOS $a5 move.l a1,COPPTR_HISCORE_CYCLE(a4) .cycle: move.l d2,(a1)+ ; 4 move.l #$01900800,(a1)+ ; 8 move.l #$01a00bbb,(a1)+ ; 12 move.l d3,(a1)+ move.l #$019000f0,(a1)+ move.l #$01a00f0f,(a1)+ ; 24 move.l d4,(a1)+ move.l #$01900800,(a1)+ move.l #$01a00bbb,(a1)+ ; 36 add.l #$01000000,d2 add.l #$01000000,d3 add.l #$01000000,d4 dbf d7,.cycle |
11 November 2019, 22:04 | #8 | |
Registered User
Join Date: Oct 2019
Location: Eydelstedt / Germany
Age: 44
Posts: 114
|
Quote:
Thus, for waiting for a specific horizontal position, i have to insert some more moves into my copperlist....ok. But if i want to have my bg color black at both sides of the screen, and some other color in the playfield, i would have to insert a lot of moves, because i would have to change the color back to black at the right end of each line. And if i have to do that for each line as you mentioned........ Or did i miss something? |
|
11 November 2019, 22:44 | #9 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,498
|
Quote:
But yes, a COLOR00 change at the left edge and a COLOR00 back to black at the right edge. |
|
12 November 2019, 09:18 | #10 |
Registered User
Join Date: Oct 2019
Location: Eydelstedt / Germany
Age: 44
Posts: 114
|
Well, i would like to have it on every line
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Combining copper scrolling with copper background | phx | Coders. Asm / Hardware | 16 | 13 February 2021 12:41 |
Best way to mix blitting with copper and copper effects | roondar | Coders. Asm / Hardware | 3 | 12 September 2016 13:12 |
Copper Wait Problem | sandruzzo | support.WinUAE | 13 | 18 May 2016 21:54 |
Copper Wait Problem | sandruzzo | Coders. Asm / Hardware | 2 | 17 May 2016 10:30 |
Wait() | mritter0 | Coders. C/C++ | 2 | 17 May 2014 19:14 |
|
|