No files matched your search
@@ -153,12 +153,12 @@ LINK_LIBRARIES = $(foreach i,$(LIBRARIES),-l$(i))
|
||||
ifeq ($(COMPILER),gcc)
|
||||
NON_MATCHING := 1
|
||||
MIPSISET := -mips3
|
||||
OPT_FLAGS := -Os
|
||||
OPT_FLAGS := -Ofast
|
||||
else ifeq ($(COMPILER),clang)
|
||||
NON_MATCHING := 1
|
||||
# clang doesn't support ABI 'o32' for 'mips3'
|
||||
MIPSISET := -mips2
|
||||
OPT_FLAGS := -Os
|
||||
OPT_FLAGS := -Ofast
|
||||
endif
|
||||
|
||||
|
||||
@@ -394,8 +394,8 @@ export LD_LIBRARY_PATH=./tools
|
||||
AS := $(CROSS)as
|
||||
ifeq ($(COMPILER),gcc)
|
||||
CC := $(CROSS)gcc
|
||||
$(BUILD_DIR)/actors/%.o: OPT_FLAGS := -Os -mlong-calls
|
||||
$(BUILD_DIR)/levels/%.o: OPT_FLAGS := -Os -mlong-calls
|
||||
$(BUILD_DIR)/actors/%.o: OPT_FLAGS := -Ofast -mlong-calls
|
||||
$(BUILD_DIR)/levels/%.o: OPT_FLAGS := -Ofast -mlong-calls
|
||||
else ifeq ($(COMPILER),clang)
|
||||
CC := clang
|
||||
endif
|
||||
@@ -430,7 +430,7 @@ DEF_INC_CFLAGS := $(foreach i,$(INCLUDE_DIRS),-I$(i)) $(C_DEFINES)
|
||||
# C compiler options
|
||||
CFLAGS = -G 0 $(OPT_FLAGS) $(TARGET_CFLAGS) $(MIPSISET) $(DEF_INC_CFLAGS)
|
||||
ifeq ($(COMPILER),gcc)
|
||||
CFLAGS += -mno-shared -march=vr4300 -mfix4300 -mabi=32 -mhard-float -mdivide-breaks -fno-stack-protector -fno-common -fno-zero-initialized-in-bss -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra -Wno-missing-braces -fno-jump-tables
|
||||
CFLAGS += -mno-shared -march=vr4300 -mfix4300 -mabi=32 -mhard-float -mdivide-breaks -fno-stack-protector -fno-common -fno-zero-initialized-in-bss -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra -Wno-missing-braces
|
||||
else ifeq ($(COMPILER),clang)
|
||||
CFLAGS += -target mips -mabi=32 -G 0 -mhard-float -fomit-frame-pointer -fno-stack-protector -fno-common -I include -I src/ -I $(BUILD_DIR)/include -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra -Wno-missing-braces -fno-jump-tables
|
||||
else
|
||||
@@ -576,6 +576,9 @@ $(BUILD_DIR)/src/usb/usb.o: OPT_FLAGS := -O0
|
||||
$(BUILD_DIR)/src/usb/usb.o: CFLAGS += -Wno-unused-variable -Wno-sign-compare -Wno-unused-function
|
||||
$(BUILD_DIR)/src/usb/debug.o: OPT_FLAGS := -O0
|
||||
$(BUILD_DIR)/src/usb/debug.o: CFLAGS += -Wno-unused-parameter -Wno-maybe-uninitialized
|
||||
$(BUILD_DIR)/src/audio/*.o: OPT_FLAGS := -Os -fno-jump-tables
|
||||
$(BUILD_DIR)/src/engine/math_util.o: OPT_FLAGS := -Ofast -fno-unroll-loops -fno-peel-loops --param case-values-threshold=20
|
||||
$(BUILD_DIR)/src/game/rendering_graph_node.o: OPT_FLAGS := -Ofast --param case-values-threshold=20
|
||||
|
||||
ALL_DIRS := $(BUILD_DIR) $(addprefix $(BUILD_DIR)/,$(SRC_DIRS) asm/debug $(GODDARD_SRC_DIRS) $(LIBZ_SRC_DIRS) $(ULTRA_BIN_DIRS) $(BIN_DIRS) $(TEXTURE_DIRS) $(TEXT_DIRS) $(SOUND_SAMPLE_DIRS) $(addprefix levels/,$(LEVEL_DIRS)) rsp include) $(YAY0_DIR) $(addprefix $(YAY0_DIR)/,$(VERSION)) $(SOUND_BIN_DIR) $(SOUND_BIN_DIR)/sequences/$(VERSION)
|
||||
|
||||
@@ -589,6 +592,7 @@ $(BUILD_DIR)/src/game/ingame_menu.o: $(BUILD_DIR)/include/text_strings.h
|
||||
$(BUILD_DIR)/src/game/puppycam2.o: $(BUILD_DIR)/include/text_strings.h
|
||||
|
||||
|
||||
|
||||
#==============================================================================#
|
||||
# Texture Generation #
|
||||
#==============================================================================#
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#  HackerSM64 
|
||||
|
||||
**[Thank you to Kaze Emanuar for these major optimizations!](https://www.youtube.com/watch?v=uYPH-NH3B6k)
|
||||
|
||||
**AFTER CLONING THE REPO, CHECK OUT THE `include/config.h` FILE BEFORE ANYTHING ELSE! IT THERE'S A LOT OF STUFF IN THIS REPO THAT CAN BE TOGGLED THERE.**
|
||||
|
||||
HackerSM64 now has a discord server! https://discord.gg/brETAakcXr
|
||||
|
||||
@@ -120,7 +120,7 @@ const Gfx flame_seg6_dl_0601C108[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06000000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06000000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06000000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -132,7 +132,7 @@ const Gfx flame_seg6_dl_0601C1A8[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06002000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06002000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06002000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -144,7 +144,7 @@ const Gfx flame_seg6_dl_0601C248[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06004000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06004000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06004000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -156,7 +156,7 @@ const Gfx flame_seg6_dl_0601C2E8[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06006000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06006000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06006000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -168,7 +168,7 @@ const Gfx flame_seg6_dl_0601C388[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06008000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06008000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06008000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -180,7 +180,7 @@ const Gfx flame_seg6_dl_0601C428[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_0600A000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_0600A000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_0600A000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -192,7 +192,7 @@ const Gfx flame_seg6_dl_0601C4C8[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_0600C000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_0600C000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_0600C000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -204,7 +204,7 @@ const Gfx flame_seg6_dl_0601C568[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_0600E000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_0600E000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_0600E000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -216,7 +216,7 @@ const Gfx flame_seg6_dl_0601C608[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06010000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06010000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06010000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -228,7 +228,7 @@ const Gfx flame_seg6_dl_0601C6A8[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06012000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06012000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06012000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -240,7 +240,7 @@ const Gfx flame_seg6_dl_0601C748[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06014000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06014000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06014000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -252,7 +252,7 @@ const Gfx flame_seg6_dl_0601C7E8[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06016000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06016000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06016000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -264,7 +264,7 @@ const Gfx flame_seg6_dl_0601C888[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_06018000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_06018000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_06018000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -276,7 +276,7 @@ const Gfx flame_seg6_dl_0601C928[] = {
|
||||
gsDPLoadTextureBlock(flame_seg6_texture_0601A000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(flame_seg6_vertex_0601C000, 8, 0),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0B0),
|
||||
gsDPLoadTextureBlock((u8*)flame_seg6_texture_0601A000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)flame_seg6_texture_0601A000 + 0x1000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0C8),
|
||||
gsSPDisplayList(flame_seg6_dl_0601C0E0),
|
||||
gsSPEndDisplayList(),
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 1007 B |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -50,18 +50,18 @@ extern const Gfx coin_seg3_dl_030079B8[];
|
||||
extern const GeoLayout dirt_animation_geo[];
|
||||
extern const GeoLayout cartoon_star_geo[];
|
||||
extern const Gfx dirt_seg3_dl_0302BFF8[];
|
||||
extern const Gfx dirt_seg3_dl_0302C028[];
|
||||
extern const Gfx dirt_seg3_dl_0302C238[];
|
||||
extern const Gfx dirt_seg3_dl_0302C298[];
|
||||
extern const Gfx dirt_seg3_dl_0302C2B8[];
|
||||
extern const Gfx dirt_seg3_dl_0302C2D8[];
|
||||
extern const Gfx dirt_seg3_dl_0302C2F8[];
|
||||
extern const Gfx dirt_seg3_dl_0302C318[];
|
||||
extern const Gfx dirt_seg3_dl_0302C378[];
|
||||
extern const Gfx dirt_seg3_dl_0302C3B0[];
|
||||
extern const Gfx dirt_seg3_dl_0302C3E8[];
|
||||
extern const Gfx dirt_seg3_dl_0302C420[];
|
||||
extern const Gfx dirt_seg3_dl_0302C458[];
|
||||
extern const Gfx dirt_seg3_dl_dirt_particle[];
|
||||
extern const Gfx dirt_seg3_sub_dl_cartoon_star[];
|
||||
extern const Gfx dirt_seg3_dl_cartoon_star_red[];
|
||||
extern const Gfx dirt_seg3_dl_cartoon_star_green[];
|
||||
extern const Gfx dirt_seg3_dl_cartoon_star_blue[];
|
||||
extern const Gfx dirt_seg3_dl_cartoon_star_yellow[];
|
||||
extern const Gfx dirt_seg3_dl_cartoon_star_billboard[];
|
||||
extern const Gfx dirt_seg3_dl_tiny_particle_red[];
|
||||
extern const Gfx dirt_seg3_dl_tiny_particle_green[];
|
||||
extern const Gfx dirt_seg3_dl_tiny_particle_blue[];
|
||||
extern const Gfx dirt_seg3_dl_tiny_particle_yellow[];
|
||||
extern const Gfx dirt_seg3_dl_tiny_particle_billboard[];
|
||||
|
||||
// door
|
||||
extern const GeoLayout castle_door_geo[];
|
||||
@@ -191,7 +191,7 @@ extern const GeoLayout number_geo[];
|
||||
extern const Gfx pebble_seg3_dl_0301CB00[];
|
||||
|
||||
// power_meter
|
||||
extern const u8 *const power_meter_health_segments_lut[];
|
||||
extern const Texture *const power_meter_health_segments_lut[];
|
||||
extern const Gfx dl_power_meter_base[];
|
||||
extern const Gfx dl_power_meter_health_segments_begin[];
|
||||
extern const Gfx dl_power_meter_health_segments_end[];
|
||||
|
||||
@@ -4,12 +4,12 @@ const GeoLayout dirt_animation_geo[] = {
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_SWITCH_CASE(6, geo_switch_anim_state),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C378),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C3B0),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C3E8),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_ALPHA, dirt_seg3_dl_0302C028),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C420),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C458),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_tiny_particle_red),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_tiny_particle_green),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_tiny_particle_blue),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_ALPHA, dirt_seg3_dl_dirt_particle),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_tiny_particle_yellow),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_tiny_particle_billboard),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_END(),
|
||||
@@ -22,11 +22,11 @@ const GeoLayout cartoon_star_geo[] = {
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_SWITCH_CASE(5, geo_switch_anim_state),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C298),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C2B8),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C2D8),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C2F8),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_0302C318),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_cartoon_star_red),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_cartoon_star_green),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_cartoon_star_blue),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_cartoon_star_yellow),
|
||||
GEO_DISPLAY_LIST(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, dirt_seg3_dl_cartoon_star_billboard),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_END(),
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
// Dirt
|
||||
|
||||
// 0x0302BD68
|
||||
static const Lights1 dirt_seg3_lights_0302BD68 = gdSPDefLights1(
|
||||
static const Lights1 dirt_seg3_lights_red = gdSPDefLights1(
|
||||
0x3f, 0x19, 0x19,
|
||||
0xff, 0x64, 0x64, 0x28, 0x28, 0x28
|
||||
);
|
||||
|
||||
// 0x0302BD80
|
||||
static const Lights1 dirt_seg3_lights_0302BD80 = gdSPDefLights1(
|
||||
static const Lights1 dirt_seg3_lights_green = gdSPDefLights1(
|
||||
0x19, 0x3f, 0x19,
|
||||
0x64, 0xff, 0x64, 0x28, 0x28, 0x28
|
||||
);
|
||||
|
||||
// 0x0302BD98
|
||||
static const Lights1 dirt_seg3_lights_0302BD98 = gdSPDefLights1(
|
||||
static const Lights1 dirt_seg3_lights_blue = gdSPDefLights1(
|
||||
0x19, 0x19, 0x3f,
|
||||
0x64, 0x64, 0xff, 0x28, 0x28, 0x28
|
||||
);
|
||||
|
||||
// 0x0302BDB0
|
||||
static const Lights1 dirt_seg3_lights_0302BDB0 = gdSPDefLights1(
|
||||
static const Lights1 dirt_seg3_lights_yellow = gdSPDefLights1(
|
||||
0x3f, 0x3f, 0x19,
|
||||
0xff, 0xff, 0x64, 0x28, 0x28, 0x28
|
||||
);
|
||||
@@ -47,7 +47,7 @@ const Gfx dirt_seg3_dl_0302BFF8[] = {
|
||||
};
|
||||
|
||||
// 0x0302C028 - 0x0302C098
|
||||
const Gfx dirt_seg3_dl_0302C028[] = {
|
||||
const Gfx dirt_seg3_dl_dirt_particle[] = {
|
||||
gsDPPipeSync(),
|
||||
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
||||
gsSPClearGeometryMode(G_CULL_BACK),
|
||||
@@ -65,21 +65,21 @@ const Gfx dirt_seg3_dl_0302C028[] = {
|
||||
};
|
||||
|
||||
// 0x0302C098
|
||||
static const Vtx dirt_seg3_vertex_0302C098[] = {
|
||||
static const Vtx dirt_seg3_vertex_tiny_particle[] = {
|
||||
{{{ -10, 0, 10}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0x00}}},
|
||||
{{{ 10, 0, 10}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0x00}}},
|
||||
{{{ 0, 0, -10}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0x00}}},
|
||||
};
|
||||
|
||||
// 0x0302C0C8
|
||||
static const Vtx dirt_seg3_vertex_0302C0C8[] = {
|
||||
static const Vtx dirt_seg3_vertex_tiny_particle_billboard[] = {
|
||||
{{{ -10, 10, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
|
||||
{{{ 10, 10, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
|
||||
{{{ 0, -10, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
|
||||
};
|
||||
|
||||
// 0x0302C0F8
|
||||
static const Vtx dirt_seg3_vertex_0302C0F8[] = {
|
||||
static const Vtx dirt_seg3_vertex_cartoon_star[] = {
|
||||
{{{ 0, -8, 0}, 0, { 0, 0}, {0x00, 0x00, 0x81, 0x00}}},
|
||||
{{{ -32, 80, 0}, 0, { 0, 0}, {0x00, 0x00, 0x81, 0x00}}},
|
||||
{{{ 32, 80, 0}, 0, { 0, 0}, {0x00, 0x00, 0x81, 0x00}}},
|
||||
@@ -93,7 +93,7 @@ static const Vtx dirt_seg3_vertex_0302C0F8[] = {
|
||||
};
|
||||
|
||||
// 0x0302C198
|
||||
static const Vtx dirt_seg3_vertex_0302C198[] = {
|
||||
static const Vtx dirt_seg3_vertex_cartoon_star_billboard[] = {
|
||||
{{{ 0, -8, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
|
||||
{{{ -32, 80, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
|
||||
{{{ 32, 80, 0}, 0, { 0, 0}, {0xff, 0xff, 0x00, 0xff}}},
|
||||
@@ -107,9 +107,9 @@ static const Vtx dirt_seg3_vertex_0302C198[] = {
|
||||
};
|
||||
|
||||
// 0x0302C238 - 0x0302C298
|
||||
const Gfx dirt_seg3_dl_0302C238[] = {
|
||||
const Gfx dirt_seg3_sub_dl_cartoon_star[] = {
|
||||
gsSPClearGeometryMode(G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C0F8, 10, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_cartoon_star, 10, 0),
|
||||
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0),
|
||||
gsSP2Triangles( 0, 5, 3, 0x0, 6, 7, 0, 0x0),
|
||||
gsSP2Triangles( 2, 8, 6, 0x0, 1, 9, 2, 0x0),
|
||||
@@ -119,41 +119,41 @@ const Gfx dirt_seg3_dl_0302C238[] = {
|
||||
};
|
||||
|
||||
// 0x0302C298 - 0x0302C2B8
|
||||
const Gfx dirt_seg3_dl_0302C298[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BD68.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BD68.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_dl_0302C238),
|
||||
const Gfx dirt_seg3_dl_cartoon_star_red[] = {
|
||||
gsSPLight(&dirt_seg3_lights_red.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_red.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C2B8 - 0x0302C2D8
|
||||
const Gfx dirt_seg3_dl_0302C2B8[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BD80.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BD80.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_dl_0302C238),
|
||||
const Gfx dirt_seg3_dl_cartoon_star_green[] = {
|
||||
gsSPLight(&dirt_seg3_lights_green.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_green.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C2D8 - 0x0302C2F8
|
||||
const Gfx dirt_seg3_dl_0302C2D8[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BD98.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BD98.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_dl_0302C238),
|
||||
const Gfx dirt_seg3_dl_cartoon_star_blue[] = {
|
||||
gsSPLight(&dirt_seg3_lights_blue.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_blue.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C2F8 - 0x0302C318
|
||||
const Gfx dirt_seg3_dl_0302C2F8[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BDB0.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BDB0.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_dl_0302C238),
|
||||
const Gfx dirt_seg3_dl_cartoon_star_yellow[] = {
|
||||
gsSPLight(&dirt_seg3_lights_yellow.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_yellow.a, 2),
|
||||
gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C318 - 0x0302C378
|
||||
const Gfx dirt_seg3_dl_0302C318[] = {
|
||||
const Gfx dirt_seg3_dl_cartoon_star_billboard[] = {
|
||||
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C198, 10, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_cartoon_star_billboard, 10, 0),
|
||||
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0),
|
||||
gsSP2Triangles( 0, 5, 3, 0x0, 6, 7, 0, 0x0),
|
||||
gsSP2Triangles( 2, 8, 6, 0x0, 1, 9, 2, 0x0),
|
||||
@@ -163,53 +163,53 @@ const Gfx dirt_seg3_dl_0302C318[] = {
|
||||
};
|
||||
|
||||
// 0x0302C378 - 0x0302C3B0
|
||||
const Gfx dirt_seg3_dl_0302C378[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BD68.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BD68.a, 2),
|
||||
const Gfx dirt_seg3_dl_tiny_particle_red[] = {
|
||||
gsSPLight(&dirt_seg3_lights_red.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_red.a, 2),
|
||||
gsSPClearGeometryMode(G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C098, 3, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0),
|
||||
gsSP1Triangle( 0, 1, 2, 0x0),
|
||||
gsSPSetGeometryMode(G_CULL_BACK),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C3B0 - 0x0302C3E8
|
||||
const Gfx dirt_seg3_dl_0302C3B0[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BD80.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BD80.a, 2),
|
||||
const Gfx dirt_seg3_dl_tiny_particle_green[] = {
|
||||
gsSPLight(&dirt_seg3_lights_green.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_green.a, 2),
|
||||
gsSPClearGeometryMode(G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C098, 3, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0),
|
||||
gsSP1Triangle( 0, 1, 2, 0x0),
|
||||
gsSPSetGeometryMode(G_CULL_BACK),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C3E8 - 0x0302C420
|
||||
const Gfx dirt_seg3_dl_0302C3E8[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BD98.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BD98.a, 2),
|
||||
const Gfx dirt_seg3_dl_tiny_particle_blue[] = {
|
||||
gsSPLight(&dirt_seg3_lights_blue.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_blue.a, 2),
|
||||
gsSPClearGeometryMode(G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C098, 3, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0),
|
||||
gsSP1Triangle( 0, 1, 2, 0x0),
|
||||
gsSPSetGeometryMode(G_CULL_BACK),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C420 - 0x0302C458
|
||||
const Gfx dirt_seg3_dl_0302C420[] = {
|
||||
gsSPLight(&dirt_seg3_lights_0302BDB0.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_0302BDB0.a, 2),
|
||||
const Gfx dirt_seg3_dl_tiny_particle_yellow[] = {
|
||||
gsSPLight(&dirt_seg3_lights_yellow.l, 1),
|
||||
gsSPLight(&dirt_seg3_lights_yellow.a, 2),
|
||||
gsSPClearGeometryMode(G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C098, 3, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0),
|
||||
gsSP1Triangle( 0, 1, 2, 0x0),
|
||||
gsSPSetGeometryMode(G_CULL_BACK),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x0302C458 - 0x0302C480
|
||||
const Gfx dirt_seg3_dl_0302C458[] = {
|
||||
const Gfx dirt_seg3_dl_tiny_particle_billboard[] = {
|
||||
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
||||
gsSPVertex(dirt_seg3_vertex_0302C0C8, 3, 0),
|
||||
gsSPVertex(dirt_seg3_vertex_tiny_particle_billboard, 3, 0),
|
||||
gsSP1Triangle( 0, 1, 2, 0x0),
|
||||
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
||||
gsSPEndDisplayList(),
|
||||
|
||||
@@ -3,22 +3,22 @@
|
||||
// TODO: These 64x64 textures are referenced as two different texture addresses in the DLs
|
||||
|
||||
// 0x0605AA28
|
||||
ALIGNED8 static const u8 impact_smoke_seg6_texture_0605AA28[] = {
|
||||
ALIGNED8 static const Texture impact_smoke_seg6_texture_0605AA28[] = {
|
||||
#include "actors/impact_smoke/impact_smoke_0.ia16.inc.c"
|
||||
};
|
||||
|
||||
// 0x0605CA28
|
||||
ALIGNED8 static const u8 impact_smoke_seg6_texture_0605CA28[] = {
|
||||
ALIGNED8 static const Texture impact_smoke_seg6_texture_0605CA28[] = {
|
||||
#include "actors/impact_smoke/impact_smoke_1.ia16.inc.c"
|
||||
};
|
||||
|
||||
// 0x0605EA28
|
||||
ALIGNED8 static const u8 impact_smoke_seg6_texture_0605EA28[] = {
|
||||
ALIGNED8 static const Texture impact_smoke_seg6_texture_0605EA28[] = {
|
||||
#include "actors/impact_smoke/impact_smoke_2.ia16.inc.c"
|
||||
};
|
||||
|
||||
// 0x06060A28
|
||||
ALIGNED8 static const u8 impact_smoke_seg6_texture_06060A28[] = {
|
||||
ALIGNED8 static const Texture impact_smoke_seg6_texture_06060A28[] = {
|
||||
#include "actors/impact_smoke/impact_smoke_3.ia16.inc.c"
|
||||
};
|
||||
|
||||
@@ -71,7 +71,7 @@ const Gfx impact_smoke_seg6_dl_06062B38[] = {
|
||||
gsDPLoadTextureBlock(impact_smoke_seg6_texture_0605AA28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
||||
gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_0605AA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)impact_smoke_seg6_texture_0605AA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -83,7 +83,7 @@ const Gfx impact_smoke_seg6_dl_06062BD8[] = {
|
||||
gsDPLoadTextureBlock(impact_smoke_seg6_texture_0605CA28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
||||
gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_0605CA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)impact_smoke_seg6_texture_0605CA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -95,7 +95,7 @@ const Gfx impact_smoke_seg6_dl_06062C78[] = {
|
||||
gsDPLoadTextureBlock(impact_smoke_seg6_texture_0605EA28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
||||
gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_0605EA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)impact_smoke_seg6_texture_0605EA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
||||
gsSPEndDisplayList(),
|
||||
@@ -107,7 +107,7 @@ const Gfx impact_smoke_seg6_dl_06062D18[] = {
|
||||
gsDPLoadTextureBlock(impact_smoke_seg6_texture_06060A28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
||||
gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_06060A28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock((Texture*)impact_smoke_seg6_texture_06060A28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
||||
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
||||
gsSPEndDisplayList(),
|
||||
|
||||
@@ -2078,8 +2078,8 @@ const Gfx koopa_seg6_dl_0600C498[] = {
|
||||
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
||||
gsSP1Triangle( 6, 7, 8, 0x0),
|
||||
#ifdef KOOPA_KEEP_PINK_SHORTS
|
||||
gsSPLight((u8*)koopa_seg6_texture_06002648 + 0x20, 1), // this malformed light results in a
|
||||
gsSPLight((u8*)koopa_seg6_texture_06002648 + 0x18, 2), // koopa appearing to wear pink shorts.
|
||||
gsSPLight((Texture*)koopa_seg6_texture_06002648 + 0x20, 1), // this malformed light results in a
|
||||
gsSPLight((Texture*)koopa_seg6_texture_06002648 + 0x18, 2), // koopa appearing to wear pink shorts.
|
||||
#endif
|
||||
gsSPVertex(koopa_seg6_vertex_0600B5F0, 15, 0),
|
||||
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
||||
|
||||
@@ -9,7 +9,7 @@ const GeoLayout bubbly_tree_geo[] = {
|
||||
#endif
|
||||
GEO_DISPLAY_LIST(LAYER_ALPHA, tree_seg3_dl_bubbly),
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, tree_seg3_dl_bubbly),
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT_INTER, tree_seg3_dl_bubbly),
|
||||
GEO_CLOSE_NODE(),
|
||||
#endif
|
||||
GEO_CLOSE_NODE(),
|
||||
@@ -27,7 +27,7 @@ const GeoLayout spiky_tree_geo[] = {
|
||||
#endif
|
||||
GEO_DISPLAY_LIST(LAYER_ALPHA, tree_seg3_dl_spiky),
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, tree_seg3_dl_spiky),
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT_INTER, tree_seg3_dl_spiky),
|
||||
GEO_CLOSE_NODE(),
|
||||
#endif
|
||||
GEO_CLOSE_NODE(),
|
||||
@@ -45,7 +45,7 @@ const GeoLayout snow_tree_geo[] = {
|
||||
#endif
|
||||
GEO_DISPLAY_LIST(LAYER_ALPHA, tree_seg3_dl_snowy_pine),
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, tree_seg3_dl_snowy_pine),
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT_INTER, tree_seg3_dl_snowy_pine),
|
||||
GEO_CLOSE_NODE(),
|
||||
#endif
|
||||
GEO_CLOSE_NODE(),
|
||||
@@ -63,7 +63,7 @@ const GeoLayout palm_tree_geo[] = {
|
||||
#endif
|
||||
GEO_DISPLAY_LIST(LAYER_ALPHA, tree_seg3_dl_palm),
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, tree_seg3_dl_palm),
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT_INTER, tree_seg3_dl_palm),
|
||||
GEO_CLOSE_NODE(),
|
||||
#endif
|
||||
GEO_CLOSE_NODE(),
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
# assembler directives
|
||||
.set gp=64
|
||||
|
||||
.include "macros.inc"
|
||||
|
||||
|
||||
.section .text, "ax"
|
||||
|
||||
.balign 32
|
||||
glabel mtxf_to_mtx_asm
|
||||
li.s $f6, 0.25
|
||||
li $v0, 1
|
||||
li.s $f4, 65536.0
|
||||
1:
|
||||
lwc1 $f0, ($a1)
|
||||
lwc1 $f2, 0x04($a1)
|
||||
mul.s $f0, $f6
|
||||
mul.s $f2, $f6
|
||||
|
||||
andi $t0, $v0, (1 << 1)
|
||||
mul.s $f0, $f4
|
||||
trunc.w.s $f0, $f0
|
||||
mfc1 $t3, $f0
|
||||
addiu $a1, 8
|
||||
sra $t4, $t3, 16
|
||||
sh $t4, 0x00($a0)
|
||||
sh $t3, 0x20($a0)
|
||||
|
||||
addiu $v0, 2
|
||||
bnez $t0, storezero
|
||||
|
||||
mul.s $f2, $f4
|
||||
trunc.w.s $f2, $f2
|
||||
mfc1 $t3, $f2
|
||||
sra $t4, $t3, 16
|
||||
sh $t4, 0x02($a0)
|
||||
sh $t3, 0x22($a0)
|
||||
loopend:
|
||||
.set noreorder
|
||||
bnel $v0, 0x11, 1b
|
||||
addiu $a0, 4
|
||||
.set reorder
|
||||
|
||||
li $t1, 1
|
||||
sh $t1, 0x02($a0)
|
||||
jr $ra
|
||||
storezero:
|
||||
sh $zero, 0x02($a0)
|
||||
sh $zero, 0x22($a0)
|
||||
j loopend
|
||||
|
||||
@@ -10,9 +10,37 @@
|
||||
|
||||
// SM64 (US/JP/EU/SH) Segment 02
|
||||
#ifdef PUPPYPRINT
|
||||
ALIGNED8 const Texture small_font[] = {
|
||||
ALIGNED8 static const Texture small_font_1[] = {
|
||||
#include "textures/segment2/custom_text.i4.inc.c"
|
||||
};
|
||||
ALIGNED8 static const Texture small_font_2[] = {
|
||||
#include "textures/segment2/custom_text2.i4.inc.c"
|
||||
};
|
||||
|
||||
const Texture *const puppyprint_font_lut[2] = {
|
||||
small_font_1, small_font_2
|
||||
};
|
||||
|
||||
static const u8 small_font_kerning_1[80] = {
|
||||
/*0*/ 6, /*1*/ 5, /*2*/ 7, /*3*/ 7, /*4*/ 7, /*5*/ 7, /*6*/ 8, /*7*/ 7, /*8*/ 7, /*9*/ 6, /*-*/ 8, /*+*/ 8, /*(*/ 5, /*)*/ 5, /*!*/ 4, /*?*/ 6,
|
||||
/*A*/ 7, /*B*/ 7, /*C*/ 7, /*D*/ 7, /*E*/ 6, /*F*/ 5, /*G*/ 8, /*H*/ 6, /*I*/ 6, /*J*/ 5, /*K*/ 7, /*L*/ 6, /*M*/ 7, /*N*/ 7, /*O*/ 7, /*P*/ 6,
|
||||
/*Q*/ 8, /*R*/ 6, /*S*/ 7, /*T*/ 7, /*U*/ 7, /*V*/ 7, /*W*/ 8, /*X*/ 7, /*Y*/ 7, /*Z*/ 7, /*"*/ 5, /*'*/ 2, /*:*/ 3, /*;*/ 3, /*.*/ 3, /*,*/ 3,
|
||||
/*a*/ 7, /*b*/ 7, /*c*/ 6, /*d*/ 7, /*e*/ 7, /*f*/ 7, /*g*/ 7, /*h*/ 7, /*i*/ 3, /*j*/ 5, /*k*/ 8, /*l*/ 4, /*m*/ 7, /*n*/ 7, /*o*/ 7, /*p*/ 7,
|
||||
/*q*/ 7, /*r*/ 6, /*s*/ 6, /*t*/ 6, /*u*/ 6, /*v*/ 7, /*w*/ 8, /*x*/ 6, /*y*/ 8, /*z*/ 7, /*~*/ 8, /*¨*/ 7, /*^*/ 8, /*/*/ 8, /*%*/ 8, /*&*/ 8,
|
||||
};
|
||||
|
||||
static const u8 small_font_kerning_2[80] = {
|
||||
/*0*/ 6, /*1*/ 6, /*2*/ 6, /*3*/ 6, /*4*/ 6, /*5*/ 6, /*6*/ 6, /*7*/ 6, /*8*/ 6, /*9*/ 6, /*-*/ 6, /*+*/ 6, /*(*/ 3, /*)*/ 3, /*!*/ 4, /*?*/ 5,
|
||||
/*A*/ 6, /*B*/ 6, /*C*/ 6, /*D*/ 6, /*E*/ 6, /*F*/ 6, /*G*/ 6, /*H*/ 6, /*I*/ 6, /*J*/ 6, /*K*/ 6, /*L*/ 6, /*M*/ 6, /*N*/ 6, /*O*/ 6, /*P*/ 6,
|
||||
/*Q*/ 6, /*R*/ 6, /*S*/ 6, /*T*/ 6, /*U*/ 6, /*V*/ 6, /*W*/ 6, /*X*/ 6, /*Y*/ 6, /*Z*/ 6, /*"*/ 4, /*'*/ 1, /*:*/ 2, /*;*/ 2, /*.*/ 2, /*,*/ 2,
|
||||
/*a*/ 5, /*b*/ 5, /*c*/ 5, /*d*/ 5, /*e*/ 5, /*f*/ 5, /*g*/ 5, /*h*/ 5, /*i*/ 1, /*j*/ 5, /*k*/ 5, /*l*/ 3, /*m*/ 5, /*n*/ 5, /*o*/ 5, /*p*/ 5,
|
||||
/*q*/ 5, /*r*/ 5, /*s*/ 5, /*t*/ 5, /*u*/ 5, /*v*/ 5, /*w*/ 5, /*x*/ 5, /*y*/ 5, /*z*/ 5, /*~*/ 6, /*¨*/ 5, /*^*/ 6, /*/*/ 5, /*%*/ 5, /*&*/ 6,
|
||||
};
|
||||
|
||||
const u8 *const puppyprint_kerning_lut[2][80] = {
|
||||
small_font_kerning_1, small_font_kerning_2
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
ALIGNED8 static const Texture texture_hud_char_0[] = {
|
||||
|
||||
@@ -142,7 +142,7 @@ const Gfx title_screen_bg_dl_face_easter_egg_end[] = {
|
||||
#endif
|
||||
|
||||
#if ENABLE_RUMBLE
|
||||
ALIGNED8 static const u8 title_texture_rumble_pak[] = {
|
||||
ALIGNED8 static const Texture title_texture_rumble_pak[] = {
|
||||
#include "textures/title_screen_bg/title_screen_bg.06648.rgba16.inc.c"
|
||||
};
|
||||
|
||||
|
||||
@@ -1066,7 +1066,7 @@ const BehaviorScript bhvDoor[] = {
|
||||
BEGIN(OBJ_LIST_SURFACE),
|
||||
SET_INT(oInteractType, INTERACT_DOOR),
|
||||
// Door - common:
|
||||
OR_INT(oFlags, (OBJ_FLAG_ACTIVE_FROM_AFAR | OBJ_FLAG_COMPUTE_DIST_TO_MARIO | OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)),
|
||||
OR_LONG(oFlags, (OBJ_FLAG_ACTIVE_FROM_AFAR | OBJ_FLAG_COMPUTE_DIST_TO_MARIO | OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE | OBJ_FLAG_UCODE_LARGE)),
|
||||
LOAD_ANIMATIONS(oAnimations, door_seg3_anims_030156C0),
|
||||
ANIMATE(0),
|
||||
LOAD_COLLISION_DATA(door_seg3_collision_door),
|
||||
@@ -2218,11 +2218,6 @@ const BehaviorScript bhvMacroUkiki[] = {
|
||||
END_LOOP(),
|
||||
};
|
||||
|
||||
const BehaviorScript bhvStub1D0C[] = {
|
||||
BEGIN(OBJ_LIST_DEFAULT),
|
||||
DEACTIVATE(),
|
||||
};
|
||||
|
||||
const BehaviorScript bhvLllRotatingHexagonalPlatform[] = {
|
||||
BEGIN(OBJ_LIST_SURFACE),
|
||||
OR_LONG(oFlags, (OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE | OBJ_FLAG_DONT_CALC_COLL_DIST | OBJ_FLAG_UCODE_LARGE)),
|
||||
@@ -3198,7 +3193,7 @@ const BehaviorScript bhvSmallWhomp[] = {
|
||||
BEGIN(OBJ_LIST_SURFACE),
|
||||
SET_INT(oNumLootCoins, 5),
|
||||
// Whomp - common:
|
||||
OR_INT(oFlags, (OBJ_FLAG_COMPUTE_ANGLE_TO_MARIO | OBJ_FLAG_COMPUTE_DIST_TO_MARIO | OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)),
|
||||
OR_LONG(oFlags, (OBJ_FLAG_COMPUTE_ANGLE_TO_MARIO | OBJ_FLAG_COMPUTE_DIST_TO_MARIO | OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE | OBJ_FLAG_UCODE_LARGE)),
|
||||
LOAD_ANIMATIONS(oAnimations, whomp_seg6_anims_06020A04),
|
||||
LOAD_COLLISION_DATA(whomp_seg6_collision_06020A0C),
|
||||
ANIMATE(0),
|
||||
|
||||
@@ -182,7 +182,6 @@ index 7d9b5b4a..c7bb81b9 100755
|
||||
BUILD_DIR/asm/decompress.o(.text);
|
||||
+ BUILD_DIR/asm/crash.o(.text);
|
||||
BUILD_DIR/src/game/camera.o(.text);
|
||||
BUILD_DIR/src/game/debug_course.o(.text);
|
||||
BUILD_DIR/src/game/object_list_processor.o(.text);
|
||||
diff --git a/src/game/crash.c b/src/game/crash.c
|
||||
new file mode 100644
|
||||
|
||||
@@ -22,7 +22,7 @@ index 0000000..6bf33a8
|
||||
+ UNUSED f32 floorHeight;
|
||||
+ if ((platform = o->platform) != NULL)
|
||||
+- apply_platform_displacement(0, platform);
|
||||
++ apply_platform_displacement(&sBowserDisplacementInfo, &o->oPosX, &o->oFaceAngleYaw, platform);
|
||||
++ apply_platform_displacement(&sBowserDisplacementInfo, &o->oPosVec, &o->oFaceAngleYaw, platform);
|
||||
+ o->oBowserUnk10E = 0;
|
||||
+ cur_obj_update_floor_and_walls();
|
||||
+ cur_obj_call_action_function(sBowserActions);
|
||||
@@ -312,7 +312,7 @@ index 97cba2a..410e612 100644
|
||||
- if ((platform = o->platform) != NULL)
|
||||
- apply_platform_displacement(FALSE, platform);
|
||||
+ if ((platform = o->platform) != NULL) {
|
||||
+ apply_platform_displacement(&sBowserDisplacementInfo, &o->oPosX, &o->oFaceAngleYaw, platform);
|
||||
+ apply_platform_displacement(&sBowserDisplacementInfo, &o->oPosVec, &o->oFaceAngleYaw, platform);
|
||||
+ }
|
||||
o->oBowserUnk10E = 0;
|
||||
cur_obj_update_floor_and_walls();
|
||||
@@ -1648,7 +1648,7 @@ index 0000000..97cba2a
|
||||
+ if ((o->oTimer & 1) == 0 && o->oTimer < 14) {
|
||||
+ sp22 = D_8032F698[o->oBehParams2ndByte].unk3 + (gDebugInfo[4][1] << 8);
|
||||
+ sp1C = -(o->oTimer / 2) * 290 + 1740;
|
||||
+ vec3f_copy(sp24, &o->oPosX);
|
||||
+ vec3f_copy(sp24, &o->oPosVec);
|
||||
+ o->oPosX = D_8032F698[o->oBehParams2ndByte].unk1 + sins(sp22 + 5296) * sp1C;
|
||||
+ o->oPosZ = D_8032F698[o->oBehParams2ndByte].unk2 + coss(sp22 + 5296) * sp1C;
|
||||
+ o->oPosY = 307.0f;
|
||||
@@ -1656,7 +1656,7 @@ index 0000000..97cba2a
|
||||
+ o->oPosX = D_8032F698[o->oBehParams2ndByte].unk1 + sins(sp22 - 5296) * sp1C;
|
||||
+ o->oPosZ = D_8032F698[o->oBehParams2ndByte].unk2 + coss(sp22 - 5296) * sp1C;
|
||||
+ spawn_mist_particles_variable(4, 0, 100);
|
||||
+ vec3f_copy(&o->oPosX, sp24);
|
||||
+ vec3f_copy(&o->oPosVec, sp24);
|
||||
+ }
|
||||
+ cur_obj_move_using_fvel_and_gravity();
|
||||
+ if (o->oTimer > 300)
|
||||
@@ -1922,7 +1922,7 @@ index 0000000..f47808d
|
||||
+ UNUSED f32 floorHeight;
|
||||
+ if ((platform = o->platform) != NULL)
|
||||
+- apply_platform_displacement(0, platform);
|
||||
++ apply_platform_displacement(&sBowserDisplacementInfo, &o->oPosX, &o->oFaceAngleYaw, platform);
|
||||
++ apply_platform_displacement(&sBowserDisplacementInfo, &o->oPosVec, &o->oFaceAngleYaw, platform);
|
||||
+ o->oBowserUnk10E = 0;
|
||||
+ cur_obj_update_floor_and_walls();
|
||||
+ cur_obj_call_action_function(sBowserActions);
|
||||
|
||||
@@ -739,9 +739,9 @@ index b515373..1fdf027 100644
|
||||
}
|
||||
|
||||
int numTiles = TABLE_DIMENSIONS[type].cols * TABLE_DIMENSIONS[type].rows;
|
||||
+ fprintf(cFile, "ALIGNED8 static const u8 cake_end_texture_%sdata[] = {\n", euSuffx);
|
||||
+ fprintf(cFile, "ALIGNED8 static const Texture cake_end_texture_%sdata[] = {\n", euSuffx);
|
||||
for (int i = 0; i < numTiles; ++i) {
|
||||
- fprintf(cFile, "ALIGNED8 static const u8 cake_end_texture_%s%d[] = {\n", euSuffx, i);
|
||||
- fprintf(cFile, "ALIGNED8 static const Texture cake_end_texture_%s%d[] = {\n", euSuffx, i);
|
||||
print_raw_data(cFile, &tiles[i]);
|
||||
- fputs("};\n\n", cFile);
|
||||
+ fputc('\n', cFile);
|
||||
|
||||
@@ -176,7 +176,6 @@ extern const BehaviorScript bhvMoatGrills[];
|
||||
extern const BehaviorScript bhvClockMinuteHand[];
|
||||
extern const BehaviorScript bhvClockHourHand[];
|
||||
extern const BehaviorScript bhvMacroUkiki[];
|
||||
extern const BehaviorScript bhvStub1D0C[];
|
||||
extern const BehaviorScript bhvLllRotatingHexagonalPlatform[];
|
||||
extern const BehaviorScript bhvLllSinkingRockBlock[];
|
||||
extern const BehaviorScript bhvStub1D70[];
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Thank you to Kaze Emanuar for these major optimizations!
|
||||
* https://www.youtube.com/watch?v=uYPH-NH3B6k
|
||||
*
|
||||
* If you are making a hack with this repo, it is recommended to credit Kaze Emanuar.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file config.h
|
||||
* A catch-all file for configuring various bugfixes and other settings in SM64
|
||||
@@ -26,6 +33,10 @@
|
||||
#endif // TARGET_N64
|
||||
|
||||
// -- GAME SETTINGS --
|
||||
// Disables some mechanics that change behavior depending on hardcoded level numbers.
|
||||
// You may also need to change sLevelsWithRooms in object_helpers.c
|
||||
// TODO: separate this into separate defines, behavior params, or make these mechanics otherwise dynamic
|
||||
// #define DISABLE_LEVEL_SPECIFIC_CHECKS
|
||||
// Disable lives and hide the lives counter
|
||||
#define DISABLE_LIVES
|
||||
// Air/Breath meter is separate from health meter when underwater
|
||||
@@ -66,6 +77,7 @@
|
||||
// 1 is similar to vanilla, but prevents Mario from moving in the wrong direction, and allows finer control with the analog stick.
|
||||
// 2 is similar to mode 1, but a bit further from vanilla, and allows instant turnaround if Mario is moving slower than a certain threshold.
|
||||
// 3 is instant turning to the intended direction regardless of speed and angle.
|
||||
// 4 is an experimental asymptotic turn.
|
||||
#define GROUND_TURN_MODE 0
|
||||
// Improved hanging:
|
||||
// - Doesn't require holding down the A button
|
||||
@@ -93,8 +105,8 @@
|
||||
#define HANGING_FIX
|
||||
// The last frame that will be considered a firsty when wallkicking
|
||||
#define FIRSTY_LAST_FRAME 1
|
||||
// 46 degree walkicks
|
||||
//#define WALLKICKS_46_DEGREES
|
||||
// The maximum angle the player can wall kick, in degrees. 0..90. To allow 45 degree wall kicks, you must supply `46` to allow 45 and under.
|
||||
#define WALL_KICK_DEGREES 45
|
||||
// Disable BLJs and crush SimpleFlips's dreams
|
||||
//#define DISABLE_BLJ
|
||||
|
||||
@@ -118,6 +130,14 @@
|
||||
// -- SPECIFIC OBJECT SETTINGS --
|
||||
// Allow for retries on collecting the remaining blue coins from a blue coin switch
|
||||
#define BLUE_COIN_SWITCH_RETRY
|
||||
// Fixes shell cancel
|
||||
//#define SHELL_CANCEL_FIX
|
||||
// The number of chain balls the Chain Chomp has. Vanilla is 5.
|
||||
#define CHAIN_CHOMP_NUM_SEGMENTS 5
|
||||
// The number of parts Pokey has, including the head. Vanilla is 5, max is 30.
|
||||
#define POKEY_NUM_SEGMENTS 5
|
||||
// The number of segments Wiggler has, not including the head. Vanilla is 4.
|
||||
#define WIGGLER_NUM_SEGMENTS 4
|
||||
|
||||
// -- CUTSCENE SKIPS --
|
||||
// Skip peach letter cutscene
|
||||
@@ -126,12 +146,10 @@
|
||||
//#define SKIP_TITLE_SCREEN
|
||||
// Uncomment this if you want to keep the mario head and not skip it
|
||||
//#define KEEP_MARIO_HEAD
|
||||
#ifdef KEEP_MARIO_HEAD // safeguard
|
||||
//Goddard easter egg from Shindou (has no effect if KEEP_MARIO_HEAD is disabled)
|
||||
// Goddard easter egg from Shindou (has no effect if KEEP_MARIO_HEAD is disabled)
|
||||
#define GODDARD_EASTER_EGG
|
||||
// Disables the demo that plays when idle on the start screen (has no effect if KEEP_MARIO_HEAD is disabled)
|
||||
#define DISABLE_DEMO
|
||||
#endif // KEEP_MARIO_HEAD
|
||||
|
||||
// -- CAMERA SETTINGS --
|
||||
// Remove course specific camera processing
|
||||
@@ -189,6 +207,8 @@
|
||||
//#define TEST_LEVEL LEVEL_BOB
|
||||
// Enable debug level select
|
||||
//#define DEBUG_LEVEL_SELECT
|
||||
// Enable debug free move (DPad up to enter, A to exit)
|
||||
//#define ENABLE_DEBUG_FREE_MOVE
|
||||
// Custom debug mode. Press DPAD left to show the debug UI. Press DPAD right to enter the noclip mode.
|
||||
//#define CUSTOM_DEBUG
|
||||
// Include Puppyprint, a display library for text and large images. Also includes a custom, enhanced performance profiler.
|
||||
@@ -203,3 +223,9 @@
|
||||
//#define UNLOCK_ALL
|
||||
|
||||
// If you want to change the extended boundaries mode, go to engine/extended_bounds.h and change EXTENDED_BOUNDS_MODE
|
||||
|
||||
// -- Compatibility safeguards. Don't mess with these unless you know what you're doing.--
|
||||
#ifndef KEEP_MARIO_HEAD
|
||||
#undef GODDARD_EASTER_EGG
|
||||
#define DISABLE_DEMO
|
||||
#endif
|
||||
@@ -447,5 +447,4 @@
|
||||
CMD_HHHHHH(tx, ty, tz, rx, ry, rz), \
|
||||
CMD_PTR(displayList)
|
||||
|
||||
|
||||
#endif // GEO_COMMANDS_H
|
||||
@@ -8,7 +8,7 @@
|
||||
struct MacroPreset
|
||||
{
|
||||
/*0x00*/ const BehaviorScript *behavior;
|
||||
/*0x04*/ s16 model;
|
||||
/*0x04*/ ModelID16 model;
|
||||
/*0x06*/ s16 param;
|
||||
};
|
||||
|
||||
@@ -109,7 +109,7 @@ struct MacroPreset MacroObjectPresets[] = {
|
||||
{bhvSmallBully, MODEL_BULLY, 0},
|
||||
{bhvSmallBully, MODEL_BULLY_BOSS, 0}, // unused
|
||||
{bhvYellowCoin, MODEL_YELLOW_COIN, 0},
|
||||
{bhvStub1D0C, MODEL_UNKNOWN_58, 0}, // unused
|
||||
{bhvYellowCoin, MODEL_UNKNOWN_58, 0}, // unused
|
||||
{bhvBouncingFireball, MODEL_NONE, 0},
|
||||
{bhvFlamethrower, MODEL_NONE, 4},
|
||||
{bhvYellowCoin, MODEL_YELLOW_COIN, 0},
|
||||
|
||||
@@ -110,13 +110,13 @@
|
||||
#define MODEL_CASTLE_CLOCK_PENDULUM 0x39 // castle_geo_001518
|
||||
|
||||
// hmc
|
||||
#define MODEL_HMC_METAL_PLATFORM 0x36 // hmc_geo_controllable_arrow_platform
|
||||
#define MODEL_HMC_METAL_ARROW_PLATFORM 0x37 // hmc_geo_controllable_arrow_platform_button
|
||||
#define MODEL_HMC_ELEVATOR_PLATFORM 0x38 // hmc_geo_elevator_platform
|
||||
#define MODEL_HMC_ROLLING_ROCK 0x39 // hmc_geo_rolling_rock
|
||||
#define MODEL_HMC_ROCK_PIECE 0x3A // hmc_geo_rolling_rock_fragment_large - unused
|
||||
#define MODEL_HMC_ROCK_SMALL_PIECE 0x3B // hmc_geo_rolling_rock_fragment_small - unused
|
||||
#define MODEL_HMC_RED_GRILLS 0x3C // hmc_geo_grill_door
|
||||
#define MODEL_HMC_METAL_PLATFORM 0x36 // hmc_geo_0005A0
|
||||
#define MODEL_HMC_METAL_ARROW_PLATFORM 0x37 // hmc_geo_0005B8
|
||||
#define MODEL_HMC_ELEVATOR_PLATFORM 0x38 // hmc_geo_0005D0
|
||||
#define MODEL_HMC_ROLLING_ROCK 0x39 // hmc_geo_000548
|
||||
#define MODEL_HMC_ROCK_PIECE 0x3A // hmc_geo_000570 - unused
|
||||
#define MODEL_HMC_ROCK_SMALL_PIECE 0x3B // hmc_geo_000588 - unused
|
||||
#define MODEL_HMC_RED_GRILLS 0x3C // hmc_geo_000530
|
||||
|
||||
// ssl
|
||||
#define MODEL_SSL_PYRAMID_TOP 0x3A // ssl_geo_000618
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
#define /*0x19C*/ oDrawingDistance OBJECT_FIELD_F32(0x45)
|
||||
#define /*0x1A0*/ oRoom OBJECT_FIELD_S32(0x46)
|
||||
// 0x1A4 is unused, possibly related to 0x1A8 in removed macro purposes.
|
||||
#define /*0x1A8*/ oUnk1A8 OBJECT_FIELD_U32(0x48)
|
||||
#define /*0x1A8*/ oUnusedCoinParams OBJECT_FIELD_U32(0x48)
|
||||
// 0x1AC-0x1B2 (0x48-0x4A) are object specific and defined below the common fields.
|
||||
#define /*0x1B4*/ oWallAngle OBJECT_FIELD_S32(0x4B)
|
||||
#define /*0x1B8*/ oFloorType OBJECT_FIELD_S16(0x4C, 0)
|
||||
|
||||
@@ -29,6 +29,31 @@
|
||||
#define SET_HIGH_U16_OF_32(var, x) ((var) = ((var) & 0xFFFF) | ((x) << 16))
|
||||
#define SET_HIGH_S16_OF_32(var, x) ((var) = ((var) & 0xFFFF) | ((x) << 16))
|
||||
|
||||
// Common cos values for degrees, often used for surface Y normals
|
||||
// These are different than coss()
|
||||
#define COS1 0.9998477f
|
||||
#define COS5 0.9961947f
|
||||
#define COS10 0.9848077f
|
||||
#define COS15 0.9659258f
|
||||
#define COS20 0.9396926f
|
||||
#define COS25 0.9063078f // ledge grabs
|
||||
#define COS30 0.8660254f
|
||||
#define COS35 0.85264016f
|
||||
#define COS36 0.8443279f
|
||||
#define COS38 0.7880108f // mario_floor_is_slippery default
|
||||
#define COS40 0.80901699f
|
||||
#define COS45 0.76040596f
|
||||
#define COS50 0.70710678f // SURFACE_FLAG_X_PROJECTION
|
||||
#define COS55 0.64944805f
|
||||
#define COS60 0.58778525f
|
||||
#define COS65 0.52249856f
|
||||
#define COS70 0.4539905f
|
||||
#define COS73 0.29237169f // common_landing_cancels, check_common_idle_cancels, check_common_hold_idle_cancels
|
||||
#define COS75 0.38268343f
|
||||
#define COS78 0.20791169f
|
||||
#define COS80 0.17364818f // braking action
|
||||
#define COS85 0.23344536f
|
||||
|
||||
enum RenderLayers
|
||||
{
|
||||
LAYER_FORCE,
|
||||
|
||||
@@ -17,7 +17,7 @@ struct SpecialPreset
|
||||
/*00*/ u8 preset_id;
|
||||
/*01*/ u8 type; // Determines whether object is 8, 10, 12 or 14 bytes long.
|
||||
/*02*/ u8 defParam; // Default parameter, only used when type is SPTYPE_DEF_PARAM_AND_YROT
|
||||
/*03*/ ModelID model;
|
||||
/*03*/ ModelID16 model;
|
||||
/*04*/ const BehaviorScript *behavior;
|
||||
};
|
||||
|
||||
|
||||
@@ -154,18 +154,29 @@
|
||||
#define SURFACE_WOBBLING_WARP 0x00FD // Pool warp (HMC & DDD)
|
||||
#define SURFACE_TRAPDOOR 0x00FF // Bowser Left trapdoor, has no action defined
|
||||
|
||||
#define SURFACE_IS_QUICKSAND(cmd) (cmd >= 0x21 && cmd < 0x28) // Doesn't include SURFACE_INSTANT_MOVING_QUICKSAND
|
||||
#define SURFACE_IS_NOT_HARD(cmd) (cmd != SURFACE_HARD && \
|
||||
!(cmd >= 0x35 && cmd <= 0x37))
|
||||
#define SURFACE_IS_PAINTING_WARP(cmd) (cmd >= 0xD3 && cmd < 0xFD)
|
||||
#define SURFACE_IS_NEW_WATER(cmd) (cmd == SURFACE_NEW_WATER || cmd == SURFACE_NEW_WATER_BOTTOM)
|
||||
#define SURFACE_IS_QUICKSAND(cmd) ((cmd >= SURFACE_SHALLOW_QUICKSAND && cmd <= SURFACE_MOVING_QUICKSAND) || cmd == SURFACE_INSTANT_MOVING_QUICKSAND)
|
||||
#define SURFACE_IS_NOT_HARD(cmd) (cmd != SURFACE_HARD && !(cmd >= SURFACE_HARD_SLIPPERY && cmd <= SURFACE_HARD_NOT_SLIPPERY))
|
||||
#define SURFACE_IS_PAINTING_WOBBLE(cmd) (cmd >= SURFACE_PAINTING_WOBBLE_A6 && cmd <= SURFACE_PAINTING_WOBBLE_D2)
|
||||
#define SURFACE_IS_PAINTING_WOBBLE_LEFT(cmd) (((cmd - SURFACE_PAINTING_WOBBLE_A6) % 3) == 0)
|
||||
#define SURFACE_IS_PAINTING_WOBBLE_MIDDLE(cmd) (((cmd - SURFACE_PAINTING_WOBBLE_A7) % 3) == 0)
|
||||
#define SURFACE_IS_PAINTING_WOBBLE_RIGHT(cmd) (((cmd - SURFACE_PAINTING_WOBBLE_A8) % 3) == 0)
|
||||
#define SURFACE_IS_PAINTING_WARP(cmd) (cmd >= SURFACE_PAINTING_WARP_D3 && cmd < SURFACE_WOBBLING_WARP) // skips SURFACE_WOBBLING_WARP
|
||||
#define SURFACE_IS_PAINTING_WARP_LEFT(cmd) (((cmd - SURFACE_PAINTING_WARP_D3 ) % 3) == 0)
|
||||
#define SURFACE_IS_PAINTING_WARP_MIDDLE(cmd) (((cmd - SURFACE_PAINTING_WARP_D4 ) % 3) == 0)
|
||||
#define SURFACE_IS_PAINTING_WARP_RIGHT(cmd) (((cmd - SURFACE_PAINTING_WARP_D5 ) % 3) == 0)
|
||||
#define SURFACE_IS_INSTANT_WARP(cmd) (cmd >= SURFACE_INSTANT_WARP_1B && cmd <= SURFACE_INSTANT_WARP_1E)
|
||||
#define SURFACE_IS_WARP(cmd) (SURFACE_IS_PAINTING_WARP(cmd) || SURFACE_IS_INSTANT_WARP(cmd) || cmd == SURFACE_LOOK_UP_WARP || cmd == SURFACE_WOBBLING_WARP)
|
||||
#define SURFACE_IS_UNSAFE(cmd) (SURFACE_IS_QUICKSAND(cmd)|| cmd == SURFACE_BURNING)
|
||||
|
||||
#define SURFACE_CLASS_DEFAULT 0x0000
|
||||
#define SURFACE_CLASS_VERY_SLIPPERY 0x0013
|
||||
#define SURFACE_CLASS_SLIPPERY 0x0014
|
||||
#define SURFACE_CLASS_NOT_SLIPPERY 0x0015
|
||||
|
||||
#define SURFACE_FLAG_DYNAMIC (1 << 0)
|
||||
#define SURFACE_FLAG_NO_CAM_COLLISION (1 << 1)
|
||||
#define SURFACE_FLAGS_NONE (0 << 0) // 0x0000
|
||||
#define SURFACE_FLAG_DYNAMIC (1 << 0) // 0x0001
|
||||
#define SURFACE_FLAG_NO_CAM_COLLISION (1 << 1) // 0x0002
|
||||
|
||||
// These are effectively unique "surface" types like those defined higher
|
||||
// And they are used as collision commands to load certain functions
|
||||
|
||||
@@ -5,262 +5,262 @@
|
||||
#include <PR/gbi.h>
|
||||
|
||||
// cave
|
||||
extern const u8 cave_09000000[];
|
||||
extern const u8 cave_09001000[];
|
||||
extern const u8 cave_09001800[];
|
||||
extern const u8 cave_09002800[];
|
||||
extern const u8 cave_09003000[];
|
||||
extern const u8 cave_09003800[];
|
||||
extern const u8 cave_09004800[];
|
||||
extern const u8 cave_09005800[];
|
||||
extern const u8 cave_09006800[];
|
||||
extern const u8 cave_09007000[];
|
||||
extern const u8 cave_09007800[];
|
||||
extern const u8 cave_09008800[];
|
||||
extern const u8 cave_09009800[];
|
||||
extern const u8 cave_0900A000[];
|
||||
extern const u8 cave_0900A800[];
|
||||
extern const u8 cave_0900B800[];
|
||||
extern const u8 cave_0900C000[];
|
||||
extern const Texture cave_09000000[];
|
||||
extern const Texture cave_09001000[];
|
||||
extern const Texture cave_09001800[];
|
||||
extern const Texture cave_09002800[];
|
||||
extern const Texture cave_09003000[];
|
||||
extern const Texture cave_09003800[];
|
||||
extern const Texture cave_09004800[];
|
||||
extern const Texture cave_09005800[];
|
||||
extern const Texture cave_09006800[];
|
||||
extern const Texture cave_09007000[];
|
||||
extern const Texture cave_09007800[];
|
||||
extern const Texture cave_09008800[];
|
||||
extern const Texture cave_09009800[];
|
||||
extern const Texture cave_0900A000[];
|
||||
extern const Texture cave_0900A800[];
|
||||
extern const Texture cave_0900B800[];
|
||||
extern const Texture cave_0900C000[];
|
||||
|
||||
// fire
|
||||
extern const u8 fire_09000000[];
|
||||
extern const u8 fire_09000800[];
|
||||
extern const u8 fire_09001000[];
|
||||
extern const u8 fire_09001800[];
|
||||
extern const u8 fire_09002000[];
|
||||
extern const u8 fire_09002800[];
|
||||
extern const u8 fire_09003000[];
|
||||
extern const u8 fire_09003800[];
|
||||
extern const u8 fire_09004000[];
|
||||
extern const u8 fire_09004800[];
|
||||
extern const u8 fire_09005000[];
|
||||
extern const u8 fire_09005800[];
|
||||
extern const u8 fire_09006000[];
|
||||
extern const u8 fire_09006800[];
|
||||
extern const u8 fire_09007000[];
|
||||
extern const u8 fire_09007800[];
|
||||
extern const u8 fire_09008000[];
|
||||
extern const u8 fire_09008800[];
|
||||
extern const u8 fire_09009000[];
|
||||
extern const u8 fire_09009800[];
|
||||
extern const u8 fire_0900A000[];
|
||||
extern const u8 fire_0900A800[];
|
||||
extern const u8 fire_0900B000[];
|
||||
extern const u8 fire_0900B800[];
|
||||
extern const Texture fire_09000000[];
|
||||
extern const Texture fire_09000800[];
|
||||
extern const Texture fire_09001000[];
|
||||
extern const Texture fire_09001800[];
|
||||
extern const Texture fire_09002000[];
|
||||
extern const Texture fire_09002800[];
|
||||
extern const Texture fire_09003000[];
|
||||
extern const Texture fire_09003800[];
|
||||
extern const Texture fire_09004000[];
|
||||
extern const Texture fire_09004800[];
|
||||
extern const Texture fire_09005000[];
|
||||
extern const Texture fire_09005800[];
|
||||
extern const Texture fire_09006000[];
|
||||
extern const Texture fire_09006800[];
|
||||
extern const Texture fire_09007000[];
|
||||
extern const Texture fire_09007800[];
|
||||
extern const Texture fire_09008000[];
|
||||
extern const Texture fire_09008800[];
|
||||
extern const Texture fire_09009000[];
|
||||
extern const Texture fire_09009800[];
|
||||
extern const Texture fire_0900A000[];
|
||||
extern const Texture fire_0900A800[];
|
||||
extern const Texture fire_0900B000[];
|
||||
extern const Texture fire_0900B800[];
|
||||
|
||||
// generic
|
||||
extern const u8 generic_09000000[];
|
||||
extern const u8 generic_09000800[];
|
||||
extern const u8 generic_09001000[];
|
||||
extern const u8 generic_09001800[];
|
||||
extern const u8 generic_09002000[];
|
||||
extern const u8 generic_09002800[];
|
||||
extern const u8 generic_09003000[];
|
||||
extern const u8 generic_09003800[];
|
||||
extern const u8 generic_09004000[];
|
||||
extern const u8 generic_09004800[];
|
||||
extern const u8 generic_09005000[];
|
||||
extern const u8 generic_09005800[];
|
||||
extern const u8 generic_09006000[];
|
||||
extern const u8 generic_09007000[];
|
||||
extern const u8 generic_09007800[];
|
||||
extern const u8 generic_09008000[];
|
||||
extern const u8 generic_09008800[];
|
||||
extern const u8 generic_09009000[];
|
||||
extern const u8 generic_09009800[];
|
||||
extern const u8 generic_0900A000[];
|
||||
extern const u8 generic_0900A800[];
|
||||
extern const u8 generic_0900B000[];
|
||||
extern const Texture generic_09000000[];
|
||||
extern const Texture generic_09000800[];
|
||||
extern const Texture generic_09001000[];
|
||||
extern const Texture generic_09001800[];
|
||||
extern const Texture generic_09002000[];
|
||||
extern const Texture generic_09002800[];
|
||||
extern const Texture generic_09003000[];
|
||||
extern const Texture generic_09003800[];
|
||||
extern const Texture generic_09004000[];
|
||||
extern const Texture generic_09004800[];
|
||||
extern const Texture generic_09005000[];
|
||||
extern const Texture generic_09005800[];
|
||||
extern const Texture generic_09006000[];
|
||||
extern const Texture generic_09007000[];
|
||||
extern const Texture generic_09007800[];
|
||||
extern const Texture generic_09008000[];
|
||||
extern const Texture generic_09008800[];
|
||||
extern const Texture generic_09009000[];
|
||||
extern const Texture generic_09009800[];
|
||||
extern const Texture generic_0900A000[];
|
||||
extern const Texture generic_0900A800[];
|
||||
extern const Texture generic_0900B000[];
|
||||
|
||||
// grass
|
||||
extern const u8 grass_09000000[];
|
||||
extern const u8 grass_09000800[];
|
||||
extern const u8 grass_09001000[];
|
||||
extern const u8 grass_09001800[];
|
||||
extern const u8 grass_09002000[];
|
||||
extern const u8 grass_09002800[];
|
||||
extern const u8 grass_09003000[];
|
||||
extern const u8 grass_09003800[];
|
||||
extern const u8 grass_09004000[];
|
||||
extern const u8 grass_09004800[];
|
||||
extern const u8 grass_09005000[];
|
||||
extern const u8 grass_09005800[];
|
||||
extern const u8 grass_09006000[];
|
||||
extern const u8 grass_09006800[];
|
||||
extern const u8 grass_09007000[];
|
||||
extern const u8 grass_09007800[];
|
||||
extern const u8 grass_09008000[];
|
||||
extern const u8 grass_09008800[];
|
||||
extern const u8 grass_09009000[];
|
||||
extern const u8 grass_09009800[];
|
||||
extern const u8 grass_0900A000[];
|
||||
extern const u8 grass_0900A800[];
|
||||
extern const u8 grass_0900B000[];
|
||||
extern const u8 grass_0900B800[];
|
||||
extern const Texture grass_09000000[];
|
||||
extern const Texture grass_09000800[];
|
||||
extern const Texture grass_09001000[];
|
||||
extern const Texture grass_09001800[];
|
||||
extern const Texture grass_09002000[];
|
||||
extern const Texture grass_09002800[];
|
||||
extern const Texture grass_09003000[];
|
||||
extern const Texture grass_09003800[];
|
||||
extern const Texture grass_09004000[];
|
||||
extern const Texture grass_09004800[];
|
||||
extern const Texture grass_09005000[];
|
||||
extern const Texture grass_09005800[];
|
||||
extern const Texture grass_09006000[];
|
||||
extern const Texture grass_09006800[];
|
||||
extern const Texture grass_09007000[];
|
||||
extern const Texture grass_09007800[];
|
||||
extern const Texture grass_09008000[];
|
||||
extern const Texture grass_09008800[];
|
||||
extern const Texture grass_09009000[];
|
||||
extern const Texture grass_09009800[];
|
||||
extern const Texture grass_0900A000[];
|
||||
extern const Texture grass_0900A800[];
|
||||
extern const Texture grass_0900B000[];
|
||||
extern const Texture grass_0900B800[];
|
||||
|
||||
// inside
|
||||
extern const u8 inside_09000000[];
|
||||
extern const u8 inside_09001000[];
|
||||
extern const u8 inside_09002000[];
|
||||
extern const u8 inside_09003000[];
|
||||
extern const u8 inside_09003800[];
|
||||
extern const u8 inside_09004000[];
|
||||
extern const u8 inside_09004800[];
|
||||
extern const u8 inside_09005000[];
|
||||
extern const u8 inside_09005800[];
|
||||
extern const u8 inside_09006000[];
|
||||
extern const u8 inside_09007000[];
|
||||
extern const u8 inside_09008000[];
|
||||
extern const u8 inside_09008800[];
|
||||
extern const u8 inside_09009000[];
|
||||
extern const u8 inside_0900A000[];
|
||||
extern const u8 inside_0900B000[];
|
||||
extern const u8 inside_0900B800[];
|
||||
extern const Texture inside_09000000[];
|
||||
extern const Texture inside_09001000[];
|
||||
extern const Texture inside_09002000[];
|
||||
extern const Texture inside_09003000[];
|
||||
extern const Texture inside_09003800[];
|
||||
extern const Texture inside_09004000[];
|
||||
extern const Texture inside_09004800[];
|
||||
extern const Texture inside_09005000[];
|
||||
extern const Texture inside_09005800[];
|
||||
extern const Texture inside_09006000[];
|
||||
extern const Texture inside_09007000[];
|
||||
extern const Texture inside_09008000[];
|
||||
extern const Texture inside_09008800[];
|
||||
extern const Texture inside_09009000[];
|
||||
extern const Texture inside_0900A000[];
|
||||
extern const Texture inside_0900B000[];
|
||||
extern const Texture inside_0900B800[];
|
||||
|
||||
// machine
|
||||
extern const u8 machine_09000000[];
|
||||
extern const u8 machine_09000800[];
|
||||
extern const u8 machine_09001000[];
|
||||
extern const u8 machine_09001800[];
|
||||
extern const u8 machine_09002000[];
|
||||
extern const u8 machine_09002800[];
|
||||
extern const u8 machine_09003000[];
|
||||
extern const u8 machine_09003800[];
|
||||
extern const u8 machine_09004000[];
|
||||
extern const u8 machine_09005000[];
|
||||
extern const u8 machine_09005800[];
|
||||
extern const u8 machine_09006000[];
|
||||
extern const u8 machine_09006800[];
|
||||
extern const u8 machine_09007000[];
|
||||
extern const u8 machine_09007800[];
|
||||
extern const u8 machine_09008000[];
|
||||
extern const u8 machine_09008400[];
|
||||
extern const Texture machine_09000000[];
|
||||
extern const Texture machine_09000800[];
|
||||
extern const Texture machine_09001000[];
|
||||
extern const Texture machine_09001800[];
|
||||
extern const Texture machine_09002000[];
|
||||
extern const Texture machine_09002800[];
|
||||
extern const Texture machine_09003000[];
|
||||
extern const Texture machine_09003800[];
|
||||
extern const Texture machine_09004000[];
|
||||
extern const Texture machine_09005000[];
|
||||
extern const Texture machine_09005800[];
|
||||
extern const Texture machine_09006000[];
|
||||
extern const Texture machine_09006800[];
|
||||
extern const Texture machine_09007000[];
|
||||
extern const Texture machine_09007800[];
|
||||
extern const Texture machine_09008000[];
|
||||
extern const Texture machine_09008400[];
|
||||
|
||||
// mountain
|
||||
extern const u8 mountain_09000000[];
|
||||
extern const u8 mountain_09000800[];
|
||||
extern const u8 mountain_09001800[];
|
||||
extern const u8 mountain_09002800[];
|
||||
extern const u8 mountain_09003000[];
|
||||
extern const u8 mountain_09003800[];
|
||||
extern const u8 mountain_09004000[];
|
||||
extern const u8 mountain_09004800[];
|
||||
extern const u8 mountain_09005000[];
|
||||
extern const u8 mountain_09005800[];
|
||||
extern const u8 mountain_09006800[];
|
||||
extern const u8 mountain_09007000[];
|
||||
extern const u8 mountain_09007800[];
|
||||
extern const u8 mountain_09008000[];
|
||||
extern const u8 mountain_09008800[];
|
||||
extern const u8 mountain_09009800[];
|
||||
extern const u8 mountain_0900A000[];
|
||||
extern const u8 mountain_0900A800[];
|
||||
extern const u8 mountain_0900B000[];
|
||||
extern const u8 mountain_0900B800[];
|
||||
extern const u8 mountain_0900C000[];
|
||||
extern const Texture mountain_09000000[];
|
||||
extern const Texture mountain_09000800[];
|
||||
extern const Texture mountain_09001800[];
|
||||
extern const Texture mountain_09002800[];
|
||||
extern const Texture mountain_09003000[];
|
||||
extern const Texture mountain_09003800[];
|
||||
extern const Texture mountain_09004000[];
|
||||
extern const Texture mountain_09004800[];
|
||||
extern const Texture mountain_09005000[];
|
||||
extern const Texture mountain_09005800[];
|
||||
extern const Texture mountain_09006800[];
|
||||
extern const Texture mountain_09007000[];
|
||||
extern const Texture mountain_09007800[];
|
||||
extern const Texture mountain_09008000[];
|
||||
extern const Texture mountain_09008800[];
|
||||
extern const Texture mountain_09009800[];
|
||||
extern const Texture mountain_0900A000[];
|
||||
extern const Texture mountain_0900A800[];
|
||||
extern const Texture mountain_0900B000[];
|
||||
extern const Texture mountain_0900B800[];
|
||||
extern const Texture mountain_0900C000[];
|
||||
|
||||
// outside
|
||||
extern const u8 outside_09000000[];
|
||||
extern const u8 outside_09000800[];
|
||||
extern const u8 outside_09001000[];
|
||||
extern const u8 outside_09002000[];
|
||||
extern const u8 outside_09003000[];
|
||||
extern const u8 outside_09003800[];
|
||||
extern const u8 outside_09004000[];
|
||||
extern const u8 outside_09004800[];
|
||||
extern const u8 outside_09005800[];
|
||||
extern const u8 outside_09006000[];
|
||||
extern const u8 outside_09006800[];
|
||||
extern const u8 outside_09007800[];
|
||||
extern const u8 outside_09008000[];
|
||||
extern const u8 outside_09008800[];
|
||||
extern const u8 outside_09009000[];
|
||||
extern const u8 outside_09009800[];
|
||||
extern const u8 outside_0900A000[];
|
||||
extern const u8 outside_0900A800[];
|
||||
extern const u8 outside_0900B000[];
|
||||
extern const u8 outside_0900B400[];
|
||||
extern const u8 outside_0900BC00[];
|
||||
extern const Texture outside_09000000[];
|
||||
extern const Texture outside_09000800[];
|
||||
extern const Texture outside_09001000[];
|
||||
extern const Texture outside_09002000[];
|
||||
extern const Texture outside_09003000[];
|
||||
extern const Texture outside_09003800[];
|
||||
extern const Texture outside_09004000[];
|
||||
extern const Texture outside_09004800[];
|
||||
extern const Texture outside_09005800[];
|
||||
extern const Texture outside_09006000[];
|
||||
extern const Texture outside_09006800[];
|
||||
extern const Texture outside_09007800[];
|
||||
extern const Texture outside_09008000[];
|
||||
extern const Texture outside_09008800[];
|
||||
extern const Texture outside_09009000[];
|
||||
extern const Texture outside_09009800[];
|
||||
extern const Texture outside_0900A000[];
|
||||
extern const Texture outside_0900A800[];
|
||||
extern const Texture outside_0900B000[];
|
||||
extern const Texture outside_0900B400[];
|
||||
extern const Texture outside_0900BC00[];
|
||||
|
||||
// sky
|
||||
extern const u8 sky_09000000[];
|
||||
extern const u8 sky_09000800[];
|
||||
extern const u8 sky_09001000[];
|
||||
extern const u8 sky_09001800[];
|
||||
extern const u8 sky_09002000[];
|
||||
extern const u8 sky_09003000[];
|
||||
extern const u8 sky_09003800[];
|
||||
extern const u8 sky_09004800[];
|
||||
extern const u8 sky_09005000[];
|
||||
extern const u8 sky_09005800[];
|
||||
extern const u8 sky_09006000[];
|
||||
extern const u8 texture_metal_hole[];
|
||||
extern const u8 sky_09007000[];
|
||||
extern const u8 sky_09007800[];
|
||||
extern const u8 sky_09008000[];
|
||||
extern const Texture sky_09000000[];
|
||||
extern const Texture sky_09000800[];
|
||||
extern const Texture sky_09001000[];
|
||||
extern const Texture sky_09001800[];
|
||||
extern const Texture sky_09002000[];
|
||||
extern const Texture sky_09003000[];
|
||||
extern const Texture sky_09003800[];
|
||||
extern const Texture sky_09004800[];
|
||||
extern const Texture sky_09005000[];
|
||||
extern const Texture sky_09005800[];
|
||||
extern const Texture sky_09006000[];
|
||||
extern const Texture texture_metal_hole[];
|
||||
extern const Texture sky_09007000[];
|
||||
extern const Texture sky_09007800[];
|
||||
extern const Texture sky_09008000[];
|
||||
|
||||
// snow
|
||||
extern const u8 snow_09000000[];
|
||||
extern const u8 snow_09000800[];
|
||||
extern const u8 snow_09001000[];
|
||||
extern const u8 snow_09002000[];
|
||||
extern const u8 snow_09002800[];
|
||||
extern const u8 snow_09003000[];
|
||||
extern const u8 snow_09003800[];
|
||||
extern const u8 snow_09004000[];
|
||||
extern const u8 snow_09004800[];
|
||||
extern const u8 snow_09005000[];
|
||||
extern const u8 snow_09005800[];
|
||||
extern const u8 snow_09006000[];
|
||||
extern const u8 snow_09006800[];
|
||||
extern const u8 snow_09007000[];
|
||||
extern const u8 snow_09008000[];
|
||||
extern const u8 snow_09008800[];
|
||||
extern const u8 snow_09009000[];
|
||||
extern const u8 snow_09009800[];
|
||||
extern const Texture snow_09000000[];
|
||||
extern const Texture snow_09000800[];
|
||||
extern const Texture snow_09001000[];
|
||||
extern const Texture snow_09002000[];
|
||||
extern const Texture snow_09002800[];
|
||||
extern const Texture snow_09003000[];
|
||||
extern const Texture snow_09003800[];
|
||||
extern const Texture snow_09004000[];
|
||||
extern const Texture snow_09004800[];
|
||||
extern const Texture snow_09005000[];
|
||||
extern const Texture snow_09005800[];
|
||||
extern const Texture snow_09006000[];
|
||||
extern const Texture snow_09006800[];
|
||||
extern const Texture snow_09007000[];
|
||||
extern const Texture snow_09008000[];
|
||||
extern const Texture snow_09008800[];
|
||||
extern const Texture snow_09009000[];
|
||||
extern const Texture snow_09009800[];
|
||||
|
||||
// spooky
|
||||
extern const u8 spooky_09000000[];
|
||||
extern const u8 spooky_09000800[];
|
||||
extern const u8 spooky_09001000[];
|
||||
extern const u8 spooky_09001800[];
|
||||
extern const u8 spooky_09002800[];
|
||||
extern const u8 spooky_09003800[];
|
||||
extern const u8 spooky_09004800[];
|
||||
extern const u8 spooky_09005000[];
|
||||
extern const u8 spooky_09006000[];
|
||||
extern const u8 spooky_09006800[];
|
||||
extern const u8 spooky_09007000[];
|
||||
extern const u8 spooky_09008000[];
|
||||
extern const u8 spooky_09008800[];
|
||||
extern const u8 spooky_09009000[];
|
||||
extern const u8 spooky_0900A000[];
|
||||
extern const u8 spooky_0900A800[];
|
||||
extern const u8 spooky_0900B000[];
|
||||
extern const u8 spooky_0900B800[];
|
||||
extern const Texture spooky_09000000[];
|
||||
extern const Texture spooky_09000800[];
|
||||
extern const Texture spooky_09001000[];
|
||||
extern const Texture spooky_09001800[];
|
||||
extern const Texture spooky_09002800[];
|
||||
extern const Texture spooky_09003800[];
|
||||
extern const Texture spooky_09004800[];
|
||||
extern const Texture spooky_09005000[];
|
||||
extern const Texture spooky_09006000[];
|
||||
extern const Texture spooky_09006800[];
|
||||
extern const Texture spooky_09007000[];
|
||||
extern const Texture spooky_09008000[];
|
||||
extern const Texture spooky_09008800[];
|
||||
extern const Texture spooky_09009000[];
|
||||
extern const Texture spooky_0900A000[];
|
||||
extern const Texture spooky_0900A800[];
|
||||
extern const Texture spooky_0900B000[];
|
||||
extern const Texture spooky_0900B800[];
|
||||
|
||||
// water
|
||||
extern const u8 water_09000000[];
|
||||
extern const u8 water_09000800[];
|
||||
extern const u8 water_09001800[];
|
||||
extern const u8 water_09002800[];
|
||||
extern const u8 water_09003800[];
|
||||
extern const u8 water_09004800[];
|
||||
extern const u8 water_09005800[];
|
||||
extern const u8 water_09006000[];
|
||||
extern const u8 water_09006800[];
|
||||
extern const u8 water_09007800[];
|
||||
extern const u8 water_09008800[];
|
||||
extern const u8 water_09009000[];
|
||||
extern const u8 water_0900A000[];
|
||||
extern const u8 water_0900A800[];
|
||||
extern const u8 water_0900B800[];
|
||||
extern const Texture water_09000000[];
|
||||
extern const Texture water_09000800[];
|
||||
extern const Texture water_09001800[];
|
||||
extern const Texture water_09002800[];
|
||||
extern const Texture water_09003800[];
|
||||
extern const Texture water_09004800[];
|
||||
extern const Texture water_09005800[];
|
||||
extern const Texture water_09006000[];
|
||||
extern const Texture water_09006800[];
|
||||
extern const Texture water_09007800[];
|
||||
extern const Texture water_09008800[];
|
||||
extern const Texture water_09009000[];
|
||||
extern const Texture water_0900A000[];
|
||||
extern const Texture water_0900A800[];
|
||||
extern const Texture water_0900B800[];
|
||||
|
||||
// effect
|
||||
extern const u8 *const flower_bubbles_textures_ptr_0B002008[];
|
||||
extern const u8 *const lava_bubble_ptr_0B006020[];
|
||||
extern const u8 *const bubble_ptr_0B006848[];
|
||||
extern const Texture *const flower_bubbles_textures_ptr_0B002008[];
|
||||
extern const Texture *const lava_bubble_ptr_0B006020[];
|
||||
extern const Texture *const bubble_ptr_0B006848[];
|
||||
extern const Gfx tiny_bubble_dl_0B006A50[];
|
||||
extern const Gfx tiny_bubble_dl_0B006AB0[];
|
||||
extern const Gfx tiny_bubble_dl_0B006CD8[];
|
||||
@@ -275,7 +275,7 @@ extern const Gfx title_screen_bg_dl_0A000148[];
|
||||
extern const Gfx title_screen_bg_dl_0A000160[];
|
||||
extern const Gfx title_screen_bg_dl_0A000178[];
|
||||
extern const Gfx title_screen_bg_dl_end[];
|
||||
extern const u8 *const mario_title_texture_table[];
|
||||
extern const u8 *const game_over_texture_table[];
|
||||
extern const Texture *const mario_title_texture_table[];
|
||||
extern const Texture *const game_over_texture_table[];
|
||||
|
||||
#endif // TEXTURES_H
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#define BIT(i) (1 << (i))
|
||||
#define BITMASK(size) ((BIT(size)) - 1)
|
||||
#define COND_BIT(cond, dst, flag) { (dst) &= ~(flag); if (cond) (dst) |= (flag); }
|
||||
|
||||
struct Config
|
||||
{
|
||||
@@ -69,27 +70,104 @@ typedef f32 Mat2[2][2];
|
||||
typedef f32 Mat3[3][3];
|
||||
typedef f32 Mat4[4][4];
|
||||
|
||||
// -- Scripts --
|
||||
typedef uintptr_t GeoLayout;
|
||||
typedef uintptr_t LevelScript;
|
||||
typedef s16 Movtex;
|
||||
typedef s16 MacroObject;
|
||||
typedef COLLISION_DATA_TYPE Collision; //Collision is by default an s16, but it's best to have it match the type of COLLISION_DATA_TYPE
|
||||
typedef s16 Trajectory;
|
||||
typedef s16 PaintingData;
|
||||
typedef uintptr_t BehaviorScript;
|
||||
typedef u8 Texture;
|
||||
typedef u16 ModelID;
|
||||
typedef COLLISION_DATA_TYPE TerrainData;
|
||||
typedef ROOM_DATA_TYPE RoomData;
|
||||
typedef TerrainData Vec3t[3];
|
||||
|
||||
// -- Mario/Objects --
|
||||
typedef s32 MarioAction;
|
||||
typedef s32 MarioActionArg;
|
||||
typedef u32 MarioInteraction;
|
||||
typedef u32 InteractType;
|
||||
typedef u32 MarioStep;
|
||||
|
||||
typedef s8 ObjAction8;
|
||||
typedef s32 ObjAction32;
|
||||
typedef s16 ColFlags;
|
||||
|
||||
// -- Angle --
|
||||
|
||||
typedef s16 Angle;
|
||||
typedef u16 UAngle;
|
||||
typedef s32 Angle32;
|
||||
typedef Angle Vec3a[3];
|
||||
|
||||
// -- Collision --
|
||||
typedef ROOM_DATA_TYPE RoomData;
|
||||
typedef COLLISION_DATA_TYPE Collision; // Collision is by default an s16, but it's best to have it match the type of COLLISION_DATA_TYPE
|
||||
typedef Collision TerrainData;
|
||||
typedef Collision Vec3t[3];
|
||||
typedef Collision SurfaceType;
|
||||
|
||||
typedef f32 Normal;
|
||||
typedef Normal Vec3n[3];
|
||||
|
||||
// -- Colors/Textures --
|
||||
|
||||
// 0.0f to 1.0f
|
||||
typedef f32 ColorF;
|
||||
typedef ColorF AlphaF;
|
||||
typedef ColorF ColorRGBf[3];
|
||||
typedef ColorF ColorRGBAf[4];
|
||||
typedef ColorF ColorHSVf[3];
|
||||
typedef ColorF ColorHSVAf[4];
|
||||
|
||||
// 0 to 255
|
||||
typedef u8 Color;
|
||||
typedef Color Alpha;
|
||||
typedef Color ColorRGB[3];
|
||||
typedef Color ColorRGBA[4];
|
||||
typedef Color ColorHSV[3];
|
||||
typedef Color ColorHSVA[4];
|
||||
|
||||
// Formats:
|
||||
typedef u32 CompositeColor; // to be casted to one of the following:
|
||||
typedef u8 I4; // u4
|
||||
typedef u8 I8;
|
||||
typedef u8 IA4; // u4, components u3 & u1
|
||||
typedef u8 IA8;
|
||||
typedef u8 IA16Component;
|
||||
typedef u16 IA16;
|
||||
typedef u8 RGBA16Component; // components u5 & u1
|
||||
typedef u16 RGBA16;
|
||||
typedef u32 RGBA16FILL; // RGBA16 but twice, Used for gDPSetFillColor
|
||||
typedef u8 RGBA32Component;
|
||||
typedef u32 RGBA32;
|
||||
typedef u8 CI4; // u4
|
||||
typedef u8 CI8;
|
||||
typedef Color Texture;
|
||||
|
||||
typedef s16 TextureCoord;
|
||||
|
||||
// -- Models --
|
||||
|
||||
typedef u8 ModelID8;
|
||||
typedef u16 ModelID16;
|
||||
typedef u32 ModelID32;
|
||||
|
||||
// -- Animations --
|
||||
typedef s16 AnimValue;
|
||||
typedef u16 AnimIndex;
|
||||
typedef s16 AnimID16;
|
||||
typedef s32 AnimID32;
|
||||
typedef s16 AnimFrame16;
|
||||
typedef s32 AnimFrame32;
|
||||
typedef s32 AnimAccel;
|
||||
|
||||
// -- Misc. Data --
|
||||
|
||||
typedef s16 DialogID16;
|
||||
typedef s32 DialogID;
|
||||
typedef s32 DrawingLayer;
|
||||
typedef s16 PaintingData;
|
||||
typedef s32 CameraTransitionAngle;
|
||||
typedef s16 Movtex;
|
||||
typedef s16 MacroObject;
|
||||
typedef s16 Trajectory;
|
||||
typedef u8 CutsceneID;
|
||||
|
||||
typedef u8 uchar;
|
||||
|
||||
enum SpTaskState {
|
||||
SPTASK_STATE_NOT_STARTED,
|
||||
SPTASK_STATE_RUNNING,
|
||||
@@ -348,7 +426,8 @@ struct MarioState
|
||||
/*0x68*/ struct Surface *floor;
|
||||
/*0x6C*/ f32 ceilHeight;
|
||||
/*0x70*/ f32 floorHeight;
|
||||
/*0x74*/ s16 floorAngle;
|
||||
/*0x74*/ s16 floorYaw;
|
||||
#define floorAngle floorYaw
|
||||
/*0x76*/ s16 waterLevel;
|
||||
/*0x78*/ struct Object *interactObj;
|
||||
/*0x7C*/ struct Object *heldObj;
|
||||
@@ -364,14 +443,14 @@ struct MarioState
|
||||
/*0xA4*/ u32 collidedObjInteractTypes;
|
||||
/*0xA8*/ s16 numCoins;
|
||||
/*0xAA*/ s16 numStars;
|
||||
/*0xAC*/ s8 numKeys; // Unused key mechanic
|
||||
/*0xAD*/ s8 numLives;
|
||||
/*0xAC*/ s8 numKeys; // Unused key mechanic
|
||||
/*0xAD*/ s8 numLives;
|
||||
/*0xAE*/ s16 health;
|
||||
/*0xB0*/ s16 animYTrans;
|
||||
/*0xB2*/ u8 hurtCounter;
|
||||
/*0xB3*/ u8 healCounter;
|
||||
/*0xB4*/ u8 squishTimer;
|
||||
/*0xB5*/ u8 fadeWarpOpacity;
|
||||
/*0xB2*/ u8 hurtCounter;
|
||||
/*0xB3*/ u8 healCounter;
|
||||
/*0xB4*/ u8 squishTimer;
|
||||
/*0xB5*/ u8 fadeWarpOpacity;
|
||||
/*0xB6*/ u16 capTimer;
|
||||
/*0xB8*/ s16 prevNumStarsForDialog;
|
||||
/*0xBC*/ f32 peakHeight;
|
||||
@@ -381,6 +460,14 @@ struct MarioState
|
||||
s16 breath;
|
||||
u8 breathCounter;
|
||||
#endif
|
||||
Vec3f lastSafePos;
|
||||
Vec3f prevPos;
|
||||
f32 lateralSpeed;
|
||||
f32 moveSpeed;
|
||||
Angle movePitch;
|
||||
Angle moveYaw;
|
||||
Angle ceilYaw;
|
||||
Angle wallYaw;
|
||||
};
|
||||
|
||||
#endif // TYPES_H
|
||||
@@ -96,7 +96,7 @@ extern const Gfx bbh_seg7_dl_0701FFE8[];
|
||||
extern const Gfx bbh_seg7_dl_070202F0[];
|
||||
extern const Gfx bbh_seg7_dl_070206F0[];
|
||||
extern const Collision bbh_seg7_collision_level[];
|
||||
extern const u8 bbh_seg7_rooms[];
|
||||
extern const RoomData bbh_seg7_rooms[];
|
||||
extern const MacroObject bbh_seg7_macro_objs[];
|
||||
extern const Collision bbh_seg7_collision_staircase_step[];
|
||||
extern const Collision bbh_seg7_collision_tilt_floor_platform[];
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "levels/bbh/header.h"
|
||||
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ 2089, 1331, -1125, /*angle*/ 0, 270, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ 1331, 1075, -1330, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ 2089, 1331, -511, /*angle*/ 0, 270, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
@@ -27,7 +27,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_BBH_TILTING_FLOOR_PLATFORM, /*pos*/ 2866, 820, 1897, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBbhTiltingTrapPlatform),
|
||||
OBJECT(/*model*/ MODEL_BBH_TUMBLING_PLATFORM, /*pos*/ 2961, 0, -768, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBbhTumblingBridge),
|
||||
OBJECT(/*model*/ MODEL_BBH_MOVING_BOOKSHELF, /*pos*/ -1994, 819, 213, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHauntedBookshelf),
|
||||
@@ -37,7 +37,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_BOO, /*pos*/ 1000, 50, 1000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGhostHuntBigBoo, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_BOO, /*pos*/ 20, 100, -908, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGhostHuntBoo, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_BOO, /*pos*/ 3150, 100, 398, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGhostHuntBoo, /*acts*/ ACT_1),
|
||||
@@ -69,7 +69,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -2030, 1350, 1940, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -204, 1100, 1576, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 923, 1741, -332, /*angle*/ 0, 18, 0, /*behParam*/ 0x05010000, /*beh*/ bhvMrI, /*acts*/ ALL_ACTS),
|
||||
@@ -103,10 +103,10 @@ const LevelScript level_bbh_entry[] = {
|
||||
LOAD_MODEL_FROM_GEO(MODEL_BBH_WOODEN_TOMB, geo_bbh_000658),
|
||||
|
||||
AREA(/*index*/ 1, geo_bbh_000F00),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 666, 796, 5350, /*angle*/ 0, 180, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvSpinAirborneWarp),
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_BBH, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE_COURTYARD, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/bitdw/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_BITDW_SQUARE_PLATFORM, /*pos*/ -1966, -3154, 3586, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSquarishPathMoving),
|
||||
OBJECT(/*model*/ MODEL_BITDW_SQUARE_PLATFORM, /*pos*/ -1352, -3154, 4200, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvSquarishPathMoving),
|
||||
OBJECT(/*model*/ MODEL_BITDW_SQUARE_PLATFORM, /*pos*/ -2963, 1017, -2464, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSquarishPathMoving),
|
||||
@@ -32,13 +32,13 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -3092, -2795, 2842, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 2463, -2386, 2844, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 7180, 3000, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowserCourseRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -94,9 +94,9 @@ const LevelScript level_bitdw_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_BOWSER_1, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_BITDW, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x25, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ bitdw_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ bitdw_seg7_macro_objs),
|
||||
SHOW_DIALOG(/*index*/ 0x00, DIALOG_090),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/bitfs/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_BITFS_PLATFORM_ON_TRACK, /*pos*/ -5733, -3071, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x07330000, /*beh*/ bhvPlatformOnTrack),
|
||||
OBJECT(/*model*/ MODEL_BITFS_TILTING_SQUARE_PLATFORM, /*pos*/ -1945, -3225, -715, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBitfsTiltingInvertedPyramid),
|
||||
OBJECT(/*model*/ MODEL_BITFS_TILTING_SQUARE_PLATFORM, /*pos*/ -2866, -3225, -715, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBitfsTiltingInvertedPyramid),
|
||||
@@ -38,14 +38,14 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -3226, 3584, -822, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -1382, 3584, -822, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1229, 307, -412, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1200, 5700, 160, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowserCourseRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -107,9 +107,9 @@ const LevelScript level_bitfs_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_BOWSER_2, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_BITFS, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x68, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ bitfs_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ bitfs_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_KOOPA_ROAD),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/bits/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_BITS_SLIDING_PLATFORM, /*pos*/ -2370, -4525, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00100000, /*beh*/ bhvSlidingPlatform2),
|
||||
OBJECT(/*model*/ MODEL_BITS_TWIN_SLIDING_PLATFORMS, /*pos*/ -2611, 3544, -904, /*angle*/ 0, 0, 0, /*behParam*/ 0x00CF0000, /*beh*/ bhvSlidingPlatform2),
|
||||
OBJECT(/*model*/ MODEL_BITS_TWIN_SLIDING_PLATFORMS, /*pos*/ -4700, 3544, -904, /*angle*/ 0, 180, 0, /*behParam*/ 0x008F0000, /*beh*/ bhvSlidingPlatform2),
|
||||
@@ -38,7 +38,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 350, 6800, -6800, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowserCourseRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -97,8 +97,8 @@ const LevelScript level_bits_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_BOWSER_3, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_BITS, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x6B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
TERRAIN(/*terrainData*/ bits_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ bits_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_KOOPA_ROAD),
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/bob/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_BOB_CHAIN_CHOMP_GATE, /*pos*/ 1456, 768, 446, /*angle*/ 0, 326, 0, /*behParam*/ 0x00000000, /*beh*/ bhvChainChompGate),
|
||||
OBJECT(/*model*/ MODEL_BOB_SEESAW_PLATFORM, /*pos*/ -2303, 717, 1024, /*angle*/ 0, 45, 0, /*behParam*/ 0x00030000, /*beh*/ bhvSeesawPlatform),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -2050, 0, -3069, /*angle*/ 0, 25, 0, /*behParam*/ 0x00000000, /*beh*/ bhvOpenableGrill),
|
||||
@@ -25,7 +25,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 1535, 3840, -5561, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBobBowlingBallSpawner, /*acts*/ ACT_1 | ACT_2),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 1535, 3840, -5561, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTtmBowlingBallSpawner, /*acts*/ ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 524, 2825, -5400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvBobBowlingBallSpawner, /*acts*/ ACT_1 | ACT_2),
|
||||
@@ -44,7 +44,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_KING_BOBOMB, /*pos*/ 1636, 4242, -5567, /*angle*/ 0, -147, 0, /*behParam*/ 0x00000000, /*beh*/ bhvKingBobomb, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_KOOPA_WITH_SHELL, /*pos*/ -4004, 0, 5221, /*angle*/ 0, 0, 0, /*behParam*/ 0x01020000, /*beh*/ bhvKoopa, /*acts*/ ACT_2),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -6000, 1000, 2400, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
@@ -75,9 +75,9 @@ const LevelScript level_bob_entry[] = {
|
||||
LOAD_MODEL_FROM_GEO(MODEL_BOB_BARS_GRILLS, bob_geo_000470),
|
||||
|
||||
AREA(/*index*/ 1, bob_geo_000488),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6558, 1000, 6464, /*angle*/ 0, 135, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvSpinAirborneWarp),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 583, 2683, -5387, /*angle*/ 0, -154, 0, /*behParam*/ 0x000B0000, /*beh*/ bhvFadingWarp),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1680, 3835, -5523, /*angle*/ 0, -153, 0, /*behParam*/ 0x000C0000, /*beh*/ bhvFadingWarp),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/bowser_2/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_BOWSER_2_TILTING_ARENA, /*pos*/ 0, 0, 0, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTiltingBowserLavaPlatform),
|
||||
OBJECT(/*model*/ MODEL_BOWSER_BOMB, /*pos*/ 4, 1329, 3598, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowserBomb),
|
||||
OBJECT(/*model*/ MODEL_BOWSER_BOMB, /*pos*/ 3584, 1329, 0, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowserBomb),
|
||||
@@ -42,7 +42,7 @@ const LevelScript level_bowser_2_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_BOWSER_2, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x36, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_BITFS, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
TERRAIN(/*terrainData*/ bowser_2_seg7_collision_lava),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0002, /*seq*/ SEQ_LEVEL_BOSS_KOOPA),
|
||||
TERRAIN_TYPE(/*terrainType*/ TERRAIN_STONE),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/bowser_3/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_BOWSER_3_FALLING_PLATFORM_1, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvFallingBowserPlatform),
|
||||
OBJECT(/*model*/ MODEL_BOWSER_3_FALLING_PLATFORM_2, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvFallingBowserPlatform),
|
||||
OBJECT(/*model*/ MODEL_BOWSER_3_FALLING_PLATFORM_3, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00030000, /*beh*/ bhvFallingBowserPlatform),
|
||||
@@ -58,7 +58,7 @@ const LevelScript level_bowser_3_entry[] = {
|
||||
AREA(/*index*/ 1, bowser_3_geo_000398),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 1307, 0, /*angle*/ 0, 183, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvSpinAirborneCircleWarp),
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_BOWSER_3, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_BITS, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
TERRAIN(/*terrainData*/ bowser_3_seg7_collision_level),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0002, /*seq*/ SEQ_LEVEL_BOSS_KOOPA_FINAL),
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/castle_courtyard/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 200, -1652, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvAmbientSounds),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -2700, 0, -1652, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBirdsSoundLoop),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 2700, 0, -1652, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvBirdsSoundLoop),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_BOO, /*pos*/ -3217, 100, -101, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCourtyardBooTriplet),
|
||||
OBJECT(/*model*/ MODEL_BOO, /*pos*/ 3317, 100, -1701, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCourtyardBooTriplet),
|
||||
OBJECT(/*model*/ MODEL_BOO, /*pos*/ -71, 1, -1387, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCourtyardBooTriplet),
|
||||
@@ -55,8 +55,8 @@ const LevelScript level_castle_courtyard_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_CASTLE_COURTYARD, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x01, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x02, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x03, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
TERRAIN(/*terrainData*/ castle_courtyard_seg7_collision),
|
||||
MACRO_OBJECTS(/*objList*/ castle_courtyard_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_SOUND_PLAYER),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/castle_grounds/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
WARP_NODE(/*id*/ 0x00, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x00, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x01, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x01, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x02, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x02, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
@@ -40,7 +40,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -5812, 100, -5937, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -7430, 1500, 873, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBirdsSoundLoop),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -80, 1500, 5004, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvBirdsSoundLoop),
|
||||
@@ -67,7 +67,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_CASTLE_GROUNDS_FLAG, /*pos*/ -3213, 3348, -3011, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCastleFlagWaving),
|
||||
OBJECT(/*model*/ MODEL_CASTLE_GROUNDS_FLAG, /*pos*/ 3213, 3348, -3011, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCastleFlagWaving),
|
||||
OBJECT(/*model*/ MODEL_CASTLE_GROUNDS_FLAG, /*pos*/ -3835, 3348, -6647, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCastleFlagWaving),
|
||||
@@ -75,7 +75,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_BUTTERFLY, /*pos*/ -4508, 406, 4400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvButterfly),
|
||||
OBJECT(/*model*/ MODEL_BUTTERFLY, /*pos*/ -4408, 406, 4500, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvButterfly),
|
||||
OBJECT(/*model*/ MODEL_BUTTERFLY, /*pos*/ -4708, 406, 4100, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvButterfly),
|
||||
@@ -119,10 +119,10 @@ const LevelScript level_castle_grounds_entry[] = {
|
||||
|
||||
AREA(/*index*/ 1, castle_grounds_geo_00073C),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x03, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
TERRAIN(/*terrainData*/ castle_grounds_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ castle_grounds_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_SOUND_PLAYER),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x07023CB0 - 0x07023DB0
|
||||
static const Vtx inside_castle_seg7_vertex_07023CB0[] = {
|
||||
static const Vtx inside_castle_seg7_vertex_bowser_1_painting[] = {
|
||||
{{{ -7395, 1126, -5772}, 0, { 0, 992}, {0xff, 0xff, 0xff, 0xff}}},
|
||||
{{{ -7178, 1126, -5989}, 0, { 992, 992}, {0xff, 0xff, 0xff, 0xff}}},
|
||||
{{{ -7178, 1434, -5989}, 0, { 992, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
||||
@@ -19,7 +19,7 @@ static const Vtx inside_castle_seg7_vertex_07023CB0[] = {
|
||||
};
|
||||
|
||||
// 0x07023DB0 - 0x07023FE0
|
||||
const Gfx inside_castle_seg7_dl_07023DB0[] = {
|
||||
const Gfx inside_castle_seg7_dl_bowser_1_painting[] = {
|
||||
gsDPPipeSync(),
|
||||
gsDPSetCycleType(G_CYC_2CYCLE),
|
||||
gsDPSetCombineMode(G_CC_TRILERP, G_CC_DECALRGB2),
|
||||
@@ -33,46 +33,46 @@ const Gfx inside_castle_seg7_dl_07023DB0[] = {
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 256, G_TX_RENDERTILE + 1, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
||||
gsDPSetTileSize(1, 0, 0, 124, 124),
|
||||
gsSPTexture(0xFFFF, 0xFFFF, 1, G_TX_RENDERTILE, G_ON),
|
||||
gsSPVertex(inside_castle_seg7_vertex_07023CB0, 16, 0),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07008000),
|
||||
gsSPVertex(inside_castle_seg7_vertex_bowser_1_painting, 16, 0),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_left),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07006000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_left),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 256, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07008800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_right),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07006800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_right),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 256, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07009000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_left),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07007000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_bottom_left),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 256, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07009800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_right),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07007800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_bottom_right),
|
||||
gsDPTileSync(),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 256, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsDPLoadSync(),
|
||||
|
||||
@@ -26,7 +26,7 @@ const GeoLayout castle_geo_000F88[] = {
|
||||
GEO_NODE_START(),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, inside_castle_seg7_dl_0702FD30),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, inside_castle_seg7_dl_07023DB0),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, inside_castle_seg7_dl_bowser_1_painting),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_RETURN(),
|
||||
};
|
||||
@@ -138,7 +138,7 @@ const GeoLayout castle_geo_001158[] = {
|
||||
GEO_DISPLAY_LIST(LAYER_ALPHA, inside_castle_seg7_dl_0702AB20),
|
||||
GEO_ASM(0, geo_exec_inside_castle_light),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, inside_castle_seg7_dl_0702FD30),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, inside_castle_seg7_dl_07023DB0),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, inside_castle_seg7_dl_bowser_1_painting),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_RETURN(),
|
||||
};
|
||||
|
||||
@@ -412,7 +412,7 @@ static const Vtx inside_castle_seg7_vertex_07056BB0[] = {
|
||||
|
||||
// 0x07056BF0 - 0x07056CE0
|
||||
static const Gfx inside_castle_seg7_dl_07056BF0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07008000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1),
|
||||
@@ -438,7 +438,7 @@ static const Gfx inside_castle_seg7_dl_07056BF0[] = {
|
||||
|
||||
// 0x07056CE0 - 0x07056DD0
|
||||
static const Gfx inside_castle_seg7_dl_07056CE0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07008800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1),
|
||||
@@ -464,7 +464,7 @@ static const Gfx inside_castle_seg7_dl_07056CE0[] = {
|
||||
|
||||
// 0x07056DD0 - 0x07056EC0
|
||||
static const Gfx inside_castle_seg7_dl_07056DD0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07009000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1),
|
||||
@@ -490,7 +490,7 @@ static const Gfx inside_castle_seg7_dl_07056DD0[] = {
|
||||
|
||||
// 0x07056EC0 - 0x07056FB0
|
||||
static const Gfx inside_castle_seg7_dl_07056EC0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07009800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1),
|
||||
@@ -516,7 +516,7 @@ static const Gfx inside_castle_seg7_dl_07056EC0[] = {
|
||||
|
||||
// 0x07056FB0 - 0x07057078
|
||||
static const Gfx inside_castle_seg7_dl_07056FB0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07006000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1),
|
||||
@@ -538,7 +538,7 @@ static const Gfx inside_castle_seg7_dl_07056FB0[] = {
|
||||
|
||||
// 0x07057078 - 0x07057130
|
||||
static const Gfx inside_castle_seg7_dl_07057078[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07006800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_07056590, 15, 0),
|
||||
@@ -558,7 +558,7 @@ static const Gfx inside_castle_seg7_dl_07057078[] = {
|
||||
|
||||
// 0x07057130 - 0x070571E8
|
||||
static const Gfx inside_castle_seg7_dl_07057130[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07007000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_bottom_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_070567B0, 15, 0),
|
||||
@@ -578,7 +578,7 @@ static const Gfx inside_castle_seg7_dl_07057130[] = {
|
||||
|
||||
// 0x070571E8 - 0x070572A0
|
||||
static const Gfx inside_castle_seg7_dl_070571E8[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07007800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_bottom_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_070569D0, 15, 0),
|
||||
|
||||
@@ -235,7 +235,7 @@ static const Gfx inside_castle_seg7_dl_07057C20[] = {
|
||||
|
||||
// 0x07057D30 - 0x07057D88
|
||||
static const Gfx inside_castle_seg7_dl_07057D30[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07008000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPLight(&inside_castle_seg7_lights_07057398.l, 1),
|
||||
@@ -248,7 +248,7 @@ static const Gfx inside_castle_seg7_dl_07057D30[] = {
|
||||
|
||||
// 0x07057D88 - 0x07057DD0
|
||||
static const Gfx inside_castle_seg7_dl_07057D88[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07008800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_07057850, 8, 0),
|
||||
@@ -259,7 +259,7 @@ static const Gfx inside_castle_seg7_dl_07057D88[] = {
|
||||
|
||||
// 0x07057DD0 - 0x07057E18
|
||||
static const Gfx inside_castle_seg7_dl_07057DD0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07009000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_070578D0, 8, 0),
|
||||
@@ -270,7 +270,7 @@ static const Gfx inside_castle_seg7_dl_07057DD0[] = {
|
||||
|
||||
// 0x07057E18 - 0x07057E60
|
||||
static const Gfx inside_castle_seg7_dl_07057E18[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07009800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_07057950, 8, 0),
|
||||
|
||||
@@ -36,7 +36,7 @@ const Gfx inside_castle_seg7_dl_0704A2E0[] = {
|
||||
gsDPPipeSync(),
|
||||
gsSPSetGeometryMode(G_TEXTURE_GEN),
|
||||
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
||||
gsDPLoadTextureBlock(inside_castle_seg7_texture_0700A000, G_IM_FMT_IA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsDPLoadTextureBlock(inside_castle_seg7_texture_light_radial_inverse, G_IM_FMT_IA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
|
||||
gsSPTexture(0x07C0, 0x07C0, 0, G_TX_RENDERTILE, G_ON),
|
||||
gsSPDisplayList(inside_castle_seg7_dl_0704A290),
|
||||
gsSPTexture(0x07C0, 0x07C0, 0, G_TX_RENDERTILE, G_OFF),
|
||||
|
||||
@@ -1265,7 +1265,7 @@ static const Gfx inside_castle_seg7_dl_07050080[] = {
|
||||
|
||||
// 0x070501E8 - 0x07050230
|
||||
static const Gfx inside_castle_seg7_dl_070501E8[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07007000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_bottom_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_0704E288, 8, 0),
|
||||
@@ -1276,7 +1276,7 @@ static const Gfx inside_castle_seg7_dl_070501E8[] = {
|
||||
|
||||
// 0x07050230 - 0x07050278
|
||||
static const Gfx inside_castle_seg7_dl_07050230[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07006000),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_left),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_0704E308, 8, 0),
|
||||
@@ -1287,7 +1287,7 @@ static const Gfx inside_castle_seg7_dl_07050230[] = {
|
||||
|
||||
// 0x07050278 - 0x070502C0
|
||||
static const Gfx inside_castle_seg7_dl_07050278[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07007800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_bottom_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_0704E388, 8, 0),
|
||||
@@ -1298,7 +1298,7 @@ static const Gfx inside_castle_seg7_dl_07050278[] = {
|
||||
|
||||
// 0x070502C0 - 0x07050308
|
||||
static const Gfx inside_castle_seg7_dl_070502C0[] = {
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07006800),
|
||||
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_right),
|
||||
gsDPLoadSync(),
|
||||
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
||||
gsSPVertex(inside_castle_seg7_vertex_0704E408, 8, 0),
|
||||
|
||||
@@ -73,7 +73,7 @@ extern struct Painting ttm_painting;
|
||||
extern struct Painting ttc_painting;
|
||||
extern struct Painting sl_painting;
|
||||
extern struct Painting thi_huge_painting;
|
||||
extern const Gfx inside_castle_seg7_dl_07023DB0[];
|
||||
extern const Gfx inside_castle_seg7_dl_bowser_1_painting[];
|
||||
extern const Gfx inside_castle_seg7_dl_07028FD0[];
|
||||
extern const Gfx inside_castle_seg7_dl_07029578[];
|
||||
extern const Gfx inside_castle_seg7_dl_0702A650[];
|
||||
@@ -141,9 +141,9 @@ extern const Collision inside_castle_seg7_collision_ddd_warp_2[];
|
||||
extern const MacroObject inside_castle_seg7_area_1_macro_objs[];
|
||||
extern const MacroObject inside_castle_seg7_area_2_macro_objs[];
|
||||
extern const MacroObject inside_castle_seg7_area_3_macro_objs[];
|
||||
extern const u8 inside_castle_seg7_area_1_rooms[];
|
||||
extern const u8 inside_castle_seg7_area_2_rooms[];
|
||||
extern const u8 inside_castle_seg7_area_3_rooms[];
|
||||
extern const RoomData inside_castle_seg7_area_1_rooms[];
|
||||
extern const RoomData inside_castle_seg7_area_2_rooms[];
|
||||
extern const RoomData inside_castle_seg7_area_3_rooms[];
|
||||
extern const Collision inside_castle_seg7_collision_floor_trap[];
|
||||
extern const Collision inside_castle_seg7_collision_star_door[];
|
||||
extern const Collision inside_castle_seg7_collision_water_level_pillar[];
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/castle_inside/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
WARP_NODE(/*id*/ 0x00, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x00, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x01, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x01, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x02, /*destLevel*/ LEVEL_CASTLE_COURTYARD, /*destArea*/ 0x01, /*destNode*/ 0x01, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
@@ -90,7 +90,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_CASTLE_KEY_DOOR, /*pos*/ -1100, 512, 3021, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvDoorWarp),
|
||||
OBJECT(/*model*/ MODEL_CASTLE_KEY_DOOR, /*pos*/ -946, 512, 3021, /*angle*/ 0, 180, 0, /*behParam*/ 0x00010000, /*beh*/ bhvDoorWarp),
|
||||
WARP_NODE(/*id*/ 0x00, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x03, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
@@ -159,7 +159,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_CASTLE_KEY_DOOR, /*pos*/ -1100, -1074, 922, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvDoorWarp),
|
||||
OBJECT(/*model*/ MODEL_CASTLE_KEY_DOOR, /*pos*/ -946, -1074, 922, /*angle*/ 0, 180, 0, /*behParam*/ 0x00010000, /*beh*/ bhvDoorWarp),
|
||||
WARP_NODE(/*id*/ 0x00, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x05, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
@@ -202,7 +202,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ -2037, -818, -716, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ -1648, -818, -716, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ -1648, -818, -101, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
@@ -260,7 +260,7 @@ const LevelScript level_castle_inside_entry[] = {
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ -1671, 0, 1313, /*angle*/ 0, 83, 0, /*behParam*/ DIALOG_133 << 24, /*beh*/ bhvToadMessage),
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ 1524, 307, 458, /*angle*/ 0, 110, 0, /*behParam*/ DIALOG_134 << 24, /*beh*/ bhvToadMessage),
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ 596, -306, -2637, /*angle*/ 0, 152, 0, /*behParam*/ DIALOG_135 << 24, /*beh*/ bhvToadMessage),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x03, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
TERRAIN(/*terrainData*/ inside_castle_seg7_area_1_collision),
|
||||
ROOMS(/*surfaceRooms*/ inside_castle_seg7_area_1_rooms),
|
||||
@@ -277,7 +277,7 @@ const LevelScript level_castle_inside_entry[] = {
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ -977, 1203, 2569, /*angle*/ 0, 0, 0, /*behParam*/ DIALOG_076 << 24, /*beh*/ bhvToadMessage),
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ -1584, 2253, 7157, /*angle*/ 0, 136, 0, /*behParam*/ DIALOG_083 << 24, /*beh*/ bhvToadMessage),
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ 837, 1203, 3020, /*angle*/ 0, 180, 0, /*behParam*/ DIALOG_137 << 24, /*beh*/ bhvToadMessage),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x03, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
TERRAIN(/*terrainData*/ inside_castle_seg7_area_2_collision),
|
||||
ROOMS(/*surfaceRooms*/ inside_castle_seg7_area_2_rooms),
|
||||
@@ -294,8 +294,8 @@ const LevelScript level_castle_inside_entry[] = {
|
||||
OBJECT(/*model*/ MODEL_MIPS, /*pos*/ -1509, -1177, -1564, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvMips),
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ 1787, -1381, -1957, /*angle*/ 0, 126, 0, /*behParam*/ DIALOG_082 << 24, /*beh*/ bhvToadMessage),
|
||||
OBJECT(/*model*/ MODEL_TOAD, /*pos*/ -4048, -1381, -1334, /*angle*/ 0, 30, 0, /*behParam*/ DIALOG_136 << 24, /*beh*/ bhvToadMessage),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x03, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
TERRAIN(/*terrainData*/ inside_castle_seg7_area_3_collision),
|
||||
ROOMS(/*surfaceRooms*/ inside_castle_seg7_area_3_rooms),
|
||||
|
||||
@@ -38,47 +38,47 @@ ALIGNED8 static const Texture inside_castle_seg7_texture_07005800[] = {
|
||||
};
|
||||
|
||||
// 0x07006000 - 0x07006800
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07006000[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_peach_top_left[] = {
|
||||
#include "levels/castle_inside/8.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07006800 - 0x07007000
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07006800[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_peach_top_right[] = {
|
||||
#include "levels/castle_inside/9.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07007000 - 0x07007800
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07007000[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_peach_bottom_left[] = {
|
||||
#include "levels/castle_inside/10.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07007800 - 0x07008000
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07007800[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_peach_bottom_right[] = {
|
||||
#include "levels/castle_inside/11.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07008000 - 0x07008800
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07008000[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_bowser_top_left[] = {
|
||||
#include "levels/castle_inside/12.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07008800 - 0x07009000
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07008800[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_bowser_top_right[] = {
|
||||
#include "levels/castle_inside/13.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07009000 - 0x07009800
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07009000[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_bowser_bottom_left[] = {
|
||||
#include "levels/castle_inside/14.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x07009800 - 0x0700A000
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_07009800[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_bowser_bottom_right[] = {
|
||||
#include "levels/castle_inside/15.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// 0x0700A000 - 0x0700A800
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_0700A000[] = {
|
||||
ALIGNED8 static const Texture inside_castle_seg7_texture_light_radial_inverse[] = {
|
||||
#include "levels/castle_inside/16.ia16.inc.c"
|
||||
};
|
||||
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/ccm/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_CCM_ROPEWAY_LIFT, /*pos*/ 531, -4430, 6426, /*angle*/ 0, 0, 0, /*behParam*/ 0x07120000, /*beh*/ bhvPlatformOnTrack),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_PENGUIN, /*pos*/ 2650, -3735, 3970, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvSmallPenguin),
|
||||
OBJECT(/*model*/ MODEL_PENGUIN, /*pos*/ -555, 3470, -1000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSmallPenguin),
|
||||
OBJECT(/*model*/ MODEL_MR_BLIZZARD, /*pos*/ -2376, -1589, 4256, /*angle*/ 0, 252, 0, /*behParam*/ 0x00010000, /*beh*/ bhvMrBlizzard),
|
||||
@@ -30,7 +30,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 2665, -4607, 4525, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCcmTouchedStarSpawn, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_PENGUIN, /*pos*/ 3450, -4700, 4550, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvTuxiesMother, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 4200, -927, 400, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
@@ -39,7 +39,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_PENGUIN, /*pos*/ -4952, 6656, -6075, /*angle*/ 0, 270, 0, /*behParam*/ 0x02000000, /*beh*/ bhvRacingPenguin, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6500, -5836, -6400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPenguinRaceFinishLine),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6393, -716, 7503, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPenguinRaceShortcutCheck),
|
||||
@@ -87,9 +87,9 @@ const LevelScript level_ccm_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x20, /*destLevel*/ LEVEL_CCM, /*destArea*/ 0x01, /*destNode*/ 0x1F, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x33, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x65, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ ccm_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ ccm_seg7_area_1_macro_objs),
|
||||
SHOW_DIALOG(/*index*/ 0x00, DIALOG_048),
|
||||
@@ -103,7 +103,7 @@ const LevelScript level_ccm_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_CCM, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x33, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x65, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
TERRAIN(/*terrainData*/ ccm_seg7_area_2_collision),
|
||||
MACRO_OBJECTS(/*objList*/ ccm_seg7_area_2_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0001, /*seq*/ SEQ_LEVEL_SLIDE),
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/cotmc/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_CAP_SWITCH, /*pos*/ 0, 363, -6144, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvCapSwitch),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 500, -7373, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 500, 3584, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, -200, -7000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -50,8 +50,8 @@ const LevelScript level_cotmc_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x34, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x66, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF3, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x14, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
TERRAIN(/*terrainData*/ cotmc_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ cotmc_seg7_macro_objs),
|
||||
SHOW_DIALOG(/*index*/ 0x00, DIALOG_130),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/ddd/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_SUSHI, /*pos*/ -3071, -270, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSushiShark),
|
||||
OBJECT(/*model*/ MODEL_SUSHI, /*pos*/ -3071, -4270, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSushiShark),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -3071, -130, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFewBlueFishSpawner),
|
||||
@@ -26,13 +26,13 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -2400, -4607, 125, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvTreasureChests, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_MANTA_RAY, /*pos*/ -4640, -1380, 40, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvMantaRay, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_DDD_BOWSER_SUB_DOOR, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowserSubDoor),
|
||||
OBJECT(/*model*/ MODEL_DDD_BOWSER_SUB, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBowsersSub),
|
||||
OBJECT(/*model*/ MODEL_DDD_POLE, /*pos*/ 5120, 1005, 3584, /*angle*/ 0, 180, 0, /*behParam*/ 0x001E0000, /*beh*/ bhvDDDPole),
|
||||
@@ -47,7 +47,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3404, -3319, -489, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvJetStream),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -87,8 +87,8 @@ const LevelScript level_ddd_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x35, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x67, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WHIRLPOOL(/*unk2*/ 0, /*unk3*/ 0, /*pos*/ -3174, -4915, 102, /*strength*/ 20),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
INSTANT_WARP(/*index*/ 3, /*destArea*/ 2, /*displace*/ -8192, 0, 0),
|
||||
TERRAIN(/*terrainData*/ ddd_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ ddd_seg7_area_1_macro_objs),
|
||||
@@ -102,8 +102,8 @@ const LevelScript level_ddd_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x35, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x67, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF3, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x1E, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
JUMP_LINK(script_func_local_5),
|
||||
INSTANT_WARP(/*index*/ 2, /*destArea*/ 1, /*displace*/ 8192, 0, 0),
|
||||
TERRAIN(/*terrainData*/ ddd_seg7_area_2_collision),
|
||||
|
||||
@@ -288,7 +288,7 @@ const GeoLayout hmc_geo_000B48[] = {
|
||||
};
|
||||
|
||||
// 0x0E000B90
|
||||
const GeoLayout hmc_geo_area_1[] = {
|
||||
const GeoLayout hmc_geo_000B90[] = {
|
||||
GEO_NODE_SCREEN_AREA(10, SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH/2, SCREEN_HEIGHT/2),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_ZBUFFER(0),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E0005A0
|
||||
const GeoLayout hmc_geo_controllable_arrow_platform[] = {
|
||||
const GeoLayout hmc_geo_0005A0[] = {
|
||||
GEO_CULLING_RADIUS(550),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, hmc_seg7_dl_07022DA0),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E0005B8
|
||||
const GeoLayout hmc_geo_controllable_arrow_platform_button[] = {
|
||||
const GeoLayout hmc_geo_0005B8[] = {
|
||||
GEO_CULLING_RADIUS(200),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, hmc_seg7_dl_07023090),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E0005D0
|
||||
const GeoLayout hmc_geo_elevator_platform[] = {
|
||||
const GeoLayout hmc_geo_0005D0[] = {
|
||||
GEO_CULLING_RADIUS(500),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, hmc_seg7_dl_07022AA0),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E000530
|
||||
const GeoLayout hmc_geo_grill_door[] = {
|
||||
const GeoLayout hmc_geo_000530[] = {
|
||||
GEO_CULLING_RADIUS(1000),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_ALPHA, hmc_seg7_dl_0701FFF8),
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
#include "game/moving_texture.h"
|
||||
|
||||
// geo
|
||||
extern const GeoLayout hmc_geo_grill_door[];
|
||||
extern const GeoLayout hmc_geo_rolling_rock[];
|
||||
extern const GeoLayout hmc_geo_rolling_rock_fragment_large[];
|
||||
extern const GeoLayout hmc_geo_rolling_rock_fragment_small[];
|
||||
extern const GeoLayout hmc_geo_controllable_arrow_platform[];
|
||||
extern const GeoLayout hmc_geo_controllable_arrow_platform_button[];
|
||||
extern const GeoLayout hmc_geo_elevator_platform[];
|
||||
extern const GeoLayout hmc_geo_000530[];
|
||||
extern const GeoLayout hmc_geo_000548[];
|
||||
extern const GeoLayout hmc_geo_000570[];
|
||||
extern const GeoLayout hmc_geo_000588[];
|
||||
extern const GeoLayout hmc_geo_0005A0[];
|
||||
extern const GeoLayout hmc_geo_0005B8[];
|
||||
extern const GeoLayout hmc_geo_0005D0[];
|
||||
extern const GeoLayout hmc_geo_0005E8[];
|
||||
extern const GeoLayout hmc_geo_000618[];
|
||||
extern const GeoLayout hmc_geo_000658[];
|
||||
@@ -30,7 +30,7 @@ extern const GeoLayout hmc_geo_000A18[];
|
||||
extern const GeoLayout hmc_geo_000A88[];
|
||||
extern const GeoLayout hmc_geo_000AE8[];
|
||||
extern const GeoLayout hmc_geo_000B48[];
|
||||
extern const GeoLayout hmc_geo_area_1[];
|
||||
extern const GeoLayout hmc_geo_000B90[];
|
||||
|
||||
// leveldata
|
||||
extern const Gfx hmc_seg7_dl_070078B0[];
|
||||
@@ -74,11 +74,11 @@ extern const Gfx hmc_seg7_dl_07023E10[];
|
||||
extern const Gfx hmc_seg7_dl_07024110[];
|
||||
extern const Gfx hmc_seg7_dl_07024268[];
|
||||
extern const Gfx hmc_seg7_dl_070242A0[];
|
||||
extern const u8 *const hmc_seg7_painting_textures_07025518[];
|
||||
extern const Texture *const hmc_seg7_painting_textures_07025518[];
|
||||
extern struct Painting cotmc_painting;
|
||||
extern const Collision hmc_seg7_collision_level[];
|
||||
extern const MacroObject hmc_seg7_macro_objs[];
|
||||
extern const u8 hmc_seg7_rooms[];
|
||||
extern const RoomData hmc_seg7_rooms[];
|
||||
extern const Collision hmc_seg7_collision_elevator[];
|
||||
extern const Collision hmc_seg7_collision_0702B65C[];
|
||||
extern const Collision hmc_seg7_collision_controllable_platform[];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E000548
|
||||
const GeoLayout hmc_geo_rolling_rock[] = {
|
||||
const GeoLayout hmc_geo_000548[] = {
|
||||
GEO_CULLING_RADIUS(300),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_SHADOW(SHADOW_CIRCLE_9_VERTS, 0xB4, 400),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E000570
|
||||
const GeoLayout hmc_geo_rolling_rock_fragment_large[] = {
|
||||
const GeoLayout hmc_geo_000570[] = {
|
||||
GEO_CULLING_RADIUS(150),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, hmc_seg7_dl_07023E10),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 0x0E000588
|
||||
const GeoLayout hmc_geo_rolling_rock_fragment_small[] = {
|
||||
const GeoLayout hmc_geo_000588[] = {
|
||||
GEO_CULLING_RADIUS(100),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, hmc_seg7_dl_07024110),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/hmc/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ 4936, -357, -4146, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ 5018, -460, -5559, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
OBJECT(/*model*/ MODEL_RED_FLAME, /*pos*/ 1997, 666, -235, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlame),
|
||||
@@ -38,7 +38,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_HMC_METAL_PLATFORM, /*pos*/ 1100, 950, 6350, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvControllablePlatform),
|
||||
OBJECT(/*model*/ MODEL_HMC_ELEVATOR_PLATFORM, /*pos*/ -3243, 1434, 1392, /*angle*/ 0, 27, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHmcElevatorPlatform),
|
||||
OBJECT(/*model*/ MODEL_HMC_ELEVATOR_PLATFORM, /*pos*/ -2816, 2253, -2509, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvHmcElevatorPlatform),
|
||||
@@ -50,7 +50,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_DORRIE, /*pos*/ -3533, -4969, 3558, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvDorrie),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6093, 3075, -7807, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBigBoulderGenerator),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -500, 1600, 3500, /*angle*/ 0, 0, 0, /*behParam*/ 0x00040000, /*beh*/ bhvFlamethrower),
|
||||
@@ -58,13 +58,13 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -3600, -4000, 3600, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -3600, -4000, 3600, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 4000, 300, 5000, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 6200, -4400, 2300, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -2100, 2100, -7550, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -6500, 2700, -1600, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -5000, 3050, -6700, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 6200, -4400, 2300, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -2100, 2100, -7550, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -6500, 2700, -1600, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -5000, 3050, -6700, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
@@ -86,25 +86,25 @@ const LevelScript level_hmc_entry[] = {
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_WOODEN_DOOR, wooden_door_geo),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_METAL_DOOR, metal_door_geo),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_HAZY_MAZE_DOOR, hazy_maze_door_geo),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_METAL_PLATFORM, hmc_geo_controllable_arrow_platform),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_METAL_ARROW_PLATFORM, hmc_geo_controllable_arrow_platform_button),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ELEVATOR_PLATFORM, hmc_geo_elevator_platform),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ROLLING_ROCK, hmc_geo_rolling_rock),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ROCK_PIECE, hmc_geo_rolling_rock_fragment_large),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ROCK_SMALL_PIECE, hmc_geo_rolling_rock_fragment_small),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_RED_GRILLS, hmc_geo_grill_door),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_METAL_PLATFORM, hmc_geo_0005A0),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_METAL_ARROW_PLATFORM, hmc_geo_0005B8),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ELEVATOR_PLATFORM, hmc_geo_0005D0),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ROLLING_ROCK, hmc_geo_000548),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ROCK_PIECE, hmc_geo_000570),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_ROCK_SMALL_PIECE, hmc_geo_000588),
|
||||
LOAD_MODEL_FROM_GEO(MODEL_HMC_RED_GRILLS, hmc_geo_000530),
|
||||
|
||||
AREA(/*index*/ 1, hmc_geo_area_1),
|
||||
AREA(/*index*/ 1, hmc_geo_000B90),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -7152, 3161, 7181, /*angle*/ 0, 135, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvSpinAirborneWarp),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3351, -4690, 4773, /*angle*/ 0, 0, 0, /*behParam*/ 0x340B0000, /*beh*/ bhvWarp),
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_HMC, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_COTMC, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_HMC, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_COTMC, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x34, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x66, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
TERRAIN(/*terrainData*/ hmc_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ hmc_seg7_macro_objs),
|
||||
ROOMS(/*surfaceRooms*/ hmc_seg7_rooms),
|
||||
@@ -114,7 +114,7 @@ const LevelScript level_hmc_entry[] = {
|
||||
|
||||
FREE_LEVEL_POOL(),
|
||||
MARIO_POS(/*area*/ 1, /*yaw*/ 135, /*pos*/ -7152, 2161, 7181),
|
||||
CALL( /*arg*/ 0, /*func*/ lvl_init_or_update),
|
||||
CALL(/*arg*/ 0, /*func*/ lvl_init_or_update),
|
||||
CALL_LOOP(/*arg*/ 1, /*func*/ lvl_init_or_update),
|
||||
CLEAR_LEVEL(),
|
||||
SLEEP_BEFORE_EXIT(/*frames*/ 1),
|
||||
|
||||
@@ -3342,17 +3342,17 @@ ALIGNED8 static const Texture intro_seg7_texture_0700B4A0[] = {
|
||||
#else
|
||||
// 0x0700B4A0 - 0x0700B4A2
|
||||
ALIGNED8 static const Texture intro_seg7_texture_0700B4A0[] = {
|
||||
#include "levels/intro/2_copyright.rgba16.inc.c"
|
||||
#include "levels/intro/made_with_hackersm64.custom.rgba16.inc.c"
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(VERSION_EU)
|
||||
// 0x0700C4A0 - 0x0700D4A0
|
||||
ALIGNED8 static const u8 intro_seg7_texture_0700C4A0[] = {
|
||||
ALIGNED8 static const Texture intro_seg7_texture_0700C4A0[] = {
|
||||
#include "levels/intro/3_eu_tm.rgba16.inc.c"
|
||||
};
|
||||
#elif defined(VERSION_SH)
|
||||
ALIGNED8 static const u8 intro_seg7_texture_0700C4A0[] = {
|
||||
ALIGNED8 static const Texture intro_seg7_texture_0700C4A0[] = {
|
||||
#include "levels/intro/3_sh_tm.rgba16.inc.c"
|
||||
};
|
||||
#else
|
||||
@@ -3366,6 +3366,7 @@ ALIGNED8 static const Texture intro_seg7_texture_0700C4A0[] = {
|
||||
const Gfx intro_seg7_dl_copyright_trademark[] = {
|
||||
gsDPPipeSync(),
|
||||
gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE),
|
||||
gsDPSetTextureFilter(G_TF_POINT),
|
||||
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
||||
|
||||
gsDPLoadTextureBlock(intro_seg7_texture_0700B4A0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 128, 16, 0, G_TX_CLAMP, G_TX_CLAMP, 7, 4, G_TX_NOLOD, G_TX_NOLOD),
|
||||
@@ -3382,6 +3383,7 @@ const Gfx intro_seg7_dl_copyright_trademark[] = {
|
||||
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
||||
gsDPSetEnvColor(255, 255, 255, 255),
|
||||
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
|
||||
gsDPSetTextureFilter(G_TF_BILERP),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/jrb/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_JRB_SUNKEN_SHIP, /*pos*/ 2385, 3589, 3727, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSunkenShipPart, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_JRB_SUNKEN_SHIP_BACK, /*pos*/ 2385, 3589, 3727, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSunkenShipPart, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_JRB_SHIP_LEFT_HALF_PART, /*pos*/ 5385, -5520, 2428, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSunkenShipPart2, /*acts*/ ACT_1),
|
||||
@@ -37,7 +37,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_JRB_ROCK, /*pos*/ 1834, -2556, -7090, /*angle*/ 0, 194, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRockSolid),
|
||||
OBJECT(/*model*/ MODEL_JRB_ROCK, /*pos*/ -2005, -2556, -3506, /*angle*/ 0, 135, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRockSolid),
|
||||
OBJECT(/*model*/ MODEL_JRB_ROCK, /*pos*/ 1578, -2556, -5554, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRockSolid),
|
||||
@@ -91,7 +91,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 4900, 2400, 800, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
#if defined(VERSION_JP) || defined(VERSION_SH)
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 1540, 2160, 2130, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
@@ -102,7 +102,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 400, -350, -2700, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTreasureChestsShip),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -147,9 +147,9 @@ const LevelScript level_jrb_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x35, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x67, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WHIRLPOOL(/*unk2*/ 0, /*unk3*/ 3, /*pos*/ 4979, -5222, 2482, /*strength*/ -30),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ jrb_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ jrb_seg7_area_1_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0003, /*seq*/ SEQ_LEVEL_WATER),
|
||||
@@ -161,7 +161,7 @@ const LevelScript level_jrb_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_JRB, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x35, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x67, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
JUMP_LINK(script_func_local_5),
|
||||
TERRAIN(/*terrainData*/ jrb_seg7_area_2_collision),
|
||||
MACRO_OBJECTS(/*objList*/ jrb_seg7_area_2_macro_objs),
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "levels/lll/header.h"
|
||||
|
||||
// Unlike most levels, level geometry objects in LLL are defined as regular objects instead of terrain objects.
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_LEVEL_GEOMETRY_03, /*pos*/ 3840, 0, -5631, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
OBJECT(/*model*/ MODEL_LEVEL_GEOMETRY_04, /*pos*/ 4992, 0, -639, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
OBJECT(/*model*/ MODEL_LEVEL_GEOMETRY_05, /*pos*/ 7168, 0, 1408, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
@@ -35,7 +35,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_LLL_DRAWBRIDGE_PART, /*pos*/ -1919, 307, 3648, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvLllDrawbridgeSpawner),
|
||||
OBJECT(/*model*/ MODEL_LLL_ROTATING_BLOCK_FIRE_BARS, /*pos*/ -5119, 307, -4095, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvLllRotatingBlockWithFireBars),
|
||||
OBJECT(/*model*/ MODEL_LLL_ROTATING_HEXAGONAL_RING, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvLllRotatingHexagonalRing),
|
||||
@@ -52,7 +52,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_LLL_MOVING_OCTAGONAL_MESH_PLATFORM, /*pos*/ 1124, 0, -4607, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvLllMovingOctagonalMeshPlatform),
|
||||
OBJECT(/*model*/ MODEL_LLL_MOVING_OCTAGONAL_MESH_PLATFORM, /*pos*/ 7168, 0, 2432, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvLllMovingOctagonalMeshPlatform),
|
||||
OBJECT(/*model*/ MODEL_LLL_SINKING_ROCK_BLOCK, /*pos*/ 7168, 0, 7296, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvLllSinkingRockBlock),
|
||||
@@ -62,7 +62,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -3199, 307, 3456, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvMrI),
|
||||
OBJECT(/*model*/ MODEL_BULLY_BOSS, /*pos*/ 0, 307, -4385, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBigBully),
|
||||
OBJECT(/*model*/ MODEL_BULLY_BOSS, /*pos*/ 4046, 2234, -5521, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvBigBullyWithMinions),
|
||||
@@ -182,10 +182,10 @@ const LevelScript level_lll_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0D, /*destLevel*/ LEVEL_LLL, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x32, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x64, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
JUMP_LINK(script_func_local_5),
|
||||
TERRAIN(/*terrainData*/ lll_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ lll_seg7_area_1_macro_objs),
|
||||
|
||||
@@ -30,8 +30,8 @@ extern const Gfx dl_menu_sound_button[];
|
||||
extern const Gfx dl_menu_generic_button[];
|
||||
extern const Gfx dl_menu_idle_hand[];
|
||||
extern const Gfx dl_menu_grabbing_hand[];
|
||||
extern const u8 *const menu_hud_lut[];
|
||||
extern const u8 *const menu_font_lut[];
|
||||
extern const Texture *const menu_hud_lut[];
|
||||
extern const Texture *const menu_font_lut[];
|
||||
extern const Gfx dl_menu_ia8_text_begin[];
|
||||
extern const Gfx dl_menu_ia8_text_end[];
|
||||
extern const Gfx dl_menu_rgba16_wood_course[];
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/rr/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_RR_SLIDING_PLATFORM, /*pos*/ -3400, -2038, 6564, /*angle*/ 0, 0, 0, /*behParam*/ 0x02560000, /*beh*/ bhvSlidingPlatform2),
|
||||
OBJECT(/*model*/ MODEL_RR_SLIDING_PLATFORM, /*pos*/ -2684, -1423, -36, /*angle*/ 0, 0, 0, /*behParam*/ 0x02590000, /*beh*/ bhvSlidingPlatform2),
|
||||
OBJECT(/*model*/ MODEL_RR_FLYING_CARPET, /*pos*/ 4571, -1782, 2036, /*angle*/ 0, 180, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPlatformOnTrack),
|
||||
@@ -50,7 +50,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -5809, -1834, 5719, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -4838, -1015, 4081, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3301, -1834, 5617, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFlamethrower),
|
||||
@@ -59,7 +59,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 1450, 3400, -2352, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -4200, 6700, -4450, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -5150, -1400, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
@@ -127,9 +127,9 @@ const LevelScript level_rr_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_RR, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x3A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x6C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ rr_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ rr_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_SLIDE),
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/sa/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, -1000, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFishSpawner),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, -1000, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvFishSpawner),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, -4250, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -46,8 +46,8 @@ const LevelScript level_sa_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_SA, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x27, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x28, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
TERRAIN(/*terrainData*/ sa_seg7_collision),
|
||||
MACRO_OBJECTS(/*objList*/ sa_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0003, /*seq*/ (SEQ_LEVEL_WATER | SEQ_VARIATION)),
|
||||
|
||||
@@ -59,8 +59,8 @@ static const LevelScript goto_debug_level_select[6];
|
||||
#undef STUB_LEVEL
|
||||
|
||||
const LevelScript level_main_scripts_entry[] = {
|
||||
LOAD_YAY0(/*seg*/ 0x04, _group0_yay0SegmentRomStart, _group0_yay0SegmentRomEnd),
|
||||
LOAD_YAY0(/*seg*/ 0x03, _common1_yay0SegmentRomStart, _common1_yay0SegmentRomEnd),
|
||||
LOAD_YAY0( /*seg*/ 0x04, _group0_yay0SegmentRomStart, _group0_yay0SegmentRomEnd),
|
||||
LOAD_YAY0( /*seg*/ 0x03, _common1_yay0SegmentRomStart, _common1_yay0SegmentRomEnd),
|
||||
LOAD_RAW_WITH_CODE( /*seg*/ 0x17, _group0_geoSegmentRomStart, _group0_geoSegmentRomEnd, _group0_geoSegmentBssStart, _group0_geoSegmentBssEnd),
|
||||
LOAD_RAW_WITH_CODE( /*seg*/ 0x16, _common1_geoSegmentRomStart, _common1_geoSegmentRomEnd, _common1_geoSegmentBssStart, _common1_geoSegmentBssEnd),
|
||||
LOAD_RAW_WITH_CODE( /*seg*/ 0x13, _behaviorSegmentRomStart, _behaviorSegmentRomEnd, _behaviorSegmentBssStart, _behaviorSegmentBssEnd),
|
||||
|
||||
@@ -16,19 +16,19 @@
|
||||
#include "levels/sl/header.h"
|
||||
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 700, 4500, 690, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 4350, 1350, 4350, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 5000, 1200, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 977, 1024, 2075, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSnowMoundSpawn),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_PENGUIN, /*pos*/ 1715, 3328, 518, /*angle*/ 0, -51, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSLWalkingPenguin),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 700, 3428, 700, /*angle*/ 0, 30, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSLSnowmanWind),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 480, 2300, 1370, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvIgloo),
|
||||
@@ -37,7 +37,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 0, 500, 1000, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -75,9 +75,9 @@ const LevelScript level_sl_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_SL, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0D, /*destLevel*/ LEVEL_SL, /*destArea*/ 0x01, /*destNode*/ 0x0E, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0E, /*destLevel*/ LEVEL_SL, /*destArea*/ 0x01, /*destNode*/ 0x0D, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x36, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x68, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
TERRAIN(/*terrainData*/ sl_seg7_area_1_collision),
|
||||
@@ -91,7 +91,7 @@ const LevelScript level_sl_entry[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 0, 3277, /*angle*/ 0, 0, 0, /*behParam*/ 0x140B0000, /*beh*/ bhvWarp),
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_SL, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_SL, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x36, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x68, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
TERRAIN(/*terrainData*/ sl_seg7_area_2_collision),
|
||||
|
||||
@@ -18,8 +18,8 @@ extern const GeoLayout ssl_geo_0007CC[];
|
||||
extern const GeoLayout ssl_geo_00088C[];
|
||||
|
||||
// leveldata
|
||||
extern const u8 ssl_pyramid_sand[];
|
||||
extern const u8 ssl_quicksand[];
|
||||
extern const Texture ssl_pyramid_sand[];
|
||||
extern const Texture ssl_quicksand[];
|
||||
extern const Gfx ssl_dl_quicksand_pit_begin[];
|
||||
extern const Gfx ssl_dl_quicksand_pit_end[];
|
||||
extern const Gfx ssl_dl_pyramid_quicksand_pit_begin[];
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/ssl/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_SSL_PYRAMID_TOP, /*pos*/ -2047, 1536, -1023, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPyramidTop),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_SSL_TOX_BOX, /*pos*/ -1284, 0, -5895, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvToxBox),
|
||||
OBJECT(/*model*/ MODEL_SSL_TOX_BOX, /*pos*/ 1283, 0, -4865, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvToxBox),
|
||||
OBJECT(/*model*/ MODEL_SSL_TOX_BOX, /*pos*/ 4873, 0, -3335, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvToxBox),
|
||||
@@ -32,13 +32,13 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -2050, 1200, -580, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 6000, 800, 3500, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 2867, 640, 2867, /*angle*/ 0, 0, 0, /*behParam*/ 0x004D0000, /*beh*/ bhvPoleGrabbing),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 3200, 1331, /*angle*/ 0, 0, 0, /*behParam*/ 0x005C0000, /*beh*/ bhvPoleGrabbing),
|
||||
OBJECT(/*model*/ MODEL_SSL_GRINDEL, /*pos*/ 3297, 0, 95, /*angle*/ 0, 0, 0, /*behParam*/ 0x001C0000, /*beh*/ bhvGrindel),
|
||||
@@ -103,9 +103,9 @@ const LevelScript level_ssl_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x20, /*destLevel*/ LEVEL_SSL, /*destArea*/ 0x01, /*destNode*/ 0x1F, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x33, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x65, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ ssl_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ ssl_seg7_area_1_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_HOT),
|
||||
@@ -123,7 +123,7 @@ const LevelScript level_ssl_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x16, /*destLevel*/ LEVEL_SSL, /*destArea*/ 0x02, /*destNode*/ 0x15, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x33, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x03, /*destNode*/ 0x65, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
JUMP_LINK(script_func_local_5),
|
||||
INSTANT_WARP(/*index*/ 3, /*destArea*/ 3, /*displace*/ 0, 0, 0),
|
||||
TERRAIN(/*terrainData*/ ssl_seg7_area_2_collision),
|
||||
|
||||
@@ -15,22 +15,22 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/thi/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 0, -700, -4500, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvHiddenStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -1800, 800, -1500, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT(/*model*/ MODEL_WIGGLER_HEAD, /*pos*/ 17, 1843, -62, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvWigglerHead),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_KOOPA_WITH_SHELL, /*pos*/ -1900, -511, 2400, /*angle*/ 0, -30, 0, /*behParam*/ 0x02030000, /*beh*/ bhvKoopa, /*acts*/ ACT_3),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 7400, -1537, -6300, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvKoopaRaceEndpoint, /*acts*/ ACT_3),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6556, -2969, 6565, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvGoombaTripletSpawner),
|
||||
@@ -111,9 +111,9 @@ const LevelScript level_thi_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x37, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x69, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_7),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_5),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
TERRAIN(/*terrainData*/ thi_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ thi_seg7_area_1_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_GRASS),
|
||||
@@ -130,7 +130,7 @@ const LevelScript level_thi_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x33, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x65, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_8),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_6),
|
||||
TERRAIN(/*terrainData*/ thi_seg7_area_2_collision),
|
||||
MACRO_OBJECTS(/*objList*/ thi_seg7_area_2_macro_objs),
|
||||
@@ -147,7 +147,7 @@ const LevelScript level_thi_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_THI, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x37, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x69, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ thi_seg7_area_3_collision),
|
||||
MACRO_OBJECTS(/*objList*/ thi_seg7_area_3_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0004, /*seq*/ SEQ_LEVEL_UNDERGROUND),
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/totwc/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_CAP_SWITCH, /*pos*/ 0, -2047, 10, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCapSwitch),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 800, -1700, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -47,8 +47,8 @@ const LevelScript level_totwc_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF3, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x20, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x26, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x23, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
TERRAIN(/*terrainData*/ totwc_seg7_collision),
|
||||
MACRO_OBJECTS(/*objList*/ totwc_seg7_macro_objs),
|
||||
SHOW_DIALOG(/*index*/ 0x00, DIALOG_131),
|
||||
|
||||
@@ -55,7 +55,7 @@ extern const Collision ttc_seg7_collision_clock_platform[];
|
||||
extern const Collision ttc_seg7_collision_clock_main_rotation[];
|
||||
extern const Collision ttc_seg7_collision_rotating_clock_platform2[];
|
||||
extern const MacroObject ttc_seg7_macro_objs[];
|
||||
extern const u8 ttc_yellow_triangle[];
|
||||
extern const Texture ttc_yellow_triangle[];
|
||||
extern const Gfx ttc_dl_surface_treadmill_begin[];
|
||||
extern const Gfx ttc_dl_surface_treadmill_end[];
|
||||
extern Movtex ttc_movtex_tris_big_surface_treadmill[];
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/ttc/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -1080, -840, 1573, /*angle*/ 0, 0, 0, /*behParam*/ 0x00560000, /*beh*/ bhvPoleGrabbing),
|
||||
OBJECT(/*model*/ MODEL_THWOMP, /*pos*/ 1919, 6191, 1919, /*angle*/ 0, 225, 0, /*behParam*/ 0x00000000, /*beh*/ bhvThwomp2),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -1450, -1130, -1050, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -1850, 300, -950, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -1300, -2250, -1300, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
@@ -64,8 +64,8 @@ const LevelScript level_ttc_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_TTC, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x35, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x67, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
TERRAIN(/*terrainData*/ ttc_seg7_collision_level),
|
||||
MACRO_OBJECTS(/*objList*/ ttc_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0001, /*seq*/ SEQ_LEVEL_SLIDE),
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/ttm/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_TTM_ROLLING_LOG, /*pos*/ 4360, -1722, 4001, /*angle*/ 0, 48, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTtmRollingLog),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -1639, 1146, -1742, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvTtmBowlingBallSpawner),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3295, -3692, 2928, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 2004, -1580, 1283, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterfallSoundLoop),
|
||||
@@ -41,7 +41,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 1200, 2600, 150, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_TTM_STAR_CAGE, /*pos*/ 2496, 1670, 1492, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvUkikiCage, /*acts*/ ACT_2),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -3250, -2500, -3700, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
@@ -51,7 +51,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT(/*model*/ MODEL_TTM_BLUE_SMILEY, /*pos*/ 4389, 3620, 624, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
OBJECT(/*model*/ MODEL_TTM_YELLOW_SMILEY, /*pos*/ -1251, 2493, 2224, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
OBJECT(/*model*/ MODEL_TTM_STAR_SMILEY, /*pos*/ -2547, 1365, -520, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
@@ -134,9 +134,9 @@ const LevelScript level_ttm_entry[] = {
|
||||
PAINTING_WARP_NODE(/*id*/ 0x02, /*destLevel*/ LEVEL_TTM, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*flags*/ WARP_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x34, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x66, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
TERRAIN(/*terrainData*/ ttm_seg7_area_1_collision),
|
||||
MACRO_OBJECTS(/*objList*/ ttm_seg7_area_1_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_GRASS),
|
||||
@@ -148,7 +148,7 @@ const LevelScript level_ttm_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_TTM, /*destArea*/ 0x02, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x34, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x66, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
TERRAIN(/*terrainData*/ ttm_seg7_area_2_collision),
|
||||
MACRO_OBJECTS(/*objList*/ ttm_seg7_area_2_macro_objs),
|
||||
INSTANT_WARP(/*index*/ 2, /*destArea*/ 3, /*displace*/ 10240, 7168, 10240),
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/vcutm/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_VCUTM_SEESAW_PLATFORM, /*pos*/ 154, -1919, -6256, /*angle*/ 0, 270, 0, /*behParam*/ 0x00070000, /*beh*/ bhvSeesawPlatform),
|
||||
OBJECT(/*model*/ MODEL_VCUTM_SEESAW_PLATFORM, /*pos*/ -2047, -3378, -2047, /*angle*/ 0, 0, 0, /*behParam*/ 0x00070000, /*beh*/ bhvSeesawPlatform),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3251, -1082, -6256, /*angle*/ 0, 270, 0, /*behParam*/ 0x014B0000, /*beh*/ bhvCheckerboardElevatorGroup),
|
||||
@@ -26,12 +26,12 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_CAP_SWITCH, /*pos*/ 4506, 26, -6246, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvCapSwitch),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 4600, 250, -4500, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -57,9 +57,9 @@ const LevelScript level_vcutm_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF3, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x07, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x08, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x06, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
TERRAIN(/*terrainData*/ vcutm_seg7_collision),
|
||||
MACRO_OBJECTS(/*objList*/ vcutm_seg7_macro_objs),
|
||||
SHOW_DIALOG(/*index*/ 0x00, DIALOG_129),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 0x070160D8 - 0x0701633C
|
||||
const MacroObject wdw_seg7_area_1_macro_objs[] = {
|
||||
MACRO_OBJECT_WITH_BEH_PARAM(/*preset*/ macro_wooden_signpost, /*yaw*/ 0, /*pos*/ -2077, 2816, -660, /*behParam*/ DIALOG_081),
|
||||
MACRO_OBJECT(/*preset*/ macro_bobomb_buddy_opens_cannon, /*yaw*/ 0, /*pos*/ -2, 2944, 3583),
|
||||
MACRO_OBJECT(/*preset*/ macro_bobomb_buddy_opens_cannon, /*yaw*/ 0, /*pos*/ -2, 3200, 3583),
|
||||
MACRO_OBJECT(/*preset*/ macro_coin_ring_horizontal, /*yaw*/ 0, /*pos*/ -2057, 2800, -500),
|
||||
MACRO_OBJECT(/*preset*/ macro_coin_line_horizontal, /*yaw*/ 90, /*pos*/ 1500, 1741, 2191),
|
||||
MACRO_OBJECT(/*preset*/ macro_blue_coin_switch, /*yaw*/ 0, /*pos*/ 500, 384, 250),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/wdw/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_WDW_SQUARE_FLOATING_PLATFORM, /*pos*/ 3390, 0, 384, /*angle*/ 0, 180, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWdwSquareFloatingPlatform),
|
||||
OBJECT(/*model*/ MODEL_WDW_SQUARE_FLOATING_PLATFORM, /*pos*/ -767, 384, 3584, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWdwSquareFloatingPlatform),
|
||||
OBJECT(/*model*/ MODEL_WDW_SQUARE_FLOATING_PLATFORM, /*pos*/ -767, 384, 1536, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWdwSquareFloatingPlatform),
|
||||
@@ -47,7 +47,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 0, 0, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvInitializeChangingWaterLevel),
|
||||
OBJECT(/*model*/ MODEL_WDW_WATER_LEVEL_DIAMOND, /*pos*/ -3583, -2508, -2047, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterLevelDiamond),
|
||||
OBJECT(/*model*/ MODEL_WDW_WATER_LEVEL_DIAMOND, /*pos*/ -767, -127, 1792, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterLevelDiamond),
|
||||
@@ -55,13 +55,13 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 3360, 1580, 2660, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvHiddenStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 890, 3400, -2040, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -770, -1600, 3600, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 2180, -840, 3720, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
RETURN(),
|
||||
@@ -99,8 +99,8 @@ const LevelScript level_wdw_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_WDW, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_WDW, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_WDW, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x32, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x64, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
INSTANT_WARP(/*index*/ 1, /*destArea*/ 2, /*displace*/ 0, 0, 0),
|
||||
@@ -111,8 +111,8 @@ const LevelScript level_wdw_entry[] = {
|
||||
END_AREA(),
|
||||
|
||||
AREA(/*index*/ 2, wdw_geo_000724),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x32, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x64, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
INSTANT_WARP(/*index*/ 0, /*destArea*/ 1, /*displace*/ 0, 0, 0),
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
// Unlike most levels, some of the level geometry objects in WF are defined as regular objects instead of terrain objects.
|
||||
// Some of them are still terrain objects, however.
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_LEVEL_GEOMETRY_03, /*pos*/ 2305, 2432, -255, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
OBJECT(/*model*/ MODEL_LEVEL_GEOMETRY_04, /*pos*/ 3405, 1664, -1791, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
OBJECT(/*model*/ MODEL_LEVEL_GEOMETRY_05, /*pos*/ 3840, 0, -2303, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStaticObject),
|
||||
@@ -31,7 +31,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_WF_SMALL_BOMP, /*pos*/ 3300, 1070, 1, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSmallBomp),
|
||||
OBJECT(/*model*/ MODEL_WF_SMALL_BOMP, /*pos*/ 3300, 1070, 1281, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvSmallBomp),
|
||||
OBJECT(/*model*/ MODEL_WF_LARGE_BOMP, /*pos*/ 3300, 1070, 641, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvLargeBomp),
|
||||
@@ -51,7 +51,7 @@ static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
static const LevelScript script_func_local_3[] = {
|
||||
OBJECT(/*model*/ MODEL_THWOMP, /*pos*/ 3462, 1939, -1545, /*angle*/ 0, 180, 0, /*behParam*/ 0x00000000, /*beh*/ bhvThwomp),
|
||||
OBJECT(/*model*/ MODEL_THWOMP, /*pos*/ 3462, 1075, -3314, /*angle*/ 0, 90, 0, /*behParam*/ 0x00000000, /*beh*/ bhvThwomp2),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -856, 922, 3819, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBetaFishSplashSpawner),
|
||||
@@ -81,7 +81,7 @@ static const LevelScript script_func_local_hmc_dorrie_and_spawners[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_stars[] = {
|
||||
static const LevelScript script_func_local_4[] = {
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_WHOMP, /*pos*/ 0, 3584, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWhompKingBoss, /*acts*/ ACT_1),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 300, 5550, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvStar, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
||||
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ -2500, 1500, -750, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
||||
@@ -148,10 +148,10 @@ const LevelScript level_wf_entry[] = {
|
||||
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_WF, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x34, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x66, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_hmc_dorrie_and_spawners),
|
||||
JUMP_LINK(script_func_local_hmc_stars),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
JUMP_LINK(script_func_local_3),
|
||||
JUMP_LINK(script_func_local_4),
|
||||
TERRAIN(/*terrainData*/ wf_seg7_collision_070102D8),
|
||||
MACRO_OBJECTS(/*objList*/ wf_seg7_macro_objs),
|
||||
SHOW_DIALOG(/*index*/ 0x00, DIALOG_030),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/wmotr/header.h"
|
||||
|
||||
static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
static const LevelScript script_func_local_1[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3996, -2739, 5477, /*angle*/ 0, 0, 0, /*behParam*/ 0x00520000, /*beh*/ bhvPoleGrabbing),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -2911, 3564, -3967, /*angle*/ 0, 0, 0, /*behParam*/ 0x00540000, /*beh*/ bhvPoleGrabbing),
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -3258, 3359, -3946, /*angle*/ 0, 0, 0, /*behParam*/ 0x00690000, /*beh*/ bhvPoleGrabbing),
|
||||
@@ -25,7 +25,7 @@ static const LevelScript script_func_local_hmc_flames_and_poles[] = {
|
||||
RETURN(),
|
||||
};
|
||||
|
||||
static const LevelScript script_func_local_hmc_platforms[] = {
|
||||
static const LevelScript script_func_local_2[] = {
|
||||
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -160, 1950, -470, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar),
|
||||
RETURN(),
|
||||
};
|
||||
@@ -53,8 +53,8 @@ const LevelScript level_wmotr_entry[] = {
|
||||
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x38, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x02, /*destNode*/ 0x6D, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(/*id*/ 0xF3, /*destLevel*/ LEVEL_CASTLE_GROUNDS, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
||||
JUMP_LINK(script_func_local_hmc_flames_and_poles),
|
||||
JUMP_LINK(script_func_local_hmc_platforms),
|
||||
JUMP_LINK(script_func_local_1),
|
||||
JUMP_LINK(script_func_local_2),
|
||||
TERRAIN(/*terrainData*/ wmotr_seg7_collision),
|
||||
MACRO_OBJECTS(/*objList*/ wmotr_seg7_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_SLIDE),
|
||||
|
||||
@@ -245,6 +245,7 @@ SECTIONS
|
||||
{
|
||||
BUILD_DIR/src/game*.o(.text);
|
||||
BUILD_DIR/src/engine*.o(.text);
|
||||
BUILD_DIR/asm/math.o(.text);
|
||||
_engineSegmentTextEnd = .;
|
||||
/* data */
|
||||
BUILD_DIR/src/game*.o(.*data*);
|
||||
|
||||
@@ -10,14 +10,11 @@
|
||||
#include "game/level_update.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "game/camera.h"
|
||||
#include "engine/math_util.h"
|
||||
#include "seq_ids.h"
|
||||
#include "dialog_ids.h"
|
||||
|
||||
#if defined(VERSION_EU) || defined(VERSION_SH)
|
||||
#define EU_FLOAT(x) x##f
|
||||
#else
|
||||
#define EU_FLOAT(x) x
|
||||
#endif
|
||||
|
||||
// N.B. sound banks are different from the audio banks referred to in other
|
||||
// files. We should really fix our naming to be less ambiguous...
|
||||
@@ -228,8 +225,8 @@ struct MusicDynamic sMusicDynamics[8] = {
|
||||
{ 0x0e43, 127, 200, 0x0000, 0, 200 }, // SEQ_LEVEL_WATER
|
||||
{ 0x02ff, 127, 100, 0x0100, 0, 100 }, // SEQ_LEVEL_UNDERGROUND
|
||||
{ 0x03f7, 127, 100, 0x0008, 0, 100 }, // SEQ_LEVEL_UNDERGROUND
|
||||
{ 0x0070, 127, 10, 0x0000, 0, 100 }, // SEQ_LEVEL_SPOOKY
|
||||
{ 0x0000, 127, 100, 0x0070, 0, 10 }, // SEQ_LEVEL_SPOOKY
|
||||
{ 0x0070, 127, 10, 0x0000, 0, 100 }, // SEQ_LEVEL_SPOOKY
|
||||
{ 0x0000, 127, 100, 0x0070, 0, 10 }, // SEQ_LEVEL_SPOOKY
|
||||
{ 0xffff, 127, 100, 0x0000, 0, 100 }, // any (unused)
|
||||
};
|
||||
|
||||
@@ -256,11 +253,7 @@ u16 sLevelAcousticReaches[LEVEL_COUNT] = {
|
||||
|
||||
#define AUDIO_MAX_DISTANCE US_FLOAT(22000.0)
|
||||
|
||||
#ifdef VERSION_JP
|
||||
#define LOW_VOLUME_REVERB 48.0
|
||||
#else
|
||||
#define LOW_VOLUME_REVERB 40.0f
|
||||
#endif
|
||||
|
||||
#ifdef VERSION_JP
|
||||
#define VOLUME_RANGE_UNK1 0.8f
|
||||
@@ -849,7 +842,7 @@ static void process_sound_request(u32 bits, f32 *pos) {
|
||||
// Allocate from free list
|
||||
soundIndex = sSoundBankFreeListFront[bank];
|
||||
|
||||
dist = sqrtf(pos[0] * pos[0] + pos[1] * pos[1] + pos[2] * pos[2]) * one;
|
||||
dist = sqrtf(sqr(pos[0]) + sqr(pos[1]) + sqr(pos[2])) * one;
|
||||
sSoundBanks[bank][soundIndex].x = &pos[0];
|
||||
sSoundBanks[bank][soundIndex].y = &pos[1];
|
||||
sSoundBanks[bank][soundIndex].z = &pos[2];
|
||||
|
||||
@@ -1742,7 +1742,7 @@ void func_sh_802f23ec(void) {
|
||||
s32 drumId;
|
||||
struct Drum *drum;
|
||||
struct Instrument *inst;
|
||||
struct UnkEntry *entry; //! @bug: not initialized but nevertheless used
|
||||
struct UnkEntry *entry = NULL; //! @bug: not initialized but nevertheless used
|
||||
|
||||
seqCount = gAlCtlHeader->seqCount;
|
||||
for (idx = 0; idx < seqCount; idx++) {
|
||||
|
||||
@@ -46,27 +46,15 @@
|
||||
#define CODEC_S8 1
|
||||
#define CODEC_SKIP 2
|
||||
|
||||
#ifdef VERSION_JP
|
||||
#define TEMPO_SCALE 1
|
||||
#else
|
||||
#define TEMPO_SCALE TATUMS_PER_BEAT
|
||||
#endif
|
||||
|
||||
// TODO: US_FLOAT should probably be renamed to JP_DOUBLE since eu seems to use floats too
|
||||
#ifdef VERSION_JP
|
||||
#define US_FLOAT(x) x
|
||||
#else
|
||||
#define US_FLOAT(x) x ## f
|
||||
#endif
|
||||
|
||||
// Convert u8 or u16 to f32. On JP, this uses a u32->f32 conversion,
|
||||
// resulting in more bloated codegen, while on US it goes through s32.
|
||||
// Since u8 and u16 fit losslessly in both, behavior is the same.
|
||||
#ifdef VERSION_JP
|
||||
#define FLOAT_CAST(x) (f32) (x)
|
||||
#else
|
||||
#define FLOAT_CAST(x) (f32) (s32) (x)
|
||||
#endif
|
||||
|
||||
#if defined(ISVPRINT) || defined(UNF)
|
||||
#define stubbed_printf osSyncPrintf
|
||||
|
||||
@@ -398,9 +398,8 @@ void func_802ad7ec(u32 arg0) {
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
//! @bug u8 s8 comparison (but harmless)
|
||||
if (chan->reverbVol != cmd->u2.as_s8) {
|
||||
chan->reverbVol = cmd->u2.as_s8;
|
||||
if (chan->reverbVol != cmd->u2.as_u8) {
|
||||
chan->reverbVol = cmd->u2.as_u8;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "game/game_init.h"
|
||||
#include "game/memory.h"
|
||||
#include "game/sound_init.h"
|
||||
#include "game/profiler.h"
|
||||
#include "buffers/buffers.h"
|
||||
#include "segments.h"
|
||||
#include "game/main.h"
|
||||
@@ -71,27 +70,14 @@ s8 gDebugLevelSelect = TRUE;
|
||||
s8 gDebugLevelSelect = FALSE;
|
||||
#endif
|
||||
|
||||
s8 gShowProfiler = FALSE;
|
||||
s8 gShowDebugText = FALSE;
|
||||
|
||||
// unused
|
||||
void handle_debug_key_sequences(void) {
|
||||
static u16 sProfilerKeySequence[] = {
|
||||
U_JPAD, U_JPAD, D_JPAD, D_JPAD, L_JPAD, R_JPAD, L_JPAD, R_JPAD
|
||||
};
|
||||
static u16 sDebugTextKeySequence[] = { D_JPAD, D_JPAD, U_JPAD, U_JPAD,
|
||||
L_JPAD, R_JPAD, L_JPAD, R_JPAD };
|
||||
static s16 sProfilerKey = 0;
|
||||
static s16 sDebugTextKey = 0;
|
||||
if (gPlayer3Controller->buttonPressed != 0) {
|
||||
if (sProfilerKeySequence[sProfilerKey++] == gPlayer3Controller->buttonPressed) {
|
||||
if (sProfilerKey == ARRAY_COUNT(sProfilerKeySequence)) {
|
||||
sProfilerKey = 0, gShowProfiler ^= 1;
|
||||
}
|
||||
} else {
|
||||
sProfilerKey = 0;
|
||||
}
|
||||
|
||||
if (sDebugTextKeySequence[sDebugTextKey++] == gPlayer3Controller->buttonPressed) {
|
||||
if (sDebugTextKey == ARRAY_COUNT(sDebugTextKeySequence)) {
|
||||
sDebugTextKey = 0, gShowDebugText ^= 1;
|
||||
@@ -192,7 +178,6 @@ void interrupt_gfx_sptask(void) {
|
||||
void start_gfx_sptask(void) {
|
||||
if (gActiveSPTask == NULL && sCurrentDisplaySPTask != NULL
|
||||
&& sCurrentDisplaySPTask->state == SPTASK_STATE_NOT_STARTED) {
|
||||
profiler_log_gfx_time(TASKS_QUEUED);
|
||||
#if PUPPYPRINT_DEBUG
|
||||
rspDelta = osGetTime();
|
||||
#endif
|
||||
@@ -224,7 +209,6 @@ void handle_vblank(void) {
|
||||
if (gActiveSPTask != NULL) {
|
||||
interrupt_gfx_sptask();
|
||||
} else {
|
||||
profiler_log_vblank_time();
|
||||
if (sAudioEnabled) {
|
||||
start_sptask(M_AUDTASK);
|
||||
} else {
|
||||
@@ -234,7 +218,6 @@ void handle_vblank(void) {
|
||||
} else {
|
||||
if (gActiveSPTask == NULL && sCurrentDisplaySPTask != NULL
|
||||
&& sCurrentDisplaySPTask->state != SPTASK_STATE_FINISHED) {
|
||||
profiler_log_gfx_time(TASKS_QUEUED);
|
||||
#if PUPPYPRINT_DEBUG
|
||||
rspDelta = osGetTime();
|
||||
#endif
|
||||
@@ -267,11 +250,9 @@ void handle_sp_complete(void) {
|
||||
#if PUPPYPRINT_DEBUG
|
||||
profiler_update(rspGenTime, rspDelta);
|
||||
#endif
|
||||
profiler_log_gfx_time(RSP_COMPLETE);
|
||||
}
|
||||
|
||||
// Start the audio task, as expected by handle_vblank.
|
||||
profiler_log_vblank_time();
|
||||
if (sAudioEnabled) {
|
||||
start_sptask(M_AUDTASK);
|
||||
} else {
|
||||
@@ -281,12 +262,8 @@ void handle_sp_complete(void) {
|
||||
curSPTask->state = SPTASK_STATE_FINISHED;
|
||||
if (curSPTask->task.t.type == M_AUDTASK) {
|
||||
// After audio tasks come gfx tasks.
|
||||
profiler_log_vblank_time();
|
||||
if (sCurrentDisplaySPTask != NULL
|
||||
&& sCurrentDisplaySPTask->state != SPTASK_STATE_FINISHED) {
|
||||
if (sCurrentDisplaySPTask->state != SPTASK_STATE_INTERRUPTED) {
|
||||
profiler_log_gfx_time(TASKS_QUEUED);
|
||||
}
|
||||
start_sptask(M_GFXTASK);
|
||||
}
|
||||
sCurrentAudioSPTask = NULL;
|
||||
@@ -300,7 +277,6 @@ void handle_sp_complete(void) {
|
||||
#if PUPPYPRINT_DEBUG
|
||||
profiler_update(rspGenTime, rspDelta);
|
||||
#endif
|
||||
profiler_log_gfx_time(RSP_COMPLETE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -310,7 +286,6 @@ void handle_dp_complete(void) {
|
||||
if (sCurrentDisplaySPTask->msgqueue != NULL) {
|
||||
osSendMesg(sCurrentDisplaySPTask->msgqueue, sCurrentDisplaySPTask->msg, OS_MESG_NOBLOCK);
|
||||
}
|
||||
profiler_log_gfx_time(RDP_COMPLETE);
|
||||
sCurrentDisplaySPTask->state = SPTASK_STATE_FINISHED_DP;
|
||||
sCurrentDisplaySPTask = NULL;
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@ extern struct MainPoolBlock *sPoolListHeadR;
|
||||
*/
|
||||
struct MemoryPool *gEffectsMemoryPool;
|
||||
|
||||
|
||||
uintptr_t sSegmentTable[32];
|
||||
u32 sPoolFreeSpace;
|
||||
u8 *sPoolStart;
|
||||
|
||||
@@ -76,7 +76,7 @@ f32 random_float(void) {
|
||||
// Return either -1 or 1 with a 50:50 chance.
|
||||
s32 random_sign(void) {
|
||||
if (random_u16() >= 0x7FFF) {
|
||||
return 1;
|
||||
return 1;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
@@ -84,15 +84,36 @@ s32 random_sign(void) {
|
||||
|
||||
// Update an object's graphical position and rotation to match its real position and rotation.
|
||||
void obj_update_gfx_pos_and_angle(struct Object *obj) {
|
||||
obj->header.gfx.pos[0] = obj->oPosX;
|
||||
obj->header.gfx.pos[1] = obj->oPosY + obj->oGraphYOffset;
|
||||
obj->header.gfx.pos[2] = obj->oPosZ;
|
||||
|
||||
obj->header.gfx.angle[0] = obj->oFaceAnglePitch & 0xFFFF;
|
||||
obj->header.gfx.angle[1] = obj->oFaceAngleYaw & 0xFFFF;
|
||||
obj->header.gfx.angle[2] = obj->oFaceAngleRoll & 0xFFFF;
|
||||
vec3_copy_y_off(obj->header.gfx.pos, &obj->oPosVec, obj->oGraphYOffset);
|
||||
obj->header.gfx.angle[0] = (obj->oFaceAnglePitch & 0xFFFF);
|
||||
obj->header.gfx.angle[1] = (obj->oFaceAngleYaw & 0xFFFF);
|
||||
obj->header.gfx.angle[2] = (obj->oFaceAngleRoll & 0xFFFF);
|
||||
}
|
||||
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
void obj_set_opacity_from_cam_dist(struct Object *obj) {
|
||||
f32 dist; //! Should this be done via LOD's instead?
|
||||
Vec3f d;
|
||||
if (obj->header.gfx.node.flags & GRAPH_RENDER_BILLBOARD) {
|
||||
d[0] = (obj->oPosX - gCamera->pos[0]);
|
||||
d[2] = (obj->oPosZ - gCamera->pos[2]);
|
||||
dist = (sqr(d[0]) + sqr(d[2]));
|
||||
} else {
|
||||
vec3_diff(d, &obj->oPosVec, gCamera->pos);
|
||||
dist = (sqr(d[0]) + sqr(d[1]) + sqr(d[2]));
|
||||
}
|
||||
if (dist > 0.0f) {
|
||||
obj->header.gfx.node.flags &= ~GRAPH_RENDER_UCODE_REJ;
|
||||
}
|
||||
#ifdef PUPPYCAM
|
||||
s32 opacityDist = ((gPuppyCam.zoom > 0) ? ((dist / sqr(gPuppyCam.zoom)) * 255.0f) : 255);
|
||||
#else
|
||||
s32 opacityDist = (dist * (255.0f / sqr(1024.0f)));
|
||||
#endif
|
||||
obj->oOpacity = CLAMP(opacityDist, 0x00, 0xFF);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Push the address of a behavior command to the object's behavior stack.
|
||||
static void cur_obj_bhv_stack_push(uintptr_t bhvAddr) {
|
||||
gCurrentObject->bhvStack[gCurrentObject->bhvStackIndex] = bhvAddr;
|
||||
@@ -899,6 +920,7 @@ void cur_obj_update(void) {
|
||||
f32 distanceFromMario;
|
||||
BhvCommandProc bhvCmdProc;
|
||||
s32 bhvProcResult;
|
||||
s32 objListIndex = OBJ_LIST_PLAYER;
|
||||
|
||||
// Calculate the distance from the object to Mario.
|
||||
if (objFlags & OBJ_FLAG_COMPUTE_DIST_TO_MARIO) {
|
||||
@@ -971,39 +993,21 @@ void cur_obj_update(void) {
|
||||
obj_update_gfx_pos_and_angle(gCurrentObject);
|
||||
}
|
||||
|
||||
if (objFlags & OBJ_FLAG_UCODE_LARGE) {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_UCODE_REJ;
|
||||
} else {
|
||||
gCurrentObject->header.gfx.node.flags |= GRAPH_RENDER_UCODE_REJ;
|
||||
COND_BIT((!(objFlags & OBJ_FLAG_UCODE_LARGE )), gCurrentObject->header.gfx.node.flags, GRAPH_RENDER_UCODE_REJ );
|
||||
COND_BIT(( objFlags & OBJ_FLAG_SILHOUETTE ), gCurrentObject->header.gfx.node.flags, GRAPH_RENDER_SILHOUETTE );
|
||||
COND_BIT(( objFlags & OBJ_FLAG_OCCLUDE_SILHOUETTE ), gCurrentObject->header.gfx.node.flags, GRAPH_RENDER_OCCLUDE_SILHOUETTE);
|
||||
BehaviorScript *bhvScript = segmented_to_virtual(gCurrentObject->behavior);
|
||||
if ((bhvScript[0] >> 24) == 0) {
|
||||
objListIndex = (bhvScript[0] >> 16) & 0xFFFF;
|
||||
}
|
||||
|
||||
if (objFlags & OBJ_FLAG_SILHOUETTE) {
|
||||
gCurrentObject->header.gfx.node.flags |= GRAPH_RENDER_SILHOUETTE;
|
||||
} else {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_SILHOUETTE;
|
||||
if (objListIndex == OBJ_LIST_SURFACE && !(objFlags & OBJ_FLAG_UCODE_SMALL)) {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_UCODE_REJ;
|
||||
gCurrentObject->header.gfx.node.flags |= GRAPH_RENDER_UCODE_ZEX;
|
||||
}
|
||||
|
||||
#ifdef OBJ_OPACITY_BY_CAM_DIST
|
||||
if (objFlags & OBJ_FLAG_OPACITY_FROM_CAMERA_DIST) {
|
||||
f32 dist;
|
||||
Vec3f d;
|
||||
if (gCurrentObject->header.gfx.node.flags & GRAPH_RENDER_BILLBOARD) {
|
||||
d[0] = (gCurrentObject->oPosX - gCamera->pos[0]);
|
||||
d[2] = (gCurrentObject->oPosZ - gCamera->pos[2]);
|
||||
dist = (sqr(d[0]) + sqr(d[2]));
|
||||
} else {
|
||||
vec3_diff(d, &gCurrentObject->oPosVec, gCamera->pos);
|
||||
dist = (sqr(d[0]) + sqr(d[1]) + sqr(d[2]));
|
||||
}
|
||||
if (dist > 0.0f) {
|
||||
gCurrentObject->header.gfx.node.flags &= ~GRAPH_RENDER_UCODE_REJ;
|
||||
}
|
||||
#ifdef PUPPYCAM
|
||||
s32 opacityDist = ((gPuppyCam.zoom > 0) ? ((dist / sqr(gPuppyCam.zoom)) * 255.0f) : 255);
|
||||
#else
|
||||
s32 opacityDist = (dist * (255.0f / sqr(1024.0f)));
|
||||
#endif
|
||||
gCurrentObject->oOpacity = CLAMP(opacityDist, 0x00, 0xFF);
|
||||
obj_set_opacity_from_cam_dist(gCurrentObject);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -22,59 +22,49 @@
|
||||
Collision calculations remain as fast as vanilla, at the cost of using far more RAM (16 times vanilla).
|
||||
64x64 collision cells.
|
||||
|
||||
|
||||
If you see "SURFACE POOL FULL" or "SURFACE NODE POOL FULL" in game, you should increase
|
||||
SURFACE_POOL_SIZE or SURFACE_NODE_POOL_SIZE, respectively, or reduce the amount of
|
||||
collision surfaces in your level.
|
||||
*/
|
||||
|
||||
//for the static assert macro
|
||||
// For the static assert macro
|
||||
#include "macros.h"
|
||||
|
||||
//set this to the extended bounds mode you want, then do "make clean".
|
||||
// Set this to the extended bounds mode you want, then do "make clean".
|
||||
#define EXTENDED_BOUNDS_MODE 1
|
||||
|
||||
//the maximum amount of collision surfaces (static and dynamic combined)
|
||||
//8200 should work fine for a 2x extended stage, the vanilla value is 2300
|
||||
#define SURFACE_POOL_SIZE 4000
|
||||
// Don't touch the stuff past this point unless you know what you're doing!
|
||||
|
||||
//make this approximately (amount of collision cells) + (SURFACE_POOL_SIZE * 3)
|
||||
//22000 should work fine for a 2x extended stage, the vanilla value is 7000
|
||||
#define SURFACE_NODE_POOL_SIZE 12000
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//don't touch the stuff past this point unless you know what you're doing!
|
||||
|
||||
//default value to check if the user set a proper extended bounds mode
|
||||
#define LEVEL_BOUNDARY_MAX 0x0000
|
||||
|
||||
#if EXTENDED_BOUNDS_MODE == 0
|
||||
#undef LEVEL_BOUNDARY_MAX // Undefine the old value to avoid compiler warnings
|
||||
#define LEVEL_BOUNDARY_MAX 0x2000L
|
||||
#define CELL_SIZE 0x400
|
||||
#elif EXTENDED_BOUNDS_MODE == 1
|
||||
#undef LEVEL_BOUNDARY_MAX
|
||||
#define LEVEL_BOUNDARY_MAX 0x4000L
|
||||
#define CELL_SIZE 0x400
|
||||
#elif EXTENDED_BOUNDS_MODE == 2
|
||||
#undef LEVEL_BOUNDARY_MAX
|
||||
#define LEVEL_BOUNDARY_MAX 0x2000L
|
||||
#define CELL_SIZE 0x200
|
||||
#elif EXTENDED_BOUNDS_MODE == 3
|
||||
#undef LEVEL_BOUNDARY_MAX
|
||||
#define LEVEL_BOUNDARY_MAX 0x8000L
|
||||
#define CELL_SIZE 0x400
|
||||
#if EXTENDED_BOUNDS_MODE == 0 // 1x, normal cell size
|
||||
#define LEVEL_BOUNDARY_MAX 0x2000L // 8192
|
||||
#define CELL_SIZE 0x400 // 1024, NUM_CELLS = 16
|
||||
#elif EXTENDED_BOUNDS_MODE == 1 // 2x, normal cell size
|
||||
#define LEVEL_BOUNDARY_MAX 0x4000L // 16384
|
||||
#define CELL_SIZE 0x400 // 1024, NUM_CELLS = 32
|
||||
#elif EXTENDED_BOUNDS_MODE == 2 // 1x, smaller cell size
|
||||
#define LEVEL_BOUNDARY_MAX 0x2000L // 8192
|
||||
#define CELL_SIZE 0x200 // 512, NUM_CELLS = 32
|
||||
#elif EXTENDED_BOUNDS_MODE == 3 // 4x, normal cell size
|
||||
#define LEVEL_BOUNDARY_MAX 0x8000L // 32768
|
||||
#define CELL_SIZE 0x400 // 1024, NUM_CELLS = 64
|
||||
#endif
|
||||
|
||||
STATIC_ASSERT(LEVEL_BOUNDARY_MAX != 0, "You must set a valid extended bounds mode!");
|
||||
STATIC_ASSERT((EXTENDED_BOUNDS_MODE >= 0 && EXTENDED_BOUNDS_MODE <= 3), "You must set a valid extended bounds mode!");
|
||||
|
||||
#define NUM_CELLS (2 * LEVEL_BOUNDARY_MAX / CELL_SIZE)
|
||||
// The amount of cells in each axis in an area.
|
||||
#define NUM_CELLS (2 * LEVEL_BOUNDARY_MAX / CELL_SIZE)
|
||||
// The maximum amount of collision surfaces (static and dynamic combined)
|
||||
#define SURFACE_POOL_SIZE (LEVEL_BOUNDARY_MAX / 2) // Vanilla: 2300. Modes: 0: 4096, 1: 8192, 2: 8192, 3: 16384
|
||||
// How many SurfaceNodes can fit in Surface. This is done so that the maximum sizes for both can contain the same amount.
|
||||
#define SURFACE_NODE_STRUCT_DIFF 3.5 // = (56 / 16) = (sizeof(struct Surface) / sizeof(struct SurfaceNode))
|
||||
// The maximum amount of SurfaceNodes (static and dynamic combined)
|
||||
#define SURFACE_NODE_POOL_SIZE (s32)(SURFACE_POOL_SIZE * SURFACE_NODE_STRUCT_DIFF) // Vanilla: 7000. Modes: 0: 14336, 1: 28672, 2: 28672, 3: 57344
|
||||
|
||||
// Flags for error messages
|
||||
#define NOT_ENOUGH_ROOM_FOR_SURFACES (1 << 0)
|
||||
#define NOT_ENOUGH_ROOM_FOR_NODES (1 << 1)
|
||||
|
||||
// Use this to convert game units to cell coordinates
|
||||
#define GET_CELL_COORD(p) ((((p) + LEVEL_BOUNDARY_MAX) / CELL_SIZE) & (NUM_CELLS - 1));
|
||||
|
||||
#endif // __EXTENDED_BOUNDS_H__
|
||||
@@ -172,15 +172,9 @@ void geo_layout_cmd_update_node_flags(void) {
|
||||
u16 flagBits = cur_geo_cmd_s16(0x02);
|
||||
|
||||
switch (operation) {
|
||||
case GEO_CMD_FLAGS_RESET:
|
||||
gCurGraphNodeList[gCurGraphNodeIndex]->flags = flagBits;
|
||||
break;
|
||||
case GEO_CMD_FLAGS_SET:
|
||||
gCurGraphNodeList[gCurGraphNodeIndex]->flags |= flagBits;
|
||||
break;
|
||||
case GEO_CMD_FLAGS_CLEAR:
|
||||
gCurGraphNodeList[gCurGraphNodeIndex]->flags &= ~flagBits;
|
||||
break;
|
||||
case GEO_CMD_FLAGS_RESET: gCurGraphNodeList[gCurGraphNodeIndex]->flags = flagBits; break;
|
||||
case GEO_CMD_FLAGS_SET: gCurGraphNodeList[gCurGraphNodeIndex]->flags |= flagBits; break;
|
||||
case GEO_CMD_FLAGS_CLEAR: gCurGraphNodeList[gCurGraphNodeIndex]->flags &= ~flagBits; break;
|
||||
}
|
||||
|
||||
gGeoLayoutCommand += 0x04 << CMD_SIZE_SHIFT;
|
||||
|
||||
@@ -9,15 +9,6 @@
|
||||
#include "game/area.h"
|
||||
#include "geo_layout.h"
|
||||
|
||||
// unused Mtx(s)
|
||||
s16 identityMtx[4][4] = { { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } };
|
||||
s16 zeroMtx[4][4] = { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } };
|
||||
|
||||
Vec3f gVec3fZero = { 0.0f, 0.0f, 0.0f };
|
||||
Vec3s gVec3sZero = { 0, 0, 0 };
|
||||
Vec3f gVec3fOne = { 1.0f, 1.0f, 1.0f };
|
||||
UNUSED Vec3s gVec3sOne = { 1, 1, 1 };
|
||||
|
||||
/**
|
||||
* Initialize a geo node with a given type. Sets all links such that there
|
||||
* are no siblings, parent or children for this node.
|
||||
@@ -722,9 +713,9 @@ void geo_obj_init(struct GraphNodeObject *graphNode, void *sharedChild, Vec3f po
|
||||
graphNode->throwMatrix = NULL;
|
||||
graphNode->animInfo.curAnim = NULL;
|
||||
|
||||
graphNode->node.flags |= GRAPH_RENDER_ACTIVE;
|
||||
graphNode->node.flags |= GRAPH_RENDER_ACTIVE;
|
||||
graphNode->node.flags &= ~GRAPH_RENDER_INVISIBLE;
|
||||
graphNode->node.flags |= GRAPH_RENDER_HAS_ANIMATION;
|
||||
graphNode->node.flags |= GRAPH_RENDER_HAS_ANIMATION;
|
||||
graphNode->node.flags &= ~GRAPH_RENDER_BILLBOARD;
|
||||
}
|
||||
|
||||
@@ -887,7 +878,7 @@ void geo_retreive_animation_translation(struct GraphNodeObject *obj, Vec3f posit
|
||||
position[1] = (f32) values[retrieve_animation_index(frame, &attribute)];
|
||||
position[2] = (f32) values[retrieve_animation_index(frame, &attribute)];
|
||||
} else {
|
||||
vec3f_set(position, 0, 0, 0);
|
||||
vec3_zero(position);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,22 +9,24 @@
|
||||
#include "geo_commands.h"
|
||||
#include "game/memory.h"
|
||||
|
||||
#define GRAPH_RENDER_ACTIVE (1 << 0) // 0x0001
|
||||
#define GRAPH_RENDER_CHILDREN_FIRST (1 << 1) // 0x0002
|
||||
#define GRAPH_RENDER_BILLBOARD (1 << 2) // 0x0004
|
||||
#define GRAPH_RENDER_Z_BUFFER (1 << 3) // 0x0008
|
||||
#define GRAPH_RENDER_INVISIBLE (1 << 4) // 0x0010
|
||||
#define GRAPH_RENDER_HAS_ANIMATION (1 << 5) // 0x0020
|
||||
#define GRAPH_RENDER_UCODE_REJ (1 << 6) // 0x0040
|
||||
#define GRAPH_RENDER_SILHOUETTE (1 << 7) // 0x0080
|
||||
#define GRAPH_RENDER_ACTIVE (1 << 0) // 0x0001
|
||||
#define GRAPH_RENDER_CHILDREN_FIRST (1 << 1) // 0x0002
|
||||
#define GRAPH_RENDER_BILLBOARD (1 << 2) // 0x0004
|
||||
#define GRAPH_RENDER_Z_BUFFER (1 << 3) // 0x0008
|
||||
#define GRAPH_RENDER_INVISIBLE (1 << 4) // 0x0010
|
||||
#define GRAPH_RENDER_HAS_ANIMATION (1 << 5) // 0x0020
|
||||
#define GRAPH_RENDER_SILHOUETTE (1 << 6) // 0x0040
|
||||
#define GRAPH_RENDER_OCCLUDE_SILHOUETTE (1 << 7) // 0x0080
|
||||
#define GRAPH_RENDER_UCODE_REJ (1 << 8) // 0x0100
|
||||
#define GRAPH_RENDER_UCODE_ZEX (1 << 9) // 0x0200
|
||||
|
||||
// The amount of bits to use for the above flags out of a s16 variable.
|
||||
// The remaining bits to the left are used for the render layers.
|
||||
// The vanilla value is 8, allowing for 8 flags and 255 layers.
|
||||
#define GRAPH_RENDER_FLAGS_SIZE 8
|
||||
#define GRAPH_RENDER_FLAGS_SIZE 12
|
||||
|
||||
#define GRAPH_RENDER_LAYERS_MASK (BITMASK(16 - GRAPH_RENDER_FLAGS_SIZE) << GRAPH_RENDER_FLAGS_SIZE)
|
||||
#define GRAPH_RENDER_FLAGS_MASK BITMASK(GRAPH_RENDER_FLAGS_SIZE)
|
||||
#define GRAPH_RENDER_LAYERS_MASK (BITMASK(16 - GRAPH_RENDER_FLAGS_SIZE) << GRAPH_RENDER_FLAGS_SIZE) // 8:0xFF00 12:0xF000
|
||||
#define GRAPH_RENDER_FLAGS_MASK BITMASK(GRAPH_RENDER_FLAGS_SIZE) // 8:0x00FF 12:0x0FFF
|
||||
#define SET_GRAPH_NODE_LAYER(flags, layer) ((flags) = ((flags) & GRAPH_RENDER_FLAGS_MASK) | (((layer) << GRAPH_RENDER_FLAGS_SIZE) & GRAPH_RENDER_LAYERS_MASK))
|
||||
#define GET_GRAPH_NODE_LAYER(flags ) ((flags & GRAPH_RENDER_LAYERS_MASK) >> GRAPH_RENDER_FLAGS_SIZE)
|
||||
|
||||
@@ -260,7 +262,6 @@ struct GraphNodeBone
|
||||
Vec3s rotation;
|
||||
};
|
||||
|
||||
|
||||
/** A GraphNode that draws a display list rotated in a way to always face the
|
||||
* camera. Note that if the entire object is a billboard (like a coin or 1-up)
|
||||
* then it simply sets the billboard flag for the entire object, this node is
|
||||
@@ -376,11 +377,6 @@ extern struct GraphNode *gCurGraphNodeList[];
|
||||
|
||||
extern s16 gCurGraphNodeIndex;
|
||||
|
||||
extern Vec3f gVec3fZero;
|
||||
extern Vec3s gVec3sZero;
|
||||
extern Vec3f gVec3fOne;
|
||||
extern Vec3s gVec3sOne;
|
||||
|
||||
void init_scene_graph_node_links(struct GraphNode *graphNode, s32 type);
|
||||
|
||||
struct GraphNodeRoot *init_graph_node_root(struct AllocOnlyPool *pool, struct GraphNodeRoot *graphNode,
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "game/memory.h"
|
||||
#include "game/object_helpers.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "game/profiler.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/sound_init.h"
|
||||
#include "goddard/renderer.h"
|
||||
@@ -415,7 +414,7 @@ static void level_cmd_end_area(void) {
|
||||
}
|
||||
|
||||
static void level_cmd_load_model_from_dl(void) {
|
||||
ModelID model = CMD_GET(ModelID, 0xA);
|
||||
ModelID16 model = CMD_GET(ModelID16, 0xA);
|
||||
s16 layer = CMD_GET(u16, 0x8);
|
||||
void *dl_ptr = CMD_GET(void *, 4);
|
||||
|
||||
@@ -428,7 +427,7 @@ static void level_cmd_load_model_from_dl(void) {
|
||||
}
|
||||
|
||||
static void level_cmd_load_model_from_geo(void) {
|
||||
ModelID model = CMD_GET(ModelID, 2);
|
||||
ModelID16 model = CMD_GET(ModelID16, 2);
|
||||
void *geo = CMD_GET(void *, 4);
|
||||
|
||||
if (model < MODEL_ID_COUNT) {
|
||||
@@ -444,7 +443,7 @@ static void level_cmd_23(void) {
|
||||
f32 f;
|
||||
} arg2;
|
||||
|
||||
ModelID model = CMD_GET(s16, 2) & 0x0FFF;
|
||||
ModelID16 model = CMD_GET(s16, 2) & 0x0FFF;
|
||||
s16 arg0H = ((u16)CMD_GET(s16, 2)) >> 12;
|
||||
void *arg1 = CMD_GET(void *, 4);
|
||||
// load an f32, but using an integer load instruction for some reason (hence the union)
|
||||
@@ -461,14 +460,14 @@ static void level_cmd_23(void) {
|
||||
}
|
||||
|
||||
static void level_cmd_init_mario(void) {
|
||||
vec3s_set(gMarioSpawnInfo->startPos, 0, 0, 0);
|
||||
vec3s_set(gMarioSpawnInfo->startAngle, 0, 0, 0);
|
||||
vec3_zero(gMarioSpawnInfo->startPos);
|
||||
vec3_zero(gMarioSpawnInfo->startAngle);
|
||||
|
||||
gMarioSpawnInfo->activeAreaIndex = -1;
|
||||
gMarioSpawnInfo->areaIndex = 0;
|
||||
gMarioSpawnInfo->behaviorArg = CMD_GET(u32, 4);
|
||||
gMarioSpawnInfo->behaviorScript = CMD_GET(void *, 8);
|
||||
gMarioSpawnInfo->modelNode = gLoadedGraphNodes[CMD_GET(ModelID, 0x2)];
|
||||
gMarioSpawnInfo->modelNode = gLoadedGraphNodes[CMD_GET(ModelID16, 0x2)];
|
||||
gMarioSpawnInfo->next = NULL;
|
||||
|
||||
sCurrentCmd = CMD_NEXT;
|
||||
@@ -961,7 +960,6 @@ struct LevelCommand *level_script_execute(struct LevelCommand *cmd) {
|
||||
LevelScriptJumpTable[sCurrentCmd->type]();
|
||||
}
|
||||
|
||||
profiler_log_thread5_time(LEVEL_SCRIPT_EXECUTE);
|
||||
init_rcp(CLEAR_ZBUFFER);
|
||||
render_game();
|
||||
end_master_display_list();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
struct LevelCommand;
|
||||
|
||||
extern u8 level_script_entry[];
|
||||
extern LevelScript level_script_entry[];
|
||||
|
||||
struct LevelCommand *level_script_execute(struct LevelCommand *cmd);
|
||||
|
||||
|
||||