Added chasers in a row right now.
This commit is contained in:
parent
9f4b7c5f76
commit
3861c2b69c
|
@ -90,6 +90,8 @@ int main(void)
|
||||||
u8 i;
|
u8 i;
|
||||||
for (i=0; i<NUMCHASERS; i++) {
|
for (i=0; i<NUMCHASERS; i++) {
|
||||||
chasers[i].attr2 = OBJ_CHAR(520);
|
chasers[i].attr2 = OBJ_CHAR(520);
|
||||||
|
chasers[i].attr1 = OBJ_X(20+(i*10));
|
||||||
|
chasers[i].attr0 = OBJ_256_COLOR | OBJ_Y(40);
|
||||||
}
|
}
|
||||||
|
|
||||||
int x = 112;
|
int x = 112;
|
||||||
|
@ -154,11 +156,6 @@ int main(void)
|
||||||
car->attr1 = OBJ_SIZE(1) | OBJ_X(x);
|
car->attr1 = OBJ_SIZE(1) | OBJ_X(x);
|
||||||
car->attr0 = OBJ_256_COLOR | OBJ_DOUBLE | OBJ_ROT_SCALE_ON | OBJ_Y(y);
|
car->attr0 = OBJ_256_COLOR | OBJ_DOUBLE | OBJ_ROT_SCALE_ON | OBJ_Y(y);
|
||||||
|
|
||||||
for (i=0; i<NUMCHASERS; i++) {
|
|
||||||
chasers[i].attr1 = OBJ_X(x-(8*i));
|
|
||||||
chasers[i].attr0 = OBJ_256_COLOR | OBJ_Y(y-(8*i));
|
|
||||||
}
|
|
||||||
|
|
||||||
VBlankIntrWait();
|
VBlankIntrWait();
|
||||||
CpuFastSet(oe_buffer, OAM, COPY32 | sizeof(oe_buffer)/4);
|
CpuFastSet(oe_buffer, OAM, COPY32 | sizeof(oe_buffer)/4);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue