ref: 2990db9622846851421048ab80e412bb8f34e285
parent: 71015da19b825a3ab3b5db431f737b3fd2e97565
author: Gabriel Ravier <[email protected]>
date: Wed May 8 04:24:01 EDT 2019
Added a few comments to some bosses Signed-off-by: Gabriel Ravier <[email protected]>
--- a/src/BossBallos.cpp
+++ b/src/BossBallos.cpp
@@ -142,6 +142,7 @@
switch (npc->act_no)
{
case 0:
+ // Initialize main boss
npc->act_no = 1;
npc->cond = 0x80;
npc->exp = 1;
@@ -159,6 +160,7 @@
npc->code_event = 1000;
npc->life = 800;
+ // Initialize eyes
gBoss[1].cond = 0x90;
gBoss[1].direct = 0;
gBoss[1].bits = 8;
@@ -175,6 +177,7 @@
gBoss[2] = gBoss[1];
gBoss[2].direct = 2;
+ // Initialize the body
gBoss[3].cond = 0x90;
gBoss[3].bits = 0xD;
gBoss[3].view.front = 0x7800;
--- a/src/BossFrog.cpp
+++ b/src/BossFrog.cpp
@@ -10,6 +10,7 @@
#include "Sound.h"
#include "Triangle.h"
+// Balfrog's mouth
static void ActBossChar02_01(void)
{
NPCHAR *boss;
@@ -84,6 +85,7 @@
}
}
+// Main boss AI
void ActBossChar_Frog(void)
{
int i;
@@ -91,6 +93,7 @@
int ym;
int xm;
+ // Rects 1-4 are for when Balfrog is a frog, 5-8 for when he reverts and goes into the ceiling
RECT rcLeft[9] = {
{0, 0, 0, 0},
{0, 48, 80, 112},