stage work
This commit is contained in:
parent
50a59a2df1
commit
52eae61021
18
src/stage.h
18
src/stage.h
|
@ -684,7 +684,7 @@ static void waveBoss1(){
|
|||
.offX = 24,
|
||||
.offY = 28,
|
||||
.boss = TRUE,
|
||||
.health = 60
|
||||
.health = 20
|
||||
};
|
||||
bossMax = spawner.health;
|
||||
void updater(s16 i){
|
||||
|
@ -783,7 +783,21 @@ static void waveBoss1(){
|
|||
spawnBullet(spawner, updater);
|
||||
}
|
||||
} else if(enemies[i].health > 20){
|
||||
|
||||
if(enemies[i].clock % 3 == 0){
|
||||
struct bulletSpawner spawner = {
|
||||
.x = FIX16(random() % GAME_W),
|
||||
.y = FIX16(32 + random() % 48),
|
||||
.image = &bigBullet,
|
||||
.big = TRUE,
|
||||
.angle = 0,
|
||||
.speed = FIX16(enemies[i].clock % 6 == 0 ? 2.5 : 3.5),
|
||||
.light = enemies[i].clock % 6 == 0
|
||||
};
|
||||
for(u8 j = 0; j < 5; j++){
|
||||
if(spawner.angle > 32 && spawner.angle < 480) spawnBullet(spawner, EMPTY);
|
||||
spawner.angle += 205;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
|
|
Reference in New Issue