mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-08 09:51:41 +00:00
Added 'Platforms' level to Arena
This commit is contained in:
parent
77313ee8fd
commit
747184d8b9
21 changed files with 8300 additions and 0 deletions
2776
mods/arena/levels/ddd/area_1/collision.inc.c
Normal file
2776
mods/arena/levels/ddd/area_1/collision.inc.c
Normal file
File diff suppressed because it is too large
Load diff
35
mods/arena/levels/ddd/area_1/geo.inc.c
Normal file
35
mods/arena/levels/ddd/area_1/geo.inc.c
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#include "src/game/envfx_snow.h"
|
||||
|
||||
const GeoLayout ddd_area_1_geo[] = {
|
||||
GEO_NODE_START(),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, ddd_dl_LevelGeo_mesh_layer_1),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_RETURN(),
|
||||
};
|
||||
const GeoLayout ddd_area_1[] = {
|
||||
GEO_NODE_SCREEN_AREA(10, SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH/2, SCREEN_HEIGHT/2),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_ZBUFFER(0),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_NODE_ORTHO(100.0000),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_BACKGROUND(BACKGROUND_OCEAN_SKY, geo_skybox_main),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_ZBUFFER(1),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_CAMERA_FRUSTUM_WITH_FUNC(45.0000, 100, 30000, geo_camera_fov),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_CAMERA(CAMERA_MODE_8_DIRECTIONS, 0, 0, 0, 0, -100, 0, geo_camera_main),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_BRANCH(1, ddd_area_1_geo),
|
||||
GEO_RENDER_OBJ(),
|
||||
GEO_ASM(ENVFX_MODE_NONE, geo_envfx_main),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, ddd_dl_material_revert_render_settings),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_END(),
|
||||
};
|
||||
4
mods/arena/levels/ddd/area_1/macro.inc.c
Normal file
4
mods/arena/levels/ddd/area_1/macro.inc.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
const MacroObject ddd_area_1_macro_objs[] = {
|
||||
MACRO_OBJECT_END(),
|
||||
};
|
||||
|
||||
0
mods/arena/levels/ddd/area_1/spline.inc.c
Normal file
0
mods/arena/levels/ddd/area_1/spline.inc.c
Normal file
BIN
mods/arena/levels/ddd/big_bricks_blue.ci8.png
Normal file
BIN
mods/arena/levels/ddd/big_bricks_blue.ci8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
BIN
mods/arena/levels/ddd/dirt2.ci8.png
Normal file
BIN
mods/arena/levels/ddd/dirt2.ci8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
17
mods/arena/levels/ddd/geo.c
Normal file
17
mods/arena/levels/ddd/geo.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <ultra64.h>
|
||||
#include "sm64.h"
|
||||
#include "geo_commands.h"
|
||||
|
||||
#include "game/level_geo.h"
|
||||
#include "game/geo_misc.h"
|
||||
#include "game/camera.h"
|
||||
#include "game/moving_texture.h"
|
||||
#include "game/screen_transition.h"
|
||||
#include "game/paintings.h"
|
||||
|
||||
#include "make_const_nonconst.h"
|
||||
|
||||
#include "levels/ddd/header.h"
|
||||
|
||||
|
||||
#include "levels/ddd/geo.inc.c"
|
||||
1
mods/arena/levels/ddd/geo.inc.c
Normal file
1
mods/arena/levels/ddd/geo.inc.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "levels/ddd/area_1/geo.inc.c"
|
||||
12
mods/arena/levels/ddd/header.h
Normal file
12
mods/arena/levels/ddd/header.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef DDD_HEADER_H
|
||||
#define DDD_HEADER_H
|
||||
|
||||
#include "types.h"
|
||||
#include "game/moving_texture.h"
|
||||
|
||||
extern const LevelScript level_ddd_entry[];
|
||||
|
||||
|
||||
#include "levels/ddd/header.inc.h"
|
||||
|
||||
#endif
|
||||
27
mods/arena/levels/ddd/header.inc.h
Normal file
27
mods/arena/levels/ddd/header.inc.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
extern const GeoLayout ddd_area_1_geo[];
|
||||
extern const GeoLayout ddd_area_1[];
|
||||
extern const Collision ddd_area_1_collision[];
|
||||
extern const MacroObject ddd_area_1_macro_objs[];
|
||||
extern Lights1 ddd_dl_Material_003_f3d_lights;
|
||||
extern Lights1 ddd_dl_Material_004_f3d_lights;
|
||||
extern Lights1 ddd_dl_Material_005_f3d_lights;
|
||||
extern u8 ddd_dl_big_bricks_blue_ci8[];
|
||||
extern u8 ddd_dl_big_bricks_blue_ci8_pal_rgba16[];
|
||||
extern u8 ddd_dl_tile_ci8[];
|
||||
extern u8 ddd_dl_tile_ci8_pal_rgba16[];
|
||||
extern u8 ddd_dl_dirt2_ci8[];
|
||||
extern u8 ddd_dl_dirt2_ci8_pal_rgba16[];
|
||||
extern Vtx ddd_dl_LevelGeo_mesh_layer_1_vtx_0[2299];
|
||||
extern Gfx ddd_dl_LevelGeo_mesh_layer_1_tri_0[];
|
||||
extern Vtx ddd_dl_LevelGeo_mesh_layer_1_vtx_1[74];
|
||||
extern Gfx ddd_dl_LevelGeo_mesh_layer_1_tri_1[];
|
||||
extern Vtx ddd_dl_LevelGeo_mesh_layer_1_vtx_2[765];
|
||||
extern Gfx ddd_dl_LevelGeo_mesh_layer_1_tri_2[];
|
||||
extern Gfx mat_ddd_dl_Material_003_f3d[];
|
||||
extern Gfx mat_revert_ddd_dl_Material_003_f3d[];
|
||||
extern Gfx mat_ddd_dl_Material_004_f3d[];
|
||||
extern Gfx mat_revert_ddd_dl_Material_004_f3d[];
|
||||
extern Gfx mat_ddd_dl_Material_005_f3d[];
|
||||
extern Gfx mat_revert_ddd_dl_Material_005_f3d[];
|
||||
extern Gfx ddd_dl_LevelGeo_mesh_layer_1[];
|
||||
extern Gfx ddd_dl_material_revert_render_settings[];
|
||||
14
mods/arena/levels/ddd/leveldata.c
Normal file
14
mods/arena/levels/ddd/leveldata.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <ultra64.h>"
|
||||
#include "sm64.h"
|
||||
#include "surface_terrains.h"
|
||||
#include "moving_texture_macros.h"
|
||||
#include "level_misc_macros.h"
|
||||
#include "macro_preset_names.h"
|
||||
#include "special_preset_names.h"
|
||||
#include "textures.h"
|
||||
#include "dialog_ids.h"
|
||||
|
||||
#include "make_const_nonconst.h"
|
||||
|
||||
|
||||
#include "levels/ddd/leveldata.inc.c"
|
||||
5
mods/arena/levels/ddd/leveldata.inc.c
Normal file
5
mods/arena/levels/ddd/leveldata.inc.c
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include "levels/ddd/texture_include.inc.c"
|
||||
#include "levels/ddd/area_1/collision.inc.c"
|
||||
#include "levels/ddd/area_1/macro.inc.c"
|
||||
#include "levels/ddd/area_1/spline.inc.c"
|
||||
#include "levels/ddd/model.inc.c"
|
||||
5303
mods/arena/levels/ddd/model.inc.c
Normal file
5303
mods/arena/levels/ddd/model.inc.c
Normal file
File diff suppressed because it is too large
Load diff
90
mods/arena/levels/ddd/script.c
Normal file
90
mods/arena/levels/ddd/script.c
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
#include <ultra64.h>
|
||||
#include "sm64.h"
|
||||
#include "behavior_data.h"
|
||||
#include "model_ids.h"
|
||||
#include "seq_ids.h"
|
||||
#include "dialog_ids.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "level_commands.h"
|
||||
|
||||
#include "game/level_update.h"
|
||||
|
||||
#include "levels/scripts.h"
|
||||
|
||||
|
||||
/* Fast64 begin persistent block [includes] */
|
||||
/* Fast64 end persistent block [includes] */
|
||||
|
||||
#include "make_const_nonconst.h"
|
||||
#include "levels/ddd/header.h"
|
||||
|
||||
/* Fast64 begin persistent block [scripts] */
|
||||
/* Fast64 end persistent block [scripts] */
|
||||
|
||||
const LevelScript level_ddd_entry[] = {
|
||||
INIT_LEVEL(),
|
||||
LOAD_MIO0(0x7, _ddd_segment_7SegmentRomStart, _ddd_segment_7SegmentRomEnd),
|
||||
LOAD_MIO0(0xa, _water_skybox_mio0SegmentRomStart, _water_skybox_mio0SegmentRomEnd),
|
||||
ALLOC_LEVEL_POOL(),
|
||||
MARIO(MODEL_MARIO, 0x00000001, bhvMario),
|
||||
|
||||
/* Fast64 begin persistent block [level commands] */
|
||||
/* Fast64 end persistent block [level commands] */
|
||||
|
||||
AREA(1, ddd_area_1),
|
||||
WARP_NODE(0x0A, LEVEL_DDD, 0x01, 0x0A, WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(0xF3, LEVEL_CASTLE, 0x01, 0x20, WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(0xF0, LEVEL_CASTLE, 0x01, 0x26, WARP_NO_CHECKPOINT),
|
||||
WARP_NODE(0xF1, LEVEL_CASTLE, 0x01, 0x23, WARP_NO_CHECKPOINT),
|
||||
OBJECT(MODEL_NONE, 0, 0, -2700, 0, 0, 0, (0x02 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 0, 0, 2700, 0, -180, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -2700, 0, 0, 0, 90, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 2700, 0, 0, 0, -90, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 2000, 0, 2000, 0, -135, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -2000, 0, -2000, 0, 45, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -2000, 0, 2000, 0, 135, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 2000, 0, -2000, 0, -45, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 2500, 0, -1100, 0, -67, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -2500, 0, 1100, 0, 113, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -1100, 0, -2500, 0, 23, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 1100, 0, 2500, 0, -157, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 2500, 0, 1100, 0, -112, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -2500, 0, -1100, 0, 68, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -1100, 0, 2500, 0, 158, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, 1100, 0, -2500, 0, -22, 0, (0x01 << 24), id_bhvArenaSpawn),
|
||||
OBJECT(MODEL_NONE, -3900, 800, 0, 0, 90, 0, (0x01 << 24), id_bhvArenaFlag),
|
||||
OBJECT(MODEL_NONE, 3900, 800, 0, 0, -90, 0, (0x02 << 24), id_bhvArenaFlag),
|
||||
OBJECT(MODEL_NONE, 3675, 400, -1350, 0, -90, 0, (0x06 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 3675, 400, 1350, 0, -90, 0, (0x06 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, -3675, 400, -1350, 0, 90, 0, (0x06 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, -3675, 400, 1350, 0, 90, 0, (0x06 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 0, 400, 0, 0, 90, 0, (0x00 << 24), id_bhvArenaFlag),
|
||||
OBJECT(MODEL_NONE, -1700, 0, 0, 0, 90, 0, (0x02 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 1700, 0, 0, 0, -90, 0, (0x02 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 0, 0, -1700, 0, 0, 0, (0x03 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 0, 0, 1700, 0, -180, 0, (0x03 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 1300, 0, 1300, 0, -135, 0, (0x05 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, -1300, 0, -1300, 0, 45, 0, (0x05 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 1300, 0, -1300, 0, -45, 0, (0x04 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, -1300, 0, 1300, 0, 135, 0, (0x04 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 0, 600, 0, 0, 90, 0, (0x01 << 24), id_bhvArenaItem),
|
||||
OBJECT(MODEL_NONE, 3900, 586, 0, 0, -90, 0, 0x00000000, id_bhvArenaKoth),
|
||||
OBJECT(MODEL_NONE, -3900, 586, 0, 0, 90, 0, 0x00000000, id_bhvArenaKoth),
|
||||
OBJECT(MODEL_NONE, 0, 145, 0, 0, -90, 0, 0x00000000, id_bhvArenaKoth),
|
||||
OBJECT(MODEL_NONE, 0, 1596, 0, 0, 0, 0, (10 << 16), bhvAirborneWarp),
|
||||
TERRAIN(ddd_area_1_collision),
|
||||
MACRO_OBJECTS(ddd_area_1_macro_objs),
|
||||
SET_BACKGROUND_MUSIC(0x00, SEQ_LEVEL_UNDERGROUND),
|
||||
TERRAIN_TYPE(TERRAIN_GRASS),
|
||||
/* Fast64 begin persistent block [area commands] */
|
||||
/* Fast64 end persistent block [area commands] */
|
||||
END_AREA(),
|
||||
|
||||
FREE_LEVEL_POOL(),
|
||||
MARIO_POS(1, 0, 0, 0, 0),
|
||||
CALL(0, lvl_init_or_update),
|
||||
CALL_LOOP(1, lvl_init_or_update),
|
||||
CLEAR_LEVEL(),
|
||||
SLEEP_BEFORE_EXIT(1),
|
||||
EXIT(),
|
||||
};
|
||||
14
mods/arena/levels/ddd/texture_include.inc.c
Normal file
14
mods/arena/levels/ddd/texture_include.inc.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Gfx ddd_dl_big_bricks_blue_ci8_aligner[] = {gsSPEndDisplayList()};
|
||||
u8 ddd_dl_big_bricks_blue_ci8[] = {
|
||||
#include "levels/ddd/big_bricks_blue.ci8.inc.c"
|
||||
};
|
||||
|
||||
Gfx ddd_dl_tile_ci8_aligner[] = {gsSPEndDisplayList()};
|
||||
u8 ddd_dl_tile_ci8[] = {
|
||||
#include "levels/ddd/tile.ci8.inc.c"
|
||||
};
|
||||
|
||||
Gfx ddd_dl_dirt2_ci8_aligner[] = {gsSPEndDisplayList()};
|
||||
u8 ddd_dl_dirt2_ci8[] = {
|
||||
#include "levels/ddd/dirt2.ci8.inc.c"
|
||||
};
|
||||
BIN
mods/arena/levels/ddd/tile.ci8.png
Normal file
BIN
mods/arena/levels/ddd/tile.ci8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
Binary file not shown.
BIN
mods/arena/levels/level_ddd_entry.lvl
Normal file
BIN
mods/arena/levels/level_ddd_entry.lvl
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -28,12 +28,14 @@ gGameLevels = {
|
|||
{ level = LEVEL_CCM, name = 'Sky Beach' },
|
||||
{ level = LEVEL_WF, name = 'Pillars' },
|
||||
{ level = LEVEL_JRB, name = 'Forts' },
|
||||
{ level = LEVEL_DDD, name = 'Platforms' },
|
||||
}
|
||||
|
||||
smlua_text_utils_course_acts_replace(COURSE_BOB, " 1 Origin", "?", "?", "?", "?", "?", "?")
|
||||
smlua_text_utils_course_acts_replace(COURSE_CCM, " 4 Sky Beach", "?", "?", "?", "?", "?", "?")
|
||||
smlua_text_utils_course_acts_replace(COURSE_WF, " 2 Pillars", "?", "?", "?", "?", "?", "?")
|
||||
smlua_text_utils_course_acts_replace(COURSE_JRB, " 3 Forts", "?", "?", "?", "?", "?", "?")
|
||||
smlua_text_utils_course_acts_replace(COURSE_DDD, " 4 Platforms", "?", "?", "?", "?", "?", "?")
|
||||
|
||||
-- setup global sync table
|
||||
gGlobalSyncTable.gameState = GAME_STATE_ACTIVE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue