touko
Punkic Cyborg
Posts: 106
|
Post by touko on Aug 9, 2018 19:31:36 GMT
hi all, i made a fade_out routine for huc (3.21/3.99), of course, it is written in ASM and is much faster than any in C . You can download it here : www.dropbox.com/s/v4g1ysk3lwx2xlh/fade_out.zip?dl=0The routines are fade_palettes_huc399.c and fade_palettes.c for respectively huc 3.99 and huc 3.21. You also have the file test_fade.c to show an example of how to use it . Once compiled, the routine takes 229 bytes . The general use is: fade_palette_out( BG_PALX, A, SPR_PALY, B , C ); BG_PALX and SPR_PALY(X and Y X and Y are the pallet numbers of the VCE where you want to start) are defines, you can see them on fade_palettes.c/fade_palettes_huc399.c file . WARNING: the BACKGROUND and SPRITE palettes start are in word not byte,so use the defines i put in the fade routine . EDIT: Oups, i forgot to write the comments and description in english LAST VERSION : 17/08/2018
|
|
|
Post by Galahad on Aug 9, 2018 19:40:48 GMT
Will go through the code a little later,thanks for sharing this Touko.
|
|
touko
Punkic Cyborg
Posts: 106
|
Post by touko on Aug 9, 2018 19:47:54 GMT
Will go through the code a little later,thanks for sharing this Touko. The lack of this kind of routines is often a problem for beginners . Next time i'll try to do a fade in routine, the problem is not the routine (i have done it already),but to make it easy for users .
|
|
|
Post by gredler on Aug 9, 2018 22:21:09 GMT
Wow thank you so much! What an awesome share, bossman touko!
|
|