|
Post by Frogblender on Aug 15, 2004 17:20:57 GMT -5
I was wondering if there's some way I could assign a pallette to a certain location of the screen, or if there was a way to combine two pallettes. Here's my code;
disable screen loadtiles blue,16,256 pallettes pallette1,0,0,16 i=256 for y=0 to 3 for x=0 to 3 drawtile i,x,y i++ next next i=256 for y=4 to 7 for x=4 to 7 drawtile i,x,y i++ next next enable screen blue: datafile blue.dat,bin
pallette1: DATAINT $0A22,$0E88,$0A42,$0A44,$0E66,$0E68,$0E68,$0C44 DATAINT $0C66,$0C46,$0E46,$0A24,$0ECA,$0C24,$0C42,$0000
If you run this code with a 4x4 tile (blue.dat) you should see one blue square at the top-left and one immediately at it's bottom-right corner. I'd like to know if I can create another pallette and assign it before I draw the second square, so the code would create two differently-colored squares. I'm assuming the pallette command cannot be assigned to specific locations on the screen, so I was thinking that I could possibly treat the tiles as a sprite and color them that way. Any help is greatly appreciated. (btw, this code is based off the "FF7 Slideshow" example that came with v0.12.)
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Aug 17, 2004 0:12:34 GMT -5
each tile (tiles are at least 8x8) can only use one pallette at a time. this isn't a basiegaxorz limitation, its the limitation of the sega genesis.
however, there is a way to switch pallettes for tiles in when verticle blank occurs. this method is way too sophisticated for basiegaxorz b/c basic is slow and pallettes need to be switched fast.
|
|