mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Add custom level ribbon colors depending on character
This commit is contained in:
parent
135d6fb431
commit
955203744c
1 changed files with 18 additions and 2 deletions
|
@ -556,8 +556,24 @@ screen_level_draw(void *d)
|
||||||
setPolyG4(polyg);
|
setPolyG4(polyg);
|
||||||
setRGB0(polyg, 0xfc, 0xfc, 0xfc);
|
setRGB0(polyg, 0xfc, 0xfc, 0xfc);
|
||||||
setRGB1(polyg, 0xfc, 0xfc, 0xfc);
|
setRGB1(polyg, 0xfc, 0xfc, 0xfc);
|
||||||
setRGB2(polyg, 0x00, 0x24, 0xd8);
|
switch(level_character) {
|
||||||
setRGB3(polyg, 0x00, 0x24, 0xd8);
|
case CHARA_SONIC:
|
||||||
|
setRGB2(polyg, 0x00, 0x24, 0xd8);
|
||||||
|
setRGB3(polyg, 0x00, 0x24, 0xd8);
|
||||||
|
break;
|
||||||
|
case CHARA_MILES:
|
||||||
|
setRGB2(polyg, 0xd8, 0x48, 0x00);
|
||||||
|
setRGB3(polyg, 0xd8, 0x48, 0x00);
|
||||||
|
break;
|
||||||
|
case CHARA_KNUCKLES:
|
||||||
|
setRGB2(polyg, 0xd0, 0x00, 0x40);
|
||||||
|
setRGB3(polyg, 0xd0, 0x00, 0x40);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
setRGB2(polyg, 0x00, 0x24, 0xd8);
|
||||||
|
setRGB3(polyg, 0x00, 0x24, 0xd8);
|
||||||
|
break;
|
||||||
|
}
|
||||||
setXYWH(polyg, 50, data->tc_ribbon_y, 80, 200);
|
setXYWH(polyg, 50, data->tc_ribbon_y, 80, 200);
|
||||||
sort_prim(polyg, OTZ_LAYER_HUD);
|
sort_prim(polyg, OTZ_LAYER_HUD);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue