Clean-up Shoot.cpp
This commit is contained in:
parent
156e47438c
commit
9468659b43
2 changed files with 279 additions and 244 deletions
521
src/Shoot.cpp
521
src/Shoot.cpp
|
@ -22,9 +22,11 @@ void ShootBullet_Frontia1(int level)
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 1;
|
bul_no = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 2;
|
bul_no = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 3;
|
bul_no = 3;
|
||||||
break;
|
break;
|
||||||
|
@ -45,39 +47,39 @@ void ShootBullet_Frontia1(int level)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y - 0x1400, 1);
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y - (10 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x600, gMC.y - 0x1400, 3, 0);
|
SetCaret(gMC.x - (3 * 0x200), gMC.y - (10 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y - 0x1400, 1);
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y - (10 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x600, gMC.y - 0x1400, 3, 0);
|
SetCaret(gMC.x + (3 * 0x200), gMC.y - (10 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y + 0x1400, 3);
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y + (10 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x600, gMC.y + 0x1400, 3, 0);
|
SetCaret(gMC.x - (3 * 0x200), gMC.y + (10 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y + 0x1400, 3);
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y + (10 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x600, gMC.y + 0x1400, 3, 0);
|
SetCaret(gMC.x + (3 * 0x200), gMC.y + (10 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y + 0x400, 0);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y + (2 * 0x200), 0);
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x400, 3, 0);
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (2 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y + 0x400, 2);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y + (2 * 0x200), 2);
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x400, 3, 0);
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (2 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,14 +91,17 @@ void ShootBullet_Frontia1(int level)
|
||||||
void ShootBullet_PoleStar(int level)
|
void ShootBullet_PoleStar(int level)
|
||||||
{
|
{
|
||||||
int bul_no;
|
int bul_no;
|
||||||
|
|
||||||
switch (level)
|
switch (level)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 4;
|
bul_no = 4;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 5;
|
bul_no = 5;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 6;
|
bul_no = 6;
|
||||||
break;
|
break;
|
||||||
|
@ -117,39 +122,39 @@ void ShootBullet_PoleStar(int level)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y + 0x600, 0);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y + (3 * 0x200), 0);
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x600, 3, 0);
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y + 0x600, 2);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y + (3 * 0x200), 2);
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x600, 3, 0);
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,16 +175,21 @@ void ShootBullet_FireBall(int level)
|
||||||
case 1:
|
case 1:
|
||||||
if (CountArmsBullet(3) > 1)
|
if (CountArmsBullet(3) > 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bul_no = 7;
|
bul_no = 7;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (CountArmsBullet(3) > 2)
|
if (CountArmsBullet(3) > 2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bul_no = 8;
|
bul_no = 8;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
if (CountArmsBullet(3) > 3)
|
if (CountArmsBullet(3) > 3)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bul_no = 9;
|
bul_no = 9;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -196,39 +206,39 @@ void ShootBullet_FireBall(int level)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x800, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x - (4 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x800, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x - (4 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x800, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x + (4 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x800, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x + (4 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x800, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x - (4 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x800, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x - (4 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x800, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x + (4 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x800, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x + (4 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y + 0x400, 0);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y + (2 * 0x200), 0);
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x400, 3, 0);
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (2 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y + 0x400, 2);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y + (2 * 0x200), 2);
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x400, 3, 0);
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (2 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,19 +249,21 @@ void ShootBullet_FireBall(int level)
|
||||||
|
|
||||||
void ShootBullet_Machinegun1(int level)
|
void ShootBullet_Machinegun1(int level)
|
||||||
{
|
{
|
||||||
|
int bul_no;
|
||||||
|
|
||||||
if (CountArmsBullet(4) > 4)
|
if (CountArmsBullet(4) > 4)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int bul_no;
|
|
||||||
|
|
||||||
switch (level)
|
switch (level)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 10;
|
bul_no = 10;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 11;
|
bul_no = 11;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 12;
|
bul_no = 12;
|
||||||
break;
|
break;
|
||||||
|
@ -279,75 +291,73 @@ void ShootBullet_Machinegun1(int level)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gMC.up)
|
||||||
|
{
|
||||||
|
if (level == 3)
|
||||||
|
gMC.ym += 0x100;
|
||||||
|
|
||||||
|
if (gMC.direct == 0)
|
||||||
|
{
|
||||||
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
|
SetCaret(gMC.x - (3 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
|
SetCaret(gMC.x + (3 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (gMC.down)
|
||||||
|
{
|
||||||
|
if (level == 3)
|
||||||
|
{
|
||||||
|
if (gMC.ym > 0)
|
||||||
|
gMC.ym /= 2;
|
||||||
|
|
||||||
|
if (gMC.ym > -0x400)
|
||||||
|
{
|
||||||
|
gMC.ym -= 0x200;
|
||||||
|
if (gMC.ym < -0x400)
|
||||||
|
gMC.ym = -0x400;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gMC.direct == 0)
|
||||||
|
{
|
||||||
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
|
SetCaret(gMC.x - (3 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
|
SetCaret(gMC.x + (3 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.up)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
if (level == 3)
|
SetBullet(bul_no, gMC.x - (12 * 0x200), gMC.y + (3 * 0x200), 0);
|
||||||
gMC.ym += 0x100;
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
|
|
||||||
if (gMC.direct == 0)
|
|
||||||
{
|
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y - 0x1000, 1);
|
|
||||||
SetCaret(gMC.x - 0x600, gMC.y - 0x1000, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y - 0x1000, 1);
|
|
||||||
SetCaret(gMC.x + 0x600, gMC.y - 0x1000, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (gMC.down)
|
|
||||||
{
|
|
||||||
if (level == 3)
|
|
||||||
{
|
|
||||||
if (gMC.ym > 0)
|
|
||||||
gMC.ym /= 2;
|
|
||||||
|
|
||||||
if (gMC.ym > -0x400)
|
|
||||||
{
|
|
||||||
gMC.ym -= 0x200;
|
|
||||||
if (gMC.ym < -0x400)
|
|
||||||
gMC.ym = -0x400;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gMC.direct == 0)
|
|
||||||
{
|
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y + 0x1000, 3);
|
|
||||||
SetCaret(gMC.x - 0x600, gMC.y + 0x1000, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y + 0x1000, 3);
|
|
||||||
SetCaret(gMC.x + 0x600, gMC.y + 0x1000, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
SetBullet(bul_no, gMC.x + (12 * 0x200), gMC.y + (3 * 0x200), 2);
|
||||||
{
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x - 0x1800, gMC.y + 0x600, 0);
|
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x600, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(bul_no, gMC.x + 0x1800, gMC.y + 0x600, 2);
|
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x600, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (level == 3)
|
|
||||||
PlaySoundObject(49, 1);
|
|
||||||
else
|
|
||||||
PlaySoundObject(32, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (level == 3)
|
||||||
|
PlaySoundObject(49, 1);
|
||||||
|
else
|
||||||
|
PlaySoundObject(32, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
static int wait = 0;
|
static int wait = 0;
|
||||||
|
|
||||||
++wait;
|
++wait;
|
||||||
|
|
||||||
if (gMC.equip & 8)
|
if (gMC.equip & 8)
|
||||||
{
|
{
|
||||||
if (wait > 1)
|
if (wait > 1)
|
||||||
|
@ -378,9 +388,11 @@ void ShootBullet_Missile(int level, BOOL bSuper)
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 28;
|
bul_no = 28;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 29;
|
bul_no = 29;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 30;
|
bul_no = 30;
|
||||||
break;
|
break;
|
||||||
|
@ -424,9 +436,11 @@ void ShootBullet_Missile(int level, BOOL bSuper)
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 13;
|
bul_no = 13;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 14;
|
bul_no = 14;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 15;
|
bul_no = 15;
|
||||||
break;
|
break;
|
||||||
|
@ -484,39 +498,39 @@ void ShootBullet_Missile(int level, BOOL bSuper)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y, 0);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y, 0);
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y, 3, 0);
|
SetCaret(gMC.x - (12 * 0x200), gMC.y, 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y, 2);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y, 2);
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y, 3, 0);
|
SetCaret(gMC.x + (12 * 0x200), gMC.y, 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -539,51 +553,51 @@ void ShootBullet_Missile(int level, BOOL bSuper)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y, 1);
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y, 1);
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y, 1);
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y, 1);
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y, 1);
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y, 1);
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y, 3);
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y, 3);
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y, 3);
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y, 3);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x - 0x600, gMC.y, 3);
|
SetBullet(bul_no, gMC.x - (3 * 0x200), gMC.y, 3);
|
||||||
SetBullet(bul_no, gMC.x + 0x600, gMC.y, 3);
|
SetBullet(bul_no, gMC.x + (3 * 0x200), gMC.y, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y + 0x200, 0);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y + (1 * 0x200), 0);
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x200, 3, 0);
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (1 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x, gMC.y - 0x1000, 0);
|
SetBullet(bul_no, gMC.x, gMC.y - (8 * 0x200), 0);
|
||||||
SetBullet(bul_no, gMC.x + 0x800, gMC.y - 0x200, 0);
|
SetBullet(bul_no, gMC.x + (4 * 0x200), gMC.y - (1 * 0x200), 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y + 0x200, 2);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y + (1 * 0x200), 2);
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x200, 3, 0);
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (1 * 0x200), 3, 0);
|
||||||
SetBullet(bul_no, gMC.x, gMC.y - 0x1000, 2);
|
SetBullet(bul_no, gMC.x, gMC.y - (8 * 0x200), 2);
|
||||||
SetBullet(bul_no, gMC.x - 0x800, gMC.y - 0x200, 2);
|
SetBullet(bul_no, gMC.x - (4 * 0x200), gMC.y - (1 * 0x200), 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -613,50 +627,48 @@ void ShootBullet_Bubblin1(void)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (gMC.up)
|
||||||
{
|
{
|
||||||
if (gMC.up)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
SetBullet(19, gMC.x - (1 * 0x200), gMC.y - (2 * 0x200), 1);
|
||||||
{
|
SetCaret(gMC.x - (1 * 0x200), gMC.y - (2 * 0x200), 3, 0);
|
||||||
SetBullet(19, gMC.x - 0x200, gMC.y - 0x400, 1);
|
|
||||||
SetCaret(gMC.x - 0x200, gMC.y - 0x400, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(19, gMC.x + 0x200, gMC.y - 0x400, 1);
|
|
||||||
SetCaret(gMC.x + 0x200, gMC.y - 0x400, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (gMC.down)
|
|
||||||
{
|
|
||||||
if (gMC.direct == 0)
|
|
||||||
{
|
|
||||||
SetBullet(19, gMC.x - 0x200, gMC.y + 0x400, 3);
|
|
||||||
SetCaret(gMC.x - 0x200, gMC.y + 0x400, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(19, gMC.x + 0x200, gMC.y + 0x400, 3);
|
|
||||||
SetCaret(gMC.x + 0x200, gMC.y + 0x400, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
SetBullet(19, gMC.x + (1 * 0x200), gMC.y - (2 * 0x200), 1);
|
||||||
{
|
SetCaret(gMC.x + (1 * 0x200), gMC.y - (2 * 0x200), 3, 0);
|
||||||
SetBullet(19, gMC.x - 0xC00, gMC.y + 0x600, 0);
|
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x600, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(19, gMC.x + 0xC00, gMC.y + 0x600, 2);
|
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x600, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaySoundObject(48, 1);
|
|
||||||
}
|
}
|
||||||
|
else if (gMC.down)
|
||||||
|
{
|
||||||
|
if (gMC.direct == 0)
|
||||||
|
{
|
||||||
|
SetBullet(19, gMC.x - (1 * 0x200), gMC.y + (2 * 0x200), 3);
|
||||||
|
SetCaret(gMC.x - (1 * 0x200), gMC.y + (2 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBullet(19, gMC.x + (1 * 0x200), gMC.y + (2 * 0x200), 3);
|
||||||
|
SetCaret(gMC.x + (1 * 0x200), gMC.y + (2 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (gMC.direct == 0)
|
||||||
|
{
|
||||||
|
SetBullet(19, gMC.x - (6 * 0x200), gMC.y + (3 * 0x200), 0);
|
||||||
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBullet(19, gMC.x + (6 * 0x200), gMC.y + (3 * 0x200), 2);
|
||||||
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PlaySoundObject(48, 1);
|
||||||
}
|
}
|
||||||
else if (++wait > 20)
|
else if (++wait > 20)
|
||||||
{
|
{
|
||||||
|
@ -696,50 +708,48 @@ void ShootBullet_Bubblin2(int level)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (gMC.up)
|
||||||
{
|
{
|
||||||
if (gMC.up)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
SetBullet(level, gMC.x - (3 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
{
|
SetCaret(gMC.x - (3 * 0x200), gMC.y - (16 * 0x200), 3, 0);
|
||||||
SetBullet(level, gMC.x - 0x600, gMC.y - 0x1000, 1);
|
|
||||||
SetCaret(gMC.x - 0x600, gMC.y - 0x2000, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(level, gMC.x + 0x600, gMC.y - 0x1000, 1);
|
|
||||||
SetCaret(gMC.x + 0x600, gMC.y - 0x2000, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (gMC.down)
|
|
||||||
{
|
|
||||||
if (gMC.direct == 0)
|
|
||||||
{
|
|
||||||
SetBullet(level, gMC.x - 0x600, gMC.y + 0x1000, 3);
|
|
||||||
SetCaret(gMC.x - 0x600, gMC.y + 0x2000, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(level, gMC.x + 0x600, gMC.y + 0x1000, 3);
|
|
||||||
SetCaret(gMC.x + 0x600, gMC.y + 0x2000, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
SetBullet(level, gMC.x + (3 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
{
|
SetCaret(gMC.x + (3 * 0x200), gMC.y - (16 * 0x200), 3, 0);
|
||||||
SetBullet(level, gMC.x - 0xC00, gMC.y + 0x600, 0);
|
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x600, 3, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBullet(level, gMC.x + 0xC00, gMC.y + 0x600, 2);
|
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x600, 3, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaySoundObject(48, 1);
|
|
||||||
}
|
}
|
||||||
|
else if (gMC.down)
|
||||||
|
{
|
||||||
|
if (gMC.direct == 0)
|
||||||
|
{
|
||||||
|
SetBullet(level, gMC.x - (3 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
|
SetCaret(gMC.x - (3 * 0x200), gMC.y + (16 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBullet(level, gMC.x + (3 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
|
SetCaret(gMC.x + (3 * 0x200), gMC.y + (16 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (gMC.direct == 0)
|
||||||
|
{
|
||||||
|
SetBullet(level, gMC.x - (6 * 0x200), gMC.y + (3 * 0x200), 0);
|
||||||
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBullet(level, gMC.x + (6 * 0x200), gMC.y + (3 * 0x200), 2);
|
||||||
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PlaySoundObject(48, 1);
|
||||||
}
|
}
|
||||||
else if (++wait > 1)
|
else if (++wait > 1)
|
||||||
{
|
{
|
||||||
|
@ -750,19 +760,21 @@ void ShootBullet_Bubblin2(int level)
|
||||||
|
|
||||||
void ShootBullet_Sword(int level)
|
void ShootBullet_Sword(int level)
|
||||||
{
|
{
|
||||||
|
int bul_no;
|
||||||
|
|
||||||
if (CountArmsBullet(9) > 0)
|
if (CountArmsBullet(9) > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int bul_no;
|
|
||||||
|
|
||||||
switch (level)
|
switch (level)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 25;
|
bul_no = 25;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 26;
|
bul_no = 26;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 27;
|
bul_no = 27;
|
||||||
break;
|
break;
|
||||||
|
@ -773,23 +785,23 @@ void ShootBullet_Sword(int level)
|
||||||
if (gMC.up)
|
if (gMC.up)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y + 0x800, 1);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y + (4 * 0x200), 1);
|
||||||
else
|
else
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y + 0x800, 1);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y + (4 * 0x200), 1);
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y - 0xC00, 3);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y - (6 * 0x200), 3);
|
||||||
else
|
else
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y - 0xC00, 3);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y - (6 * 0x200), 3);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y - 0x600, 0);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y - (3 * 0x200), 0);
|
||||||
else
|
else
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y - 0x600, 2);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y - (3 * 0x200), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaySoundObject(34, 1);
|
PlaySoundObject(34, 1);
|
||||||
|
@ -805,9 +817,11 @@ void ShootBullet_Nemesis(int level)
|
||||||
case 1:
|
case 1:
|
||||||
bul_no = 34;
|
bul_no = 34;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 35;
|
bul_no = 35;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
bul_no = 36;
|
bul_no = 36;
|
||||||
break;
|
break;
|
||||||
|
@ -828,39 +842,39 @@ void ShootBullet_Nemesis(int level)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y - 0x1800, 1);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y - (12 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y - 0x1800, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y - (12 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y - 0x1800, 1);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y - (12 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y - 0x1800, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y - (12 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y + 0x1800, 3);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y + (12 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y + 0x1800, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y + (12 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y + 0x1800, 3);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y + (12 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y + 0x1800, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y + (12 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x2C00, gMC.y + 0x600, 0);
|
SetBullet(bul_no, gMC.x - (22 * 0x200), gMC.y + (3 * 0x200), 0);
|
||||||
SetCaret(gMC.x - 0x2000, gMC.y + 0x600, 3, 0);
|
SetCaret(gMC.x - (16 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x2C00, gMC.y + 0x600, 2);
|
SetBullet(bul_no, gMC.x + (22 * 0x200), gMC.y + (3 * 0x200), 2);
|
||||||
SetCaret(gMC.x + 0x2000, gMC.y + 0x600, 3, 0);
|
SetCaret(gMC.x + (16 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -869,9 +883,11 @@ void ShootBullet_Nemesis(int level)
|
||||||
case 1:
|
case 1:
|
||||||
PlaySoundObject(117, 1);
|
PlaySoundObject(117, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
PlaySoundObject(49, 1);
|
PlaySoundObject(49, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
PlaySoundObject(60, 1);
|
PlaySoundObject(60, 1);
|
||||||
break;
|
break;
|
||||||
|
@ -933,7 +949,7 @@ void ShootBullet_Spur(int level)
|
||||||
|
|
||||||
if (IsMaxExpMyChar())
|
if (IsMaxExpMyChar())
|
||||||
{
|
{
|
||||||
if (bMax == FALSE)
|
if (!bMax)
|
||||||
{
|
{
|
||||||
bMax = TRUE;
|
bMax = TRUE;
|
||||||
PlaySoundObject(65, 1);
|
PlaySoundObject(65, 1);
|
||||||
|
@ -953,9 +969,11 @@ void ShootBullet_Spur(int level)
|
||||||
bul_no = 6;
|
bul_no = 6;
|
||||||
bShot = FALSE;
|
bShot = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
bul_no = 37;
|
bul_no = 37;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
if (bMax)
|
if (bMax)
|
||||||
bul_no = 39;
|
bul_no = 39;
|
||||||
|
@ -980,39 +998,39 @@ void ShootBullet_Spur(int level)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y - 0x1000, 1);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 1);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y - 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y - (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gMC.down)
|
else if (gMC.down)
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x - 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x - (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0x200, gMC.y + 0x1000, 3);
|
SetBullet(bul_no, gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3);
|
||||||
SetCaret(gMC.x + 0x200, gMC.y + 0x1000, 3, 0);
|
SetCaret(gMC.x + (1 * 0x200), gMC.y + (8 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gMC.direct == 0)
|
if (gMC.direct == 0)
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x - 0xC00, gMC.y + 0x600, 0);
|
SetBullet(bul_no, gMC.x - (6 * 0x200), gMC.y + (3 * 0x200), 0);
|
||||||
SetCaret(gMC.x - 0x1800, gMC.y + 0x600, 3, 0);
|
SetCaret(gMC.x - (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetBullet(bul_no, gMC.x + 0xC00, gMC.y + 0x600, 2);
|
SetBullet(bul_no, gMC.x + (6 * 0x200), gMC.y + (3 * 0x200), 2);
|
||||||
SetCaret(gMC.x + 0x1800, gMC.y + 0x600, 3, 0);
|
SetCaret(gMC.x + (12 * 0x200), gMC.y + (3 * 0x200), 3, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1021,12 +1039,15 @@ void ShootBullet_Spur(int level)
|
||||||
case 6:
|
case 6:
|
||||||
PlaySoundObject(49, 1);
|
PlaySoundObject(49, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 37:
|
case 37:
|
||||||
PlaySoundObject(62, 1);
|
PlaySoundObject(62, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 38:
|
case 38:
|
||||||
PlaySoundObject(63, 1);
|
PlaySoundObject(63, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 39:
|
case 39:
|
||||||
PlaySoundObject(64, 1);
|
PlaySoundObject(64, 1);
|
||||||
break;
|
break;
|
||||||
|
@ -1035,24 +1056,25 @@ void ShootBullet_Spur(int level)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShootBullet()
|
void ShootBullet(void)
|
||||||
{
|
{
|
||||||
if (empty)
|
if (empty != 0)
|
||||||
--empty;
|
--empty;
|
||||||
|
|
||||||
//Only let the player shoot every 4 frames
|
// Only let the player shoot every 4 frames
|
||||||
static int soft_rensha; // 'rensha' is Japanese for 'rapid-fire', apparently
|
static int soft_rensha; // 'rensha' is Japanese for 'rapid-fire', apparently
|
||||||
if (soft_rensha)
|
if (soft_rensha != 0)
|
||||||
--soft_rensha;
|
--soft_rensha;
|
||||||
|
|
||||||
if (gKeyTrg & gKeyShot)
|
if (gKeyTrg & gKeyShot)
|
||||||
{
|
{
|
||||||
if (soft_rensha)
|
if (soft_rensha != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
soft_rensha = 4;
|
soft_rensha = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Run functions
|
// Run functions
|
||||||
if (gMC.cond & 2)
|
if (gMC.cond & 2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1061,54 +1083,67 @@ void ShootBullet()
|
||||||
case 1:
|
case 1:
|
||||||
ShootBullet_Frontia1(gArmsData[gSelectedArms].level);
|
ShootBullet_Frontia1(gArmsData[gSelectedArms].level);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
ShootBullet_PoleStar(gArmsData[gSelectedArms].level);
|
ShootBullet_PoleStar(gArmsData[gSelectedArms].level);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
ShootBullet_FireBall(gArmsData[gSelectedArms].level);
|
ShootBullet_FireBall(gArmsData[gSelectedArms].level);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
ShootBullet_Machinegun1(gArmsData[gSelectedArms].level);
|
ShootBullet_Machinegun1(gArmsData[gSelectedArms].level);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
ShootBullet_Missile(gArmsData[gSelectedArms].level, FALSE);
|
ShootBullet_Missile(gArmsData[gSelectedArms].level, FALSE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7:
|
case 7:
|
||||||
switch (gArmsData[gSelectedArms].level)
|
switch (gArmsData[gSelectedArms].level)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
ShootBullet_Bubblin1();
|
ShootBullet_Bubblin1();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
ShootBullet_Bubblin2(2);
|
ShootBullet_Bubblin2(2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
ShootBullet_Bubblin2(3);
|
ShootBullet_Bubblin2(3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 9:
|
case 9:
|
||||||
switch (gArmsData[gSelectedArms].level)
|
switch (gArmsData[gSelectedArms].level)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
ShootBullet_Sword(1);
|
ShootBullet_Sword(1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
ShootBullet_Sword(2);
|
ShootBullet_Sword(2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
ShootBullet_Sword(3);
|
ShootBullet_Sword(3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 10:
|
case 10:
|
||||||
ShootBullet_Missile(gArmsData[gSelectedArms].level, TRUE);
|
ShootBullet_Missile(gArmsData[gSelectedArms].level, TRUE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 12:
|
case 12:
|
||||||
ShootBullet_Nemesis(gArmsData[gSelectedArms].level);
|
ShootBullet_Nemesis(gArmsData[gSelectedArms].level);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 13:
|
case 13:
|
||||||
ShootBullet_Spur(gArmsData[gSelectedArms].level);
|
ShootBullet_Spur(gArmsData[gSelectedArms].level);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
void ResetSpurCharge(void);
|
void ResetSpurCharge(void);
|
||||||
void ShootBullet();
|
void ShootBullet(void);
|
||||||
|
|
Loading…
Add table
Reference in a new issue