Add per-level BG color
This commit is contained in:
parent
ff67c27748
commit
aea7af1b2e
6
main.c
6
main.c
@ -46,7 +46,7 @@ u_long overlaySize = 0;
|
|||||||
|
|
||||||
#include "levels/level1.h"
|
#include "levels/level1.h"
|
||||||
|
|
||||||
volatile u_char level = 1;
|
volatile u_char level = 0;
|
||||||
|
|
||||||
// level 1 : 8003F05C -2147225508
|
// level 1 : 8003F05C -2147225508
|
||||||
// level 0 : 800AF744 -2146764988
|
// level 0 : 800AF744 -2146764988
|
||||||
@ -153,6 +153,8 @@ VECTOR modelPlan_pos = {0};
|
|||||||
|
|
||||||
LEVEL curLvl = {
|
LEVEL curLvl = {
|
||||||
|
|
||||||
|
&BGc,
|
||||||
|
|
||||||
&cmat,
|
&cmat,
|
||||||
|
|
||||||
&lgtmat,
|
&lgtmat,
|
||||||
@ -247,7 +249,7 @@ int main() {
|
|||||||
//~ div3.piv = SCREENYRES;
|
//~ div3.piv = SCREENYRES;
|
||||||
//~ div3.ndiv = 1;
|
//~ div3.ndiv = 1;
|
||||||
|
|
||||||
init(disp, draw, db, curLvl.cmat, &BGc, &BKc);
|
init(disp, draw, db, curLvl.cmat, curLvl.BGc, &BKc);
|
||||||
|
|
||||||
InitPAD(controllers[0].pad, 34, controllers[1].pad, 34);
|
InitPAD(controllers[0].pad, 34, controllers[1].pad, 34);
|
||||||
|
|
||||||
|
2
psx.c
2
psx.c
@ -141,6 +141,8 @@ void display(DISPENV * disp, DRAWENV * draw, u_long * otdisc, char * primbuff, c
|
|||||||
|
|
||||||
void LvlPtrSet(LEVEL * curLevel, LEVEL * level){
|
void LvlPtrSet(LEVEL * curLevel, LEVEL * level){
|
||||||
|
|
||||||
|
curLevel->BGc = level->BGc;
|
||||||
|
|
||||||
curLevel->cmat = level->cmat;
|
curLevel->cmat = level->cmat;
|
||||||
|
|
||||||
curLevel->lgtmat = level->lgtmat;
|
curLevel->lgtmat = level->lgtmat;
|
||||||
|
Loading…
Reference in New Issue
Block a user