From 2990db9622846851421048ab80e412bb8f34e285 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Wed, 8 May 2019 08:24:01 +0200 Subject: [PATCH] Added a few comments to some bosses Signed-off-by: Gabriel Ravier --- src/BossBallos.cpp | 3 +++ src/BossFrog.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/BossBallos.cpp b/src/BossBallos.cpp index 93920519..8bde4bb3 100644 --- a/src/BossBallos.cpp +++ b/src/BossBallos.cpp @@ -142,6 +142,7 @@ void ActBossChar_Ballos(void) switch (npc->act_no) { case 0: + // Initialize main boss npc->act_no = 1; npc->cond = 0x80; npc->exp = 1; @@ -159,6 +160,7 @@ void ActBossChar_Ballos(void) 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 @@ void ActBossChar_Ballos(void) gBoss[2] = gBoss[1]; gBoss[2].direct = 2; + // Initialize the body gBoss[3].cond = 0x90; gBoss[3].bits = 0xD; gBoss[3].view.front = 0x7800; diff --git a/src/BossFrog.cpp b/src/BossFrog.cpp index bc665689..18cc2cd0 100644 --- 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 @@ static void ActBossChar02_02(void) } } +// Main boss AI void ActBossChar_Frog(void) { int i; @@ -91,6 +93,7 @@ void ActBossChar_Frog(void) 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},