Homebrew Backgrounds with extended palette ?

Ben_j

Well-Known Member
OP
Member
Joined
Nov 13, 2005
Messages
696
Trophies
0
Age
36
Website
www.nintendo-gamers.net
XP
405
Country
France
I'm using extended palettes for my sprites, and I'd like to use different backgrounds with different palettes as well. The problem is I didn't find anything to tell the background what palette to use.

Here's what I did so far :
CODEvramSetBankH(VRAM_H_LCD);
dmaCopy(alphabgPal, VRAM_H_EXT_PALETTE[0], 512);
dmaCopy(kaossbgPal, VRAM_H_EXT_PALETTE[1], 512);
vramSetBankH(VRAM_H_SUB_BG_EXT_PALETTE);

Then what ? Do I have to use registries or something ?
 

chintoi

Well-Known Member
Newcomer
Joined
Oct 9, 2008
Messages
51
Trophies
0
Website
Visit site
XP
65
Country
Serbia, Republic of
Ah, sorry.
Maybe vramSetBankH() should be used before copying. And try to use less ambiguous defines to check the compliance between engines and layers (slots)

VRAM_G_BG_EXT_PALETTE_SLOT23 - maps vram g to main engine background extended palette slot 2 and 3

Also found this thread http://devkitpro.org/viewtopic.php?f=6&t=511

Looks like the easy way to map entire banks for palettes are macros like VRAM_G_BG_EXT_PALETTE_SLOT01
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I'd rather spend like $150 more for a surround receiver.
  • K3Nv2 @ K3Nv2:
    I bought the game at launch never fucked with it until recently
  • BigOnYa @ BigOnYa:
    Its fun, I like it, even tho I'm not a big harry potter fan. Like a wizard rpg. Flying around on a broomstick is cool.
  • K3Nv2 @ K3Nv2:
    Flying sucks ass on it
  • BigOnYa @ BigOnYa:
    Nuh just takes a min to get used to. I think you can upgrade or buy new broomstick also that are better.
    +1
  • K3Nv2 @ K3Nv2:
    I weirdly like inverted controls on all flying type games
  • BigOnYa @ BigOnYa:
    Prob can change it, inverted flying controls.
  • K3Nv2 @ K3Nv2:
    Only thing that annoys me is trying to find wtf to do in it
    +1
  • BigOnYa @ BigOnYa:
    Alright off to the store, later gators.
    +1
  • K3Nv2 @ K3Nv2:
    Some places amaze me were not in network with your insurance would you still like an appointment
    +1
  • AncientBoi @ AncientBoi:
    uhhh, I think I'll just stick with my PSP 3001
  • AncientBoi @ AncientBoi:
    lol, Now I gotta go to the store for more Coffee Mate n other stuff.
  • Xdqwerty @ Xdqwerty:
    i downloaded final fantasy vii into my tv stick
  • Xdqwerty @ Xdqwerty:
    i mean, the game was already there but its the japanese version
  • Xdqwerty @ Xdqwerty:
    and i only downloaded disc 1 so far bc of storage stuff
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, yeah the patty on McDs burger is 1/10th of a pound now and I think that's the pre cooked weight lol
  • Psionic Roshambo @ Psionic Roshambo:
    I use the app for the 20% off coupon and it's still over priced
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, why is mcdonalds overpriced if their food is bad?
  • Xdqwerty @ Xdqwerty:
    i mean why is mcdonalds food overpriced
  • Psionic Roshambo @ Psionic Roshambo:
    Inflation and greed
    +1
  • ZeroT21 @ ZeroT21:
    it's just fries, make 'em at home
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I make potato wedges at home with spices and stuff lol
    Psionic Roshambo @ Psionic Roshambo: I make potato wedges at home with spices and stuff lol