It is currently Mon Oct 20, 2014 4:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Feb 08, 2014 6:48 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 26, 2011 2:35 am
Posts: 139
I'm fixing up the palette code in Castle Raider so that it will work on the Beeb, so I was reading the Advanced User Guide. The section about the Video ULA is interesting, mentioning "'nasty' effects", which led me to try and experiment a bit in B-Em with the palette registers. It's quite something that you can get multicolour effects in two colour modes, for example, and I wondered if there are games that use the palette registers to increase the number of colours in two and four colour modes without resorting to interrupts. Does anyone know of any?


Top
 
PostPosted: Sat Feb 08, 2014 7:40 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 7:02 pm
Posts: 273
The Yorkshire Boys 'Retribution' demo uses this at one point for a slightly ropey fade. No games that I'm aware of; it's very tricky to make it look good.


Top
 
PostPosted: Sun Feb 09, 2014 7:08 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 26, 2011 2:35 am
Posts: 139
Messing with the background colour isn't so useful, but the palette for the foreground colours could probably be altered for nice twinkly high score table effects.

Update: This is the sort of thing I had in mind:
Code:
        10 MODE 5
        20 VDU 23,1,0;0;0;0;
        30 FOR A%=0 TO 9
        40 COLOUR (A% MOD 3) + 1
        50 PRINT TAB(2, 4+(A%*2));1000-(A%*100)
        60 PRINT TAB(8, 4+(A%*2));"High score"
        70 NEXT
        80 ?&1000=&20:?&1001=&80:?&1002=&A0
        90 !&1004=&50401000
        100 B%=0:C%=0
        110 REPEAT
        120 *FX 19
        130 FOR A%=0 TO 3
        140 V%=(C%?&1000 OR A%?&1004 OR B%)
        150 ?&FE21=V%
        160 B%=(B%+1) MOD 7
        170 NEXT
        180 C%=(C%+1) MOD 3
        190 UNTIL FALSE


Attachments:
File comment: CHAIN "" to run.
palette.uef.zip [597 Bytes]
Downloaded 7 times
Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron