Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2015-06-11 15:37:08

cm0r
New member
Registered: 2015-06-11
Posts: 3

[GBDK] Fading effect

I want to use a fading effect for the DMG GameBoy. But I want to fade the screen to white (like the pokemon red/blue intro). I found some C-code with google, but they only fade to black.

Offline

 

#2 2015-06-11 18:43:56

a cat
Member
Registered: 2014-07-27
Posts: 98

Re: [GBDK] Fading effect

can you show the c code?
maby you could change it to from fading into black
to fading into white


a cat in need of knowledge!!

Offline

 

#3 2015-06-12 08:40:54

cm0r
New member
Registered: 2015-06-11
Posts: 3

Re: [GBDK] Fading effect

The Code I tried to work with is from the gbdk examples. It's the galaxy.c. There is a function called fade().

Here is a link. You can find the function at line 388.

https://github.com/hschmitt/gbdk/blob/m … b/galaxy.c

I also found the same document with more information about the code:

http://forums.tigsource.com/index.php?t … 48.20;wap2

Last edited by cm0r (2015-06-12 09:58:21)

Offline

 

#4 2015-06-12 10:33:52

cm0r
New member
Registered: 2015-06-11
Posts: 3

Re: [GBDK] Fading effect

Ok, i already found a solution. I changed the values for the BGP_REG. But this only works for the Background. To fade sprites you have to use the OBP0_REG.
But thank you for your fast answer cat wink

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson