Skip to content

Commit

Permalink
finish boss 7 data
Browse files Browse the repository at this point in the history
  • Loading branch information
freshollie committed May 27, 2024
1 parent 7f7ca34 commit b035c69
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 22 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ else
@echo Outputting $(ROOT_DIR)/$@
@touch $(ROOT_DIR)/$(MAP)
ifeq ($(PLATFORM),sdl)
cd $(OBJ_DIR) && $(CC1) $(OBJS_REL) $(shell sdl2-config --cflags --libs) -o $(ROOT_DIR)/$@
@cd $(OBJ_DIR) && $(CC1) $(OBJS_REL) $(shell sdl2-config --cflags --libs) -o $(ROOT_DIR)/$@
else ifeq ($(PLATFORM),sdl_win32)
cd $(OBJ_DIR) && $(CC1) -mwin32 $(OBJS_REL) -lmingw32 -L$(ROOT_DIR)/$(SDL_MINGW_LIB) -lSDL2main -lSDL2.dll -lwinmm -lkernel32 -lxinput -o $(ROOT_DIR)/$@ -Xlinker -Map "$(ROOT_DIR)/$(MAP)"
@cd $(OBJ_DIR) && $(CC1) -mwin32 $(OBJS_REL) -lmingw32 -L$(ROOT_DIR)/$(SDL_MINGW_LIB) -lSDL2main -lSDL2.dll -lwinmm -lkernel32 -lxinput -o $(ROOT_DIR)/$@ -Xlinker -Map "$(ROOT_DIR)/$(MAP)"
else
@cd $(OBJ_DIR) && $(CC1) -mwin32 $(OBJS_REL) -L$(ROOT_DIR)/libagbsyscall -lagbsyscall -lkernel32 -o $(ROOT_DIR)/$@ -Xlinker -Map "$(ROOT_DIR)/$(MAP)"
endif
Expand Down Expand Up @@ -484,7 +484,7 @@ endif

$(DATA_ASM_BUILDDIR)/%.o: $(DATA_ASM_SUBDIR)/%.s $$(data_dep)
@echo "$(AS) <flags> -o $@ $<"
$(PREPROC) $< "" | $(ASM_PSEUDO_OP_CONV) | $(CPP) $(CPPFLAGS) - | $(AS) $(ASFLAGS) -o $@ -
@$(PREPROC) $< "" | $(ASM_PSEUDO_OP_CONV) | $(CPP) $(CPPFLAGS) - | $(AS) $(ASFLAGS) -o $@ -

$(SONG_BUILDDIR)/%.o: $(SONG_SUBDIR)/%.s
@echo "$(AS) <flags> -o $@ $<"
Expand Down
8 changes: 1 addition & 7 deletions asm/boss_run.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@

.section .rodata

.global gUnknown_080D8788
gUnknown_080D8788:
.incbin "baserom.gba", 0x000D8788, 0xE

.global gUnknown_080D8796
gUnknown_080D8796:
.incbin "baserom.gba", 0x000D8796, 0x42
.align 2, 0

.global gUnknown_080D87D8
gUnknown_080D87D8:
Expand Down
19 changes: 19 additions & 0 deletions graphics/80D8796.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
JASC-PAL
0100
16
0 98 115
255 255 255
115 49 8
180 74 8
0 16 156
32 16 16
222 255 255
164 189 205
98 115 156
74 82 115
49 49 82
255 222 32
246 156 16
255 164 131
156 0 57
238 0 90
19 changes: 19 additions & 0 deletions graphics/80D87B6.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
JASC-PAL
0100
16
255 156 197
197 0 131
230 205 255
213 180 255
255 238 180
246 238 246
205 0 131
213 65 156
230 139 180
238 172 197
246 205 213
197 32 238
197 98 246
197 90 189
222 255 230
197 255 213
14 changes: 7 additions & 7 deletions scripts/extract_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ def format_hex(val):
rom.seek(address)
# for i in range(length // 4):
# print(f"Q({read_s32(rom) / 256}), ")
# for i in range(length):
# print(f"{read_s8(rom)}, ")
# for i in range(length // 2):
# print(f"{read_s16(rom)}, ")
# for i in range(length // 20):
# print("{ ", end="")
# for j in range(10):
# print(f"{(read_u16(rom))}" + ", ", end="")
# print("},")
# for i in range(length // 8):
# print(f"{read_u8(rom)}, ")
for i in range(length // 32):
print("{ ", end="")
for j in range(16):
print(f"{(read_u16(rom))}" + ", ", end="")
print("},")
# for i in range(length // 8):
# print("{ ", end="")
# for j in range(2):
Expand Down
11 changes: 9 additions & 2 deletions src/game/bosses/boss_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,15 @@ const EggFrogCallback gUnknown_080D874C[] = {
sub_8048B50, sub_8048BF0, sub_804911C, sub_8049174, sub_80491C4,
};

extern const u8 gUnknown_080D8788[][7];
extern const u16 gUnknown_080D8796[][16];
const u8 gUnknown_080D8788[][7] = {
{ 4, 3, 3, 0, 0, 0, 0 },
{ 4, 3, 2, 1, 1, 0, 0 },
};

const u16 gUnknown_080D8796[][16] = {
INCBIN_U16("graphics/80D8796.gbapal"),
INCBIN_U16("graphics/80D87B6.gbapal"),
};

void CreateEggFrog(void)
{
Expand Down
4 changes: 4 additions & 0 deletions src/game/bosses/boss_run.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ typedef struct {
u8 unk6;
} UNK_80498CC;

// const u16 gUnknown_080D87D8[] = {
// 6400, 13888, 18016, 23104, 29152, 38080, 43091,
// };

extern const u16 gUnknown_080D87E6[][2];

void sub_80498CC(u8 bossNum)
Expand Down
3 changes: 0 additions & 3 deletions src/platform/shared/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ typedef struct {
u8 unk3B;
} UNK_80D8710;

const u16 gUnknown_080D8796[][16]
= { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
const u8 gUnknown_080D8788[][7] = { { 0, 0, 0, 0, 0, 0, 0 } };
extern void sub_8048C7C(void *boss);

// boss run
Expand Down

0 comments on commit b035c69

Please sign in to comment.