Compare commits

...

448 Commits

Author SHA1 Message Date
Arceveti
8ea979665c Make mario_blow_off_cap use Mario's hitbox height instead of checking for ACT_FLAG_SHORT_HITBOX again 2022-03-12 14:37:52 -08:00
Arceveti
81ae0e8b3a Some DEGREES macro usage in interaction.c 2022-03-12 14:33:01 -08:00
Arceveti
53f8f96b69 Add bhv_align_to_water 2022-03-12 14:25:13 -08:00
Arceveti
b30a3fe829 Add individual bparam macros for use in level scripts 2022-03-11 17:58:58 -08:00
Arceveti
a073005ee2 Add LOAD_MIO0_TEXTURE define 2022-03-11 17:36:59 -08:00
Arceveti
1ea16fb20e More animation ID enum usage 2022-03-11 17:14:02 -08:00
Arceveti
47285d1806 cur_obj_hide/cur_obj_unhide usage 2022-03-11 17:09:51 -08:00
Arceveti
41c25a63c7 Animation ID enum usage 2022-03-11 16:58:55 -08:00
Arceveti
d79ce5a6d4 Move some more variable assignments out of if statements 2022-03-11 16:32:47 -08:00
Arceveti
e63762d16f small shadow.c formatting fixes 2022-03-11 16:07:32 -08:00
Arceveti
19140bd181 Disable WALL_KICK_TOP_OF_WALLS by default 2022-03-11 15:33:26 -08:00
Arceveti
1197ece93b Move some variable assignments out of if statements 2022-03-11 15:32:35 -08:00
Arceveti
c719655874 Fix climbing down into ledge grab from an ungrabbable floor 2022-03-11 14:27:36 -08:00
Arceveti
2db4e3bbfd Fix LEDGE_GRABS_CHECK_SLOPE_ANGLE 2022-03-11 13:26:09 -08:00
Arceveti
2965c63b0f Add WALL_KICK_TOP_OF_WALLS config define 2022-03-11 13:24:47 -08:00
Arceveti
6d53c7c343 Fix cancelled ledge grabs preventing wall kicks 2022-03-10 16:41:14 -08:00
Arceveti
3ed35e7ee8 Fix false ledge grabs caused by walls above the grabbed floor 2022-03-10 16:38:40 -08:00
Arceveti
21338a2f19 Fix ledge grab wall angle check 2022-03-10 16:38:14 -08:00
Arceveti
cbd714bef5 remove duplicate define for slow ledge grab action 2022-03-09 12:49:40 -08:00
Arceveti
229a185f46 convert more VERSION_EU ifdefs to MULTILANG 2022-03-08 13:40:25 -08:00
Arceveti
959bd977fa Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-03-08 12:49:40 -08:00
Arceveti
82b69cb0b0 Use (MARIO_HITBOX_HEIGHT / 2) in water_ring_calc_mario_dist 2022-03-08 12:47:50 -08:00
Arceveti
5e707ca2b9 Clean up some object_constants.h enums 2022-03-05 14:16:17 -08:00
Arceveti
ccbba15c37 Fix whitespace in create_gfx_task_structure 2022-03-05 13:46:40 -08:00
Arceveti
2e2fed1d9b Tiny puppylights formatting fix in unload_deactivated_objects_in_list 2022-03-05 13:44:47 -08:00
Arceveti
6ee89498a1 Fix bowser sky flames bhv names 2022-02-27 01:08:23 -08:00
Arceveti
c2b1bd1530 Remove duplicate goddard matrix struct 2022-02-26 20:52:32 -08:00
Arceveti
5a5dea44b7 Fix start button resetting game on debug level select 2022-02-26 20:33:15 -08:00
Arceveti
1b72541016 Fix env maps with FIX_REFLECT_MTX disabled 2022-02-25 18:54:59 -08:00
Arceveti
b36651ce79 Rename MARIO_EYE_LEVEL to MARIO_EYE_HEIGHT 2022-02-25 17:24:07 -08:00
Arceveti
01b7926661 Add STATIC_LIGHTS config define 2022-02-25 17:23:28 -08:00
Arceveti
e390a644d5 Add G_CC_ENVIRONMENT 2022-02-25 17:19:49 -08:00
Arceveti
1f75635a8c remove gotos in puppylights.c 2022-02-25 17:00:44 -08:00
Arceveti
3ae4c02054 puppylights formatting consistency 2022-02-25 16:53:13 -08:00
Arceveti
5067aba0eb move evaluate_cubic_spline to math_util 2022-02-25 15:58:27 -08:00
Arceveti
6f7fd90c0a camera enum usage 2022-02-25 15:23:38 -08:00
Arceveti
de0e252477 Fix camera collision & obstruction checks 2022-02-25 14:50:27 -08:00
Arceveti
bc536a7732 ENABLE_VANILLA_CAM_PROCESSING ifdefs 2022-02-25 13:12:38 -08:00
Arceveti
31ea31ec02 Add MAX_COLLISION_RADIUS 2022-02-25 12:42:59 -08:00
Arceveti
a06297b69f Clean up in update_parallel_tracking_camera 2022-02-25 12:32:53 -08:00
Arceveti
ee5b7a791d remove redundant breaks 2022-02-25 12:00:53 -08:00
Arceveti
c67bd7c9c1 Find a new floor when grabbing a pole instead of using a potentially null existing floor 2022-02-25 11:49:19 -08:00
Arceveti
b62a27d4d2 Improve GROUND_POUND_DIVE and GROUND_POUND_DIVE_CHANGES_DIRECTION 2022-02-25 11:40:12 -08:00
Arceveti
785ecdaf25 whitespace consistency fix 2022-02-24 19:49:48 -08:00
Arceveti
9338fa1c5c G_RM_CLD_SURF in dl_transition_color and render_textured_transition 2022-02-24 19:01:59 -08:00
Arceveti
ffe6c177b6 Remove or mark some unused goddard stuff 2022-02-21 19:33:58 -08:00
Arceveti
1509cf4cb5 Improve pole fix comments 2022-02-21 18:58:29 -08:00
Arceveti
58cfa854e9 Add GROUND_POUND_DIVE_CHANGES_DIRECTION 2022-02-21 16:35:54 -08:00
Arceveti
024ac871b3 Fix pole fix issue causing clipping into the floor & upwarp when grabbing pole bottoms + fix potential pole related crash 2022-02-21 16:31:04 -08:00
Arceveti
012602853e min/max func whitespace fix 2022-02-21 16:11:56 -08:00
Arceveti
fe582afb9e Further SHINDOU_POLES ifdef cleanup 2022-02-21 15:39:35 -08:00
Arceveti
e7e49ede62 OBJ_MOVE_NONE usage 2022-02-21 15:31:02 -08:00
Arceveti
ca59680cd0 Remove some extra parentheses in behavior_data.c 2022-02-21 15:23:49 -08:00
Arceveti
2c956657bb velConv variable no longer needed 2022-02-21 15:05:26 -08:00
Arceveti
d4bd046367 Clean up SHINDOU_POLES define/ifdefs 2022-02-21 14:58:16 -08:00
Arceveti
76a499a5e4 fix whitespace inconsistency in interaction.c 2022-02-21 14:49:51 -08:00
Arceveti
ed1d6cc0e3 Add enum for play_climbing_sounds direction arg 2022-02-21 14:47:40 -08:00
Arceveti
f64b523368 Add GROUND_POUND_DIVE 2022-02-21 14:35:09 -08:00
Arceveti
53967e17d7 Make analog_stick_held_back a function and move it to mario.c 2022-02-21 14:34:52 -08:00
Arceveti
03bafbcac0 Add matrix stack fix credit to readme 2022-02-21 14:05:09 -08:00
Arceveti
c1448eb207 Clean up spawn_macro_objects 2022-02-19 16:56:08 -08:00
Arceveti
9511281ee9 Add SpecialPresetTypes enum 2022-02-19 16:08:53 -08:00
Arceveti
9822c04cd0 Free up object field 0x4B for object-specific use 2022-02-19 16:00:53 -08:00
Arceveti
557c420569 re-implement levels with rooms check fix 2022-02-19 15:48:43 -08:00
Arceveti
1aaaae4760 bhv_init_room for bhvBbhTumblingBridge, bhvExclamationBox, bhvMessagePanel 2022-02-19 15:46:57 -08:00
Arceveti
39798a1b6d Add bhv_init_room to bhvMips 2022-02-19 15:32:43 -08:00
Arceveti
886e364068 Fix star doors rendering even when Mario isn't in the same room 2022-02-19 15:30:49 -08:00
Arceveti
f57ec7c73e Remove outdated undefs 2022-02-19 15:16:14 -08:00
Arceveti
e4e78e0060 Fix gd_ptint_ prefixes in gd_math + some gd_math optimization/cleanup 2022-02-19 15:15:27 -08:00
Arceveti
576ec410e0 remove dead code from setup_lights 2022-02-19 15:14:49 -08:00
Arceveti
e38d14820e Goddard flag enums + name some unknowns + remove fillers + some cleanup 2022-02-19 14:20:33 -08:00
Arceveti
f6421d82f9 Fix print_mapinfo and debug.c boolean increments 2022-02-19 11:12:50 -08:00
Arceveti
eac14b09e6 Remove some extra/duplicate newlines 2022-02-18 15:26:39 -08:00
Arceveti
5f73f53c43 Use G_RM_CLD_SURF for full screen transparency & dialog boxes 2022-02-18 15:06:27 -08:00
Arceveti
1af1b3937d More puppycam formatting 2022-02-18 14:55:06 -08:00
Arceveti
ed2890336c Add MARIO_EYE_LEVEL define 2022-02-18 12:14:03 -08:00
Arceveti
cbca469660 obj_has_behavior usage 2022-02-18 11:50:19 -08:00
Arceveti
be6d76dc70 cutscene_spawn_obj enum usage 2022-02-18 11:34:34 -08:00
Arceveti
9cba034725 Remove unused comment & check in camera.c + fix cutscene_door_loop check 2022-02-18 11:29:28 -08:00
Arceveti
50c0bf8db8 Update comment in obj_is_in_view 2022-02-18 11:28:39 -08:00
Arceveti
cb40d9b938 Convert floats to ints in config files + add some vanilla values in comments 2022-02-18 11:27:47 -08:00
Arceveti
a02607e03b Change instances of 0.0f - x to -x 2022-02-17 17:19:00 -08:00
Arceveti
78b90f20db use RGBA32 component macros in debug_box.c env color 2022-02-17 17:17:32 -08:00
Arceveti
5d1c583f8e fix goddard routine names array bounds check in imin() 2022-02-17 17:12:47 -08:00
Arceveti
455f09031f wiggler.inc.c ineq swap 2022-02-17 17:11:41 -08:00
Arceveti
3c4994fe56 Remove outdated comment 2022-02-17 17:11:27 -08:00
Arceveti
68ae7e8602 Fix wrong texture usage in goddard/renderer.c 2022-02-17 17:10:54 -08:00
Arceveti
bd423778dc Merge branch 'develop/2.1.0-matrix-stack-change' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-17 00:24:18 -08:00
Mr-Wiseguy
d09bb4ef25 Removed unnecessary matrix multiplications in geo_process_object 2022-02-16 23:46:29 -05:00
Mr-Wiseguy
2c5bf00235 Removed some accidentally added files 2022-02-16 23:46:29 -05:00
Arceveti
ad9a44e033 Fix debug level select happening if L is pressed any time on mario head screen 2022-02-16 15:17:03 -08:00
Arceveti
5a6929f4b4 Convert some object_constants.h define lists to enums (part 4) 2022-02-16 15:12:42 -08:00
Arceveti
2d71eab68e Convert some object_constants.h define lists to enums (part 3) 2022-02-16 14:37:27 -08:00
Arceveti
1b1662587f Convert some object_constants.h define lists to enums (part 2) 2022-02-16 13:49:30 -08:00
Arceveti
d6cbfe3641 Convert some object_constants.h define lists to enums 2022-02-16 13:10:13 -08:00
Arceveti
5ba722e4af obj_mark_for_deletion usage 2022-02-16 12:16:32 -08:00
Arceveti
ca2a34cd43 Remove painting floor check macros 2022-02-16 12:12:15 -08:00
Arceveti
5ca6de67cd More camera.c formatting 2022-02-16 12:08:43 -08:00
Arceveti
5eeec0e6a3 Fix inconsistent newline formatting 2022-02-16 11:23:38 -08:00
Arceveti
d8381d44bd Wiseguy's geo_process_object matrix optimization 2022-02-16 11:14:43 -08:00
Arceveti
f4a69f3d4a Remove 'construct_float' from 'geo_process_level_of_detail' 2022-02-15 22:40:27 -08:00
Arceveti
bf87eee49a Merge branch 'develop/2.1.0-matrix-stack-change' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-15 21:53:27 -08:00
Arceveti
aeaca2a880 Fix geo_process_level_of_detail 2022-02-15 21:45:12 -08:00
Arceveti
647599eb1d Fix goddard crash 2022-02-15 21:45:06 -08:00
Arceveti
c3c97cacf6 Merge 'develop/2.1.0-matrix-stack-change' into 'develop/arceveti/general_2' 2022-02-15 21:43:16 -08:00
Mr-Wiseguy
ce31dd4586 Restored vanilla light and env map directions under new matrix stack 2022-02-15 19:44:29 -05:00
Mr-Wiseguy
58d2d3c20f Fixed some areas where the game was previously extracting the camera matrix from various matrices 2022-02-14 22:18:00 -05:00
Arceveti
3f4166830e Optimize out some vec3f_copy's from mtxf_align_terrain_normal 2022-02-14 18:48:52 -08:00
Mr-Wiseguy
f90ad6d2a8 Fixed shadows with new matrix stack 2022-02-14 21:21:51 -05:00
Mr-Wiseguy
ec21aa7e74 Fixed billboarding with new matrix stack 2022-02-14 21:17:24 -05:00
Mr-Wiseguy
11b3bff9f0 Corrected cameraToObject for the new matrix stack (fixes culling and sound) 2022-02-14 19:14:03 -05:00
Mr-Wiseguy
cc7165c1ea Moved camera matrix into projection stack 2022-02-14 18:15:37 -05:00
Arceveti
e7a1796a36 Remove outdated comment 2022-02-14 14:57:01 -08:00
Arceveti
49d2da4572 Merge branch 'develop/2.0.2-puppycam-menu-data' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-14 14:48:42 -08:00
Arceveti
f34b9144ea Merge branch 'develop/2.0.2-fix-audio-flags' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-14 14:47:47 -08:00
Mr-Wiseguy
9b0b1312fd Wrote function for setting up global light direction in the frame 2022-02-14 17:42:18 -05:00
Arceveti
7bf3e30d7d puppycam formatting + optimization + cleanup 2022-02-14 14:42:12 -08:00
Mr-Wiseguy
9ed1f1a569 Added define guards for the profiler 2022-02-14 17:41:05 -05:00
Mr-Wiseguy
aa04129fd2 Ran script to convert all light commands to lightcolor commands 2022-02-14 17:01:42 -05:00
Mr-Wiseguy
9c645dc642 Changed lingering manual light struct definitions to gdSPDefLights1, made a dummy light for Koopa's pink shorts 2022-02-14 16:56:51 -05:00
Arceveti
245def9efb camera.c formatting 2022-02-14 13:27:29 -08:00
Arceveti
92f5fc4a00 remove construct_float from degrees/radians/angles conversion macros 2022-02-14 11:53:20 -08:00
Arceveti
dd3dea4be4 fix CameraTrigger whitespace formatting 2022-02-14 11:33:11 -08:00
Arceveti
12222ab07a Fix rotate_camera_around_walls 2022-02-14 11:08:49 -08:00
Arceveti
75694a92c2 Merge branch 'comment-issue' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-14 10:41:12 -08:00
Arceveti
48d26e65c3 Remove redundant 'gMarioPlatform' pointer 2022-02-13 21:35:01 -08:00
Arceveti
3a820aaa67 Allow for use of controller ports 3 and 4 2022-02-13 19:00:28 -08:00
Arceveti
a02689fcc2 Fix objects' graphical position being at 0,0,0 for 1 frame after being spawned 2022-02-13 17:13:12 -08:00
Arceveti
52b4a4db6c use vanilla decomp formatting for setting Mario's gfx angle 2022-02-13 16:47:40 -08:00
Arceveti
1353f96c39 small formatting fix in bhv_controllable_platform_loop 2022-02-13 16:34:14 -08:00
Arceveti
f9c10f143a Fix duplicate define in level_script.c 2022-02-13 16:22:25 -08:00
Arceveti
214701b8a5 Remove some unused args from object_list_processor functions 2022-02-13 16:12:31 -08:00
Arceveti
6ed276db5a Split find_water_floor_from_list into find_water_bottom_from_list and find_water_top_from_list to allow for checking for dynamic water surfaces. 2022-02-13 10:50:08 -08:00
someone2639
614077ce55 Fix some bad comment descriptions in math_util 2022-02-11 20:47:51 -05:00
Arceveti
4891ea0cc2 Rename 'SURFACE_NEW_WATER' to 'SURFACE_NEW_WATER_TOP' with backwards compatibility 2022-02-10 18:02:18 -08:00
Arceveti
898238c512 some shadow.c optimization 2022-02-10 18:00:43 -08:00
Arceveti
3792407c51 print.c formatting 2022-02-09 17:13:58 -08:00
Arceveti
ebf1379e66 surface_collisions optimization + formatting 2022-02-09 15:47:03 -08:00
Arceveti
8b14a8a591 object_list_processor optimization + formatting 2022-02-09 13:37:09 -08:00
Arceveti
ab5bf1ef7c screen_transition optimization + formatting 2022-02-09 12:20:09 -08:00
Arceveti
4a061bb2d2 Make 'vec3_normalize_max' macro into a function 'vec3f_normalize_max' 2022-02-09 12:07:26 -08:00
Arceveti
f89f6936d3 Rename 'MODEL_STATE_OPACITY_MASK' to 'MODEL_STATE_NOISE_OPACITY_MASK' 2022-02-09 11:56:38 -08:00
Arceveti
7b8db75574 Add LOAD_OBJECT_COLLISION_NEAR_CAMERA 2022-02-09 11:46:09 -08:00
Arceveti
45b8e8b8ec Remove extra header include in math_util 2022-02-09 11:13:28 -08:00
Arceveti
b2b95db05d construct_float usage 2022-02-08 22:15:29 -08:00
Arceveti
d36223b44c remove unused variable from geo_process_z_offset 2022-02-08 21:09:52 -08:00
Arceveti
becff41f4a Add mtx_get_float and mtx_set_float 2022-02-08 21:09:03 -08:00
Arceveti
fe18510469 Fix geo_process_z_offset 2022-02-08 20:08:07 -08:00
Arceveti
8d050c20e3 Add GRAPH_RENDER_NONE 2022-02-08 18:05:54 -08:00
Arceveti
c87feb7e66 Initialize graphNode->drawingLayer in init_scene_graph_node_links 2022-02-08 18:05:27 -08:00
Arceveti
d51708e026 Split GraphNode drawingLayer from flags 2022-02-08 17:37:05 -08:00
Arceveti
f37e3db39c Make some obj_behaviors.c functions s32 2022-02-08 16:54:35 -08:00
Arceveti
3dd8cc0bd5 envfx optimization + name unknowns + formatting 2022-02-08 16:49:17 -08:00
Arceveti
21295f098f struct SurfaceNode offsets 2022-02-08 16:39:24 -08:00
Arceveti
ead83dc99e Fix spelling typo in NUM_CELLS comment 2022-02-08 14:14:50 -08:00
Arceveti
722e093c3e Some typedef usage & BIT macro usage 2022-02-08 14:12:20 -08:00
Arceveti
91bd33aa82 Move precomputed cosine degrees defines to math_util.h 2022-02-08 13:51:59 -08:00
Arceveti
6e4f9ea607 Add SET_LOW_U16_OF_32 & SET_LOW_S16_OF_32 2022-02-08 13:48:09 -08:00
Arceveti
2c95237e5d sm64.h enum cleanup & documentation 2022-02-08 13:37:19 -08:00
Arceveti
a9ff09ad63 Make sm64.h action defines use act flag enums 2022-02-08 11:59:10 -08:00
Arceveti
c683028d23 optimize numWalls position in struct WallCollisionData 2022-02-07 21:10:20 -08:00
Arceveti
1026c3e29b Slight OBJECTS_REJ optimization in geo_process_master_list_sub 2022-02-06 14:40:35 -08:00
Arceveti
5fefdcfdae Fix silhouette occlude layers being rendered twice when OBJECTS_REJ is disabled + make LAYER_ALPHA_DECAL available regardless of silhouette 2022-02-06 14:23:13 -08:00
Arceveti
41e75466b4 Move the newer inline asm functions to math_util.h 2022-02-06 13:01:55 -08:00
Arceveti
5d3ea0f0d8 Bool32 typedef usage for math_util appriach bool functions 2022-02-06 12:36:11 -08:00
Arceveti
5dd0419811 eval_script_op enum usage + formatting 2022-02-06 12:30:34 -08:00
Arceveti
6145cffffd Add BHV_CMD_GET macros for missing types 2022-02-06 12:27:17 -08:00
Arceveti
02b1ad81a3 Prevent entering debug free move when crouching 2022-02-06 12:18:18 -08:00
Arceveti
06e322c47d Add comment for RenderPhases enum 2022-02-06 12:13:33 -08:00
Arceveti
667c87588b Add mention of draw order changes to OBJECTS_REJ and SILHOUETTE comments in config_graphics.h 2022-02-06 12:01:20 -08:00
Arceveti
2ecaed00d3 Update geo_process_master_list_sub description comment + fix some formatting 2022-02-06 11:58:31 -08:00
Arceveti
a352b47e45 Add cur_obj_set_collision_data 2022-02-06 11:55:55 -08:00
Arceveti
2cd7f0b59d Re-add comment about clip ratio in init_rsp 2022-02-06 11:55:43 -08:00
Arceveti
5ba031420a Add find_surface_on_ray_between_points 2022-02-05 16:36:16 -08:00
Arceveti
c87898526a Make 'SURFACE_YAW' a function and rename it to 'get_surface_yaw' 2022-02-05 16:27:47 -08:00
Arceveti
35ccebb1be Make 'get_surface_height_at_location' a function and rename it to 'get_surface_height_at_pos' 2022-02-05 16:18:16 -08:00
Arceveti
05690d229c mario.c enums & formatting consistency 2022-02-05 16:06:01 -08:00
Arceveti
3ac4575791 Add unsigned typedef names + fix whitespace in types.h 2022-02-05 15:54:05 -08:00
Arceveti
bbd4d2faf0 Movtex typedef usage 2022-02-04 15:29:15 -08:00
Arceveti
e4fa9b47f4 Fix yoshi waiting for 100 lives when DISABLE_LIVES is enabled 2022-02-02 16:11:17 -08:00
Arceveti
74a873d2d5 Add config for cap timers 2022-02-02 16:05:41 -08:00
Arceveti
057d981456 Guard set_mario_initial_cap_powerup by ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS 2022-02-02 15:54:29 -08:00
Arceveti
b3e4d14c22 Make sCapFlickerFrames static const 2022-02-02 15:52:51 -08:00
Arceveti
4e4ca992a3 Improve switch order in geo_call_global_function_nodes_helper 2022-02-02 15:08:04 -08:00
Arceveti
cc7d93c544 Add GeoProcessJumpTable 2022-02-02 14:57:16 -08:00
Arceveti
06e6382d4c Clean up painting_generate_mesh a bit + fix commnets formatting 2022-02-02 14:31:05 -08:00
Arceveti
8b12260c40 Fix pitch/yaw absi in next_lakitu_state 2022-02-02 14:24:18 -08:00
Arceveti
dc22db2821 Bool32 for vec3f_compare functions 2022-02-02 14:23:00 -08:00
Arceveti
9561c3af7f Consolidate code for duplicate camera.c and math_util functions 2022-02-02 14:20:57 -08:00
Arceveti
88912eae39 Optimize turn_obj_away_from_surface & current_mario_room_check + move absf_2 backwards compatibility define to math_util.h 2022-02-02 13:09:59 -08:00
Arceveti
b77d7c96dd Fix trig derivatives in update_sliding 2022-02-02 13:07:29 -08:00
Arceveti
2618b51b6b Fix ceil margin check 2022-02-02 12:17:37 -08:00
Arceveti
d656ccbd0a Consolidate camera.c fov functions 2022-02-02 12:08:38 -08:00
Arceveti
c5b9838b76 Add GODDARD_DEBUG_PRINTF config define 2022-02-02 11:26:55 -08:00
Arceveti
7d2ec97d78 Remove prevent_bss_reordering.h includes 2022-02-02 10:59:01 -08:00
Arceveti
94b770b25b player2_rotate_cam CLAMP macro usage 2022-02-02 10:56:36 -08:00
Arceveti
cba5fcd222 Clean up a few ifdefs and fix bug comments 2022-02-02 10:54:41 -08:00
Arceveti
aa862c2f60 main.c spTask names in switch + small whitespace fix 2022-02-02 10:30:48 -08:00
Arceveti
fb67f18ead Add BackgroundNoiseOp enum 2022-02-02 10:23:19 -08:00
Arceveti
e17367f76e Add TIME_STOP_FLAGS_NONE 2022-02-01 23:36:12 -08:00
Arceveti
a3bf74b77c CutsceneSplinePoint whitespace alignment 2022-02-01 23:34:30 -08:00
Arceveti
7ae988b09c Make camera.c functions 32 bit + fix else in cutscene_enter_painting 2022-02-01 23:09:00 -08:00
Arceveti
b7d6e1a56c Fix TTM painting crash when moving the camera immediately after entering 2022-02-01 23:04:40 -08:00
Arceveti
6200fba277 Slight painting_generate_mesh optimization 2022-02-01 22:50:13 -08:00
Arceveti
94a5a429f8 Fix Goddard Z press crash by stubbing gd_printf by default 2022-02-01 22:11:02 -08:00
Arceveti
7632aba660 remove stubbed functions from goddard/renderer.c 2022-02-01 22:07:30 -08:00
Arceveti
33b4465882 add newline at the end of osSyncPrintf in append_puppyprint_log 2022-02-01 22:02:08 -08:00
Arceveti
0d2940f912 Clarify crash handler ifdef 2022-02-01 21:53:59 -08:00
Arceveti
0bce883c16 Fix TTC clock mechanics with new paintings 2022-02-01 20:05:10 -08:00
Arceveti
ef305eea7f Fix copy paste error in generate_yellow_sparkles 2022-01-31 20:29:05 -08:00
Arceveti
2b9a928f90 Remove some small stuff that was just needed for matching vanilla 2022-01-31 20:24:59 -08:00
Arceveti
2d03572d3c Remove goddard UB ifdefs 2022-01-31 20:12:42 -08:00
Arceveti
719ba375be intro geo formatting 2022-01-31 20:03:15 -08:00
Arceveti
ed0016c7f4 Enable KEEP_MARIO_HEAD by default 2022-01-31 19:08:12 -08:00
Arceveti
f43c5c4e03 Clarify comment in bhv_painting_init 2022-01-31 19:07:54 -08:00
Arceveti
cd793de09b Whitespace fix in object_fields.h 2022-01-31 18:42:20 -08:00
Arceveti
1329a45f51 Rename 'hitboxView' to 'gVisualHitboxView' and 'surfaceView' to 'gVisualSurfaceView' 2022-01-31 17:50:03 -08:00
Arceveti
9a561df389 Add enum for gVisualDebugViewCycle 2022-01-31 17:43:16 -08:00
Arceveti
2dd3808f71 Rename 'viewCycle' to 'gVisualDebugViewCycle' 2022-01-31 17:35:32 -08:00
Arceveti
3faba2722c make star_dance_bound_yaw use inline abss function 2022-01-31 17:15:16 -08:00
Arceveti
68c8aeb3d6 Add asm inline ceilf & floorf 2022-01-31 16:53:15 -08:00
Arceveti
49ab98b789 Make find_floor_slope s32 2022-01-31 16:02:10 -08:00
Arceveti
d4b9b708b8 Update RAYCAST_WALL_COLLISION comment 2022-01-31 16:01:30 -08:00
Arceveti
3db0f4c2ca Add PITCHED_LONG_JUMPS 2022-01-31 15:58:42 -08:00
Arceveti
50399aedc9 Reduce code repetition in find_surface_on_ray_cell 2022-01-31 13:42:00 -08:00
Arceveti
f447173abe Improve RaycastFlags enum 2022-01-31 13:16:49 -08:00
Arceveti
3ebce8e203 Slight raycast_collision_walls optimization 2022-01-31 12:58:28 -08:00
Arceveti
3a2ac42e9a fix arg name order for raycast_collision_walls in surface_collision.h 2022-01-31 12:54:16 -08:00
Arceveti
56138ddc9a Add RAYCAST_WALL_COLLISION 2022-01-29 21:20:03 -08:00
Arceveti
37557a18af Add various defines for mario collision constants 2022-01-29 20:49:34 -08:00
Arceveti
0abc97c092 Tiny formatting fix 2022-01-29 20:38:55 -08:00
Arceveti
56e0a64856 Convert some longs to floats 2022-01-29 20:25:52 -08:00
Arceveti
30505ce50b Update readme + add/fix Kaze credit 2022-01-29 14:23:29 -08:00
Arceveti
fa5ded2347 Make get_cell_coord a function + add Kaze's cell buffer fix 2022-01-29 14:22:04 -08:00
Arceveti
c95a55b21b Improve note in silhouette comment 2022-01-28 19:06:17 -08:00
Arceveti
636e127c5e Improve DISABLE_AA define in n64 gbi.h 2022-01-28 17:00:59 -08:00
Arceveti
7614f0bdef remove unused nop geo commands 2022-01-28 15:45:35 -08:00
Arceveti
fc809909bf Combine translation & rotation nodes, & fix graph node comments 2022-01-28 15:42:35 -08:00
Arceveti
62e2fb2f9e local pointer to MarioState struct in execute_mario_action, init_mario, and init_mario_from_save_file 2022-01-28 14:13:22 -08:00
Arceveti
ee31423400 degrees_to_angle & angle_to_degrees usage 2022-01-28 13:46:45 -08:00
Arceveti
7eac14fcd7 Merge branch 'develop/2.0.2/puppyprint_env_color' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-28 13:04:57 -08:00
Arceveti
1bdc3f8e04 Fix build 2022-01-28 13:04:24 -08:00
Arceveti
b811bad9f1 Remove extra env reset 2022-01-28 12:46:08 -08:00
Arceveti
20e380f0be Merge branch 'develop/2.0.2/puppyprint_env_color' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-28 12:41:06 -08:00
Arceveti
bb03fe5bc2 Reset env color in render_game instead 2022-01-28 12:38:31 -08:00
Arceveti
9c2a721578 Merge branch 'develop/2.0.2/puppyprint_env_color' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-27 21:37:45 -08:00
Arceveti
0cfe36c8c0 Fix puppyprint env color not being reset properly 2022-01-27 21:36:43 -08:00
Arceveti
30df6e9ce8 Fix puppyprint env color not being reset properly 2022-01-27 21:28:21 -08:00
Arceveti
53ae9472cf Extended Bounds config refactor 2022-01-27 21:25:50 -08:00
Arceveti
e774e92287 Split 'ALLOW_OOB' into 'ALLOW_NULL_FLOORS' and 'ALLOW_OUTSIDE_LEVEL_BOUNDS' 2022-01-27 14:50:41 -08:00
Arceveti
8d62b5a17b Add menu_mtx_push_op 2022-01-27 12:45:01 -08:00
Arceveti
ac6f6d4e75 Change default extended bounds mode to 0 2022-01-27 12:44:04 -08:00
Arceveti
b0523a1ee1 Remove unused SIL_CVG_THRESHOLD define 2022-01-27 12:43:30 -08:00
Arceveti
980ca7dd1c Merge branch 'develop/2.0.2/fix_fix_water_rings' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-26 18:26:13 -08:00
Arceveti
ade548bfea Fix build error when FIX_WATER_RINGS is disabled 2022-01-26 18:22:16 -08:00
Arceveti
85a4f94fa9 geo_commands & geo_layout enums 2022-01-26 18:01:16 -08:00
Arceveti
cb1a987afa Make 'inc_mat_stack' and 'append_dl_and_return' nonstatic + add 'get_curr_anim_info' + rendering_graph_node.c formatting fixes 2022-01-26 17:28:03 -08:00
Arceveti
93d2bf38c9 Fix build warning in func_8018100C 2022-01-26 15:48:27 -08:00
Arceveti
7e3b54a315 Bowser sub action documentation 2022-01-26 15:34:51 -08:00
Arceveti
96e7d6a010 bowser.inc.c obj_become_tangible/intangible usage 2022-01-26 15:26:40 -08:00
Arceveti
b4759e70bf mario.c absf usage + small refactoring 2022-01-26 15:25:41 -08:00
Arceveti
8dd24bc83c Remove unused ukiki function and bowser beta leftover 2022-01-26 15:21:30 -08:00
Arceveti
d1d5971724 Bowser & Boo 'INTERACT_NONE' usage 2022-01-26 15:13:26 -08:00
Arceveti
3b95c16362 Improve PunchStateTypes enum 2022-01-26 15:12:24 -08:00
Arceveti
5eccc917e9 Use inline abs functions in camera.c, puppycam2.c, and puppylights.c 2022-01-26 13:52:11 -08:00
Arceveti
1bfd44f2aa Improve inline abs functions & add description for FLT_IS_NONZERO 2022-01-26 13:51:34 -08:00
Arceveti
dc4a0b9151 Improve crash screen scrolling 2022-01-25 01:57:36 -08:00
Arceveti
7cee4ef9fe A few formatting fixes in surface_load.c 2022-01-24 20:29:35 -08:00
Arceveti
53437e41a2 Fix Bully NaN crash 2022-01-24 17:17:07 -08:00
Arceveti
235df32ab9 Use sMarioGeometry.waterHeight in calc_y_to_curr_floor 2022-01-24 17:09:49 -08:00
Arceveti
72bda3a422 Replace doubles with floats 2022-01-24 15:51:05 -08:00
Arceveti
3188001c57 Make donut platforms into individual objects instead of one level-specific spawner with hardcoded positions 2022-01-24 14:55:54 -08:00
Arceveti
0bd2f8cf97 Small formatting fixes in some behavior files 2022-01-24 13:19:40 -08:00
Arceveti
a535dab966 Reimplement 'FIX_WATER_RINGS' 2022-01-24 11:22:33 -08:00
Arceveti
e5f2c7d119 Reimplement FIX_WATER_RINGS 2022-01-24 11:18:01 -08:00
Arceveti
e5f670cafa Fix rectangle 2022-01-24 11:04:13 -08:00
Arceveti
a08258da0a Add warning for console crash when moving 65536 units away wien ALLOW_OOB is enabled 2022-01-23 21:48:20 -08:00
Arceveti
0876eb4eee Add HOLP_HEIGHT_FIX 2022-01-23 19:20:13 -08:00
Arceveti
3a485b2a9b MARIO_COLLISION_RADIUS usage + some formatting fixes 2022-01-23 19:12:12 -08:00
Arceveti
01a6f0c049 Fix breath meter showing up in cannon hud 2022-01-23 18:35:22 -08:00
Arceveti
b46b607c91 Replace most instances of gDisplayListHead++ with a local pointer 2022-01-23 18:34:11 -08:00
Arceveti
9307177bc2 Fix build warnings with UNF ?= 1 2022-01-23 18:29:41 -08:00
Arceveti
b4f7b61417 Merge branch 'develop/2.0.2/fix_objects_rej' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-23 17:23:52 -08:00
Arceveti
47623a4297 Actually fix Mario rendering 2022-01-23 17:23:19 -08:00
Arceveti
ada64ae461 Merge branch 'develop/2.0.2/fix_objects_rej' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-23 15:33:52 -08:00
Arceveti
0d4c100e3e Fix Mario rendering 2022-01-23 15:33:03 -08:00
Arceveti
0587fa2a1d Merge branch 'develop/2.0.2/fix_objects_rej' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-23 13:54:31 -08:00
Arceveti
7714accddd Fix OBJECTS_REJ build error & warning 2022-01-23 13:45:38 -08:00
Arceveti
59bfc5b19e Clean up & document ledge grab code a bit 2022-01-22 22:04:11 -08:00
Arceveti
5c382600c3 Merge branch 'develop/2.1.0-shear-shadows' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-22 19:22:29 -08:00
Arceveti
0796286581 Merge branch 'develop/2.1.0-shear-shadows' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-22 19:20:10 -08:00
Mr-Wiseguy
e113978834 Fixed typo in config_graphics.h 2022-01-22 22:19:40 -05:00
Mr-Wiseguy
37632f3954 Implemented shear shadows and slightly faster mtxf_to_mtx function 2022-01-22 22:13:12 -05:00
Arceveti
94ef672ec5 Fix crash screen framebuffer on console 2022-01-22 19:12:32 -08:00
Arceveti
cdb35e9fd0 Remove commented code 2022-01-22 18:54:12 -08:00
Arceveti
898a293d30 Revert FLT_IS_NONZERO 2022-01-22 18:53:51 -08:00
Arceveti
dd9d14febe SURFACE_YAW usage 2022-01-22 15:35:15 -08:00
Arceveti
69cf9986ca Enable BREATH_METER, HANDS_FREE_HOLDING_FIX, LEDGE_GRABS_CHECK_SLOPE_ANGLE, BLUE_COIN_SWITCH_RETRY, TINY_GOOMBA_ALWAYS_DROPS_COIN, MR_I_PITCH_SHOOTING 2022-01-22 14:20:25 -08:00
Arceveti
ddcd9bcd22 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-22 14:09:35 -08:00
Reonu
ad91c636ad Update name of lighting engine branch in readme
sorry for pushing to master :(((((((((((((
2022-01-22 11:11:51 +02:00
Arceveti
59bd837ad1 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-21 20:53:41 -08:00
Arceveti
30ccf3b862 Merge branch 'develop/arceveti/crash_screen' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-21 19:03:38 -08:00
Arceveti
50cff1a700 More colors 2022-01-21 19:02:10 -08:00
Arceveti
2f539f8f74 insn_disasm syntax highlighting 2022-01-21 18:37:37 -08:00
Arceveti
64f6eab135 Change crash screen colors to use in-string hex codes 2022-01-21 18:12:55 -08:00
Arceveti
33250f39b5 Crash screen ascii support, colored font, better controls, framebuffer fix, stacktrace scrolling, togglable crash sound, and more 2022-01-21 18:10:12 -08:00
Arceveti
4225dc822e Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-20 20:01:03 -08:00
Arceveti
b066b22152 paintings.c formatting fixes 2022-01-20 19:53:40 -08:00
Arceveti
38c34f6c32 Remove unused enums 2022-01-20 19:37:26 -08:00
Arceveti
d40af9bdaf Remove unused gDddPaintingStatus 2022-01-20 19:19:14 -08:00
Arceveti
5789c2a4ab Replace 'gEnteredPaintingId' with 'gEnteredPainting' pointer 2022-01-20 19:15:02 -08:00
Arceveti
67d24758d6 Add 'obj_nearest_object_with_behavior_and_condition' and fix painting entrance cutscene with overlapping paintings 2022-01-20 19:04:43 -08:00
Arceveti
b85b3186fb Re-implement RR warp via invisible painting + convert painting struct members to object fields + fix issues with paintings near each other + fix painting eject sound + fix painting entrance & exit cutscenes 2022-01-20 18:28:05 -08:00
Arceveti
9f8abc8009 Make 'level_trigger_warp' and 'level_control_timer' return values 32 bits 2022-01-20 13:59:16 -08:00
Arceveti
72c55e876f area.c formatting fixes 2022-01-20 13:52:42 -08:00
Arceveti
44a65b36e9 Add OBJECT_FIELD_U16 and OBJECT_FIELD_PAINTING, also free up another space for object specific fields 2022-01-20 13:06:57 -08:00
Arceveti
39a7041cd5 Enable silhouette by default 2022-01-20 12:17:31 -08:00
Arceveti
02439a6e95 Add obj_become_intangible + improve cur_obj_find_nearest_object_with_behavior 2022-01-20 11:05:47 -08:00
Arceveti
f47927a8c2 Rename 'NUM_PAINTINGS' to 'NUM_PAINTING_WARP_NODES' 2022-01-19 17:49:13 -08:00
Arceveti
3e95a859b1 Sort donut platform groups in sDonutPlatformPositions 2022-01-19 17:46:48 -08:00
Axollyon
f29f6e5b5c Saves default conf on boot now, simplify condition 2022-01-19 17:19:48 -05:00
Mr-Wiseguy
331335c3c2 Fixed makefile issue causing audio files to be compiled with different flags the first time they're built 2022-01-18 16:25:22 -05:00
Arceveti
97d821cd77 Fix behavior script GOTO crashes 2022-01-18 09:14:13 -08:00
Arceveti
62cf6550ec Combine some painting functions and remove some unused struct members 2022-01-18 08:51:08 -08:00
Arceveti
a360e3c0a6 Combine painting_state arg + run painting_update_floors earlier 2022-01-18 07:20:16 -08:00
Arceveti
aa009cba7b Some paintings documentation 2022-01-18 06:57:44 -08:00
Arceveti
89d74b3545 Fix behavior command names of int/short operations 2022-01-18 06:24:43 -08:00
Arceveti
ea784b9e9e Add ALLOW_OOB + fix null floor crashes 2022-01-18 05:54:12 -08:00
Arceveti
b033308b31 COURSE_NUM_TO_INDEX usage 2022-01-18 05:05:54 -08:00
Arceveti
42af5c5985 Rename 'bhvDddMovingPole' to 'bhvBitfsSinkingCagePole' 2022-01-18 04:53:08 -08:00
Arceveti
f68fa0dfe8 Spelling fix 2022-01-18 04:51:53 -08:00
Arceveti
810858cedc Add 'MARIO_HITBOX_HEIGHT', 'MARIO_SHORT_HITBOX_HEIGHT', and 'MARIO_COLLISION_RADIUS' 2022-01-18 04:48:02 -08:00
Arceveti
3a9139e379 Replace 'find_room_floor' with 'get_room_at_pos' 2022-01-18 04:29:48 -08:00
Arceveti
58b9f7058f Add VARIABLE_NUM_STEPS 2022-01-18 03:27:34 -08:00
Arceveti
969ea2c6ea Change default number of subframe steps 2022-01-18 03:26:42 -08:00
Arceveti
a7d808f84c Add VERTICAL_CULLING 2022-01-18 02:42:54 -08:00
Arceveti
837a55a040 Add defines for unused sounds in sounds.h & name remaining sounds 2022-01-17 21:40:25 -08:00
Arceveti
c8e5dcef67 Fix vanilla paintings roll 2022-01-17 21:27:40 -08:00
Mr-Wiseguy
a7b208e8e8 Added CPU audio to lightweight profiler 2022-01-17 19:23:48 -05:00
Arceveti
a471544097 Merge https://github.com/CrashOveride95/ultrasm64 into develop/arceveti/general_2 2022-01-17 13:14:34 -08:00
Arceveti
dd2dc2b2bd Add config defines for number of steps (quarter steps) 2022-01-17 13:12:26 -08:00
Arceveti
eb405d3c8b Add unused entries to ObjFlags enum 2022-01-17 12:53:58 -08:00
Arceveti
e294292dd5 Add EXCLAMATION_BOXES_ALWAYS_SOLID 2022-01-17 12:53:00 -08:00
Arceveti
66cd292dcc Improve debug level select exit combo 2022-01-17 12:50:22 -08:00
Arceveti
67cacb4d14 Add knockback action index enums 2022-01-17 12:47:44 -08:00
Arceveti
db7e6dcb9b enum for act_idle actionArg 2022-01-17 12:45:35 -08:00
Arceveti
ced30c9659 Add ATTACK_FROM_LANDING 2022-01-17 12:45:01 -08:00
Arceveti
114f10a6a4 Improve shadow UVs 2022-01-17 12:43:08 -08:00
Arceveti
341356daac Add MIDAIR_STAR_DANCE 2022-01-17 12:40:29 -08:00
Arceveti
ec8caea02c Rename 'bhvFishGroup' to 'bhvAquariumBubbles' 2022-01-17 12:36:33 -08:00
Arceveti
61ef8bb9a8 Add IMMEDIATE_LONG_JUMPS 2022-01-17 12:34:44 -08:00
Arceveti
c9dca2cdc1 Remove unused beta function 2022-01-17 12:32:05 -08:00
Arceveti
12a8170bda Remove unused field in ExclamationBoxContents + activated_bf_plat defines 2022-01-17 12:31:07 -08:00
Arceveti
e17a469c72 Make GEO_ASM parameter an s32 2022-01-17 12:24:47 -08:00
Arceveti
2cd9275677 Add DEFAULT_DRAWING_DISTANCE define 2022-01-17 12:22:35 -08:00
Arceveti
2692320f9d Add painting objects 2022-01-17 12:21:26 -08:00
Arceveti
5137facd77 Add star glow 2022-01-17 12:19:35 -08:00
Arceveti
53e130b4cf Add GEO_Z_OFFSET 2022-01-17 12:16:42 -08:00
Arceveti
0cf38f63be Fix some config descriptions 2022-01-17 12:10:45 -08:00
Arceveti
8a4167b5f3 pole fix 2022-01-17 12:07:12 -08:00
Arceveti
6287804353 Move alignment macros to macros.h 2022-01-17 12:05:24 -08:00
Arceveti
6646edcade Painting id enums 2022-01-17 11:17:38 -08:00
Arceveti
abb64638f2 Remove outdated comment 2022-01-17 10:01:01 -08:00
Arceveti
05d85fea8c Use 'degrees_to_angle' in 'read_vec3s_angle' 2022-01-17 09:44:42 -08:00
Arceveti
077896456e Add 'vec3f_local_pos_to_world_pos' and 'vec3f_world_pos_to_local_pos' 2022-01-17 08:40:09 -08:00
Arceveti
970551cdc6 rectangle 2022-01-17 07:28:03 -08:00
Arceveti
6df32bd6ca Remove GRAPH_NODE_TYPE_FUNCTIONAL define & restore functionality using an alternative method. 2022-01-17 07:24:30 -08:00
Arceveti
f756c75fee Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/painting_objects 2022-01-17 07:17:42 -08:00
Arceveti
4bc21fd32e New version of FLT_IS_NONZERO 2022-01-17 07:17:05 -08:00
Arceveti
9283a25960 Some formatting fixes 2022-01-17 07:16:53 -08:00
Mr-Wiseguy
52600eb453 Added RSP profiling to the lightweight profiler 2022-01-16 23:31:13 -05:00
Mr-Wiseguy
ee5f5adc9d Implemented new lightweight CPU/RDP profiler 2022-01-16 17:18:11 -05:00
Arceveti
19a68b94f6 object_helpers & obj_behaviors_2.c formatting fixes 2022-01-16 04:20:47 -08:00
Arceveti
a159b9d283 Fix DDD painting ID crash 2022-01-15 23:19:34 -08:00
Arceveti
7dcc2e866f obj_translate_local uses mtxf_translate_local_vec3f 2022-01-15 23:16:14 -08:00
Arceveti
4a0a19981c Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/painting_objects 2022-01-15 23:04:43 -08:00
Arceveti
49ab678594 Rename 'mtxf_rotate_xy' to 'mtx_rotate_xy' 2022-01-15 23:00:39 -08:00
Arceveti
1f25450971 A couple tiny formatting fixes 2022-01-15 22:59:07 -08:00
Arceveti
309a28f85d paintings.c/paintings.h refactoring. Paintings no longer need 3 separate floors for wobble/ripples 2022-01-15 21:17:35 -08:00
Arceveti
7d3c38b185 + ratio 2022-01-14 21:57:17 -08:00
Arceveti
67b29b47fa Fix painting spikes + formatting 2022-01-14 19:36:47 -08:00
Arceveti
14639ed769 paintings.c formatting 2022-01-14 18:44:05 -08:00
Arceveti
928a407c07 Add OBJECT_FIELD_F32P 2022-01-14 18:32:54 -08:00
Arceveti
9bb09d0947 paintings.c formatting 2022-01-14 18:12:01 -08:00
Arceveti
8eb930c0b3 Add asF32P to object field union 2022-01-14 17:31:45 -08:00
Arceveti
43478ffaca paintings.c formatting 2022-01-14 17:31:10 -08:00
Arceveti
e6f7680791 Some interaction.c formatting 2022-01-14 17:15:50 -08:00
Arceveti
688c970e01 Add WARP_DEST_LEVEL_NUM_MASK 2022-01-14 15:50:32 -08:00
Arceveti
449ebc0a7a Re-implement painting changes from develop/arceveti/general & sm64v2 2022-01-14 15:30:13 -08:00
CrashOveride95
46b725b3fc make load now sends ROM to console by way of UNFLoader
To use, run make install when building UNFLoader to install it system wide
(this feature is currently in PR-status at that repo)
2022-01-12 19:27:06 -05:00
Arceveti
e63d20b420 Merge branch 'develop/arceveti/2.0.2/fix_levelnum_enum' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-12 15:06:09 -08:00
Arceveti
ed3a9f77f4 Merge branch 'develop/arceveti/2.0.2/fix_non_us_builds' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-12 15:05:55 -08:00
Arceveti
6980dcaa03 Fix level enum conflict with 99+ levels 2022-01-12 14:40:43 -08:00
Arceveti
03347f5ffd Fix build warnings & errors when building non-US versions 2022-01-11 21:44:56 -08:00
Arceveti
59ad3b7872 Merge branch 'develop/arceveti/2.0.2/consistent_config_formatting' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:12:19 -08:00
Arceveti
77c777308b Merge branch 'develop/arceveti/2.0.2/wf_breakable_wall_drawing_distance' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:09:07 -08:00
Arceveti
a3398ac240 Merge branch 'develop/arceveti/2.0.2/fix_credits_text' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:53 -08:00
Arceveti
979507c38e Merge branch 'develop/arceveti/2.0.2/render_menu_buttons' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:35 -08:00
Arceveti
b46ea36257 Merge branch 'develop/arceveti/2.0.2/non_stop_stars' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:19 -08:00
Arceveti
a3e3d03174 Merge branch 'develop/arceveti/2.0.2/mandatory_clear_ram' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:07 -08:00
Arceveti
6f123cc9a2 Merge branch 'develop/arceveti/2.0.2/rename_modified_assets' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:07:40 -08:00
Arceveti
efebc84e44 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:07:08 -08:00
Arceveti
6524aa7655 Set oDrawingDistance to 4500 for WF breakable walls 2022-01-11 20:05:12 -08:00
Arceveti
b46c39b7a4 Fix formatting inconsistencies in config files 2022-01-11 19:15:47 -08:00
Arceveti
22ba19a9a4 Fix credits text ifdef 2022-01-11 18:49:24 -08:00
Arceveti
ba67dee11b Fix render menu buttons functions 2022-01-11 18:30:50 -08:00
Arceveti
41c5aec748 Fix NON_STOP_STARS & bhvCelebrationStar related issues with Bowser keys 2022-01-11 17:28:47 -08:00
Arceveti
d3f1cf3e7d Make CLEARRAM mandatory 2022-01-11 14:56:28 -08:00
Arceveti
2fff062d11 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-10 21:08:46 -08:00
Arceveti
b6a8a34555 Renamed HackerSM64 modified assets so they don't conflict with vanilla assets 2022-01-10 21:02:21 -08:00
Arceveti
8dbe75bfc9 Better Mr. I offset fix 2022-01-10 18:24:53 -08:00
Arceveti
d8a844482c Merge branch 'master' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-09 18:10:44 -08:00
Arceveti
c9d85d671e Merge https://github.com/CrashOveride95/ultrasm64 into develop/arceveti/collision_tests 2022-01-09 18:09:47 -08:00
Arceveti
0a01b65348 Merge Ultrasm64 2022-01-09 17:57:14 -08:00
Arceveti
e8c9e5d799 whitespace fix 2022-01-08 00:42:59 -08:00
Arceveti
dab30aad2d implement math_util create_transformation_from_matrices and mtxf_held_object 2022-01-08 00:41:40 -08:00
Arceveti
c039fac22e whitespace fiix + function labelling 2022-01-08 00:39:34 -08:00
Arceveti
79a9f94a71 Re-implement some math_util changes from develop/arceveti/general 2022-01-08 00:35:26 -08:00
Arceveti
198388067c Remove deprecated 'register' keyword from math_util 2022-01-08 00:24:25 -08:00
Arceveti
5a0800c71a replace unused global vectors with identityMtx 2022-01-08 00:14:47 -08:00
Arceveti
c2ca2387ac load_object_collision_model local variables for marioDist, colDist, and and drawDist, + fix get_optimal_collision_distance when no collision data exists, + local object struct pointer for transform_object_vertices and load_object_surfaces 2022-01-08 00:13:33 -08:00
Arceveti
d8cf9ccbb6 load_static_surfaces hasForce consistency 2022-01-08 00:00:07 -08:00
Arceveti
7b41245a0c Fix wrong Y offset for Mr. I iris 2022-01-07 23:57:23 -08:00
Arceveti
16f931f71f JP Baserom is no longer required for US build 2022-01-07 23:56:38 -08:00
Arceveti
b010be6f87 Fix build warning when NO_GETTING_BURIED is enabled 2022-01-07 23:56:10 -08:00
Arceveti
6ab779db0b Make bhv_init_room automatically detect if the current area has room data instead of checking a hardcoded array of level numbers. 2022-01-07 23:55:21 -08:00
Arceveti
076382a995 Add config define to make JRB mist and DDD objects act-specific. 2022-01-07 23:53:52 -08:00
Arceveti
ee4ceb9fc8 Make is_behind_surface use existing surface normals 2022-01-07 23:51:40 -08:00
Arceveti
b9d1b47be7 Update find_wall_collisions_from_list comments 2022-01-07 23:50:49 -08:00
Arceveti
7b5af80bfb function names 2022-01-07 23:37:27 -08:00
Arceveti
b0b2e902dd Update check_wall_edge 2022-01-07 23:35:19 -08:00
Arceveti
7f78764ebd find_water_level Y arg 2022-01-07 22:21:51 -08:00
Arceveti
7d21cb068c Re-add some stuff from develop/arceveti/general + formatting_changes + name some unknowns + remove gotos from find_wall_collisions_from_list + jrb ship rendering fixes + visual_debug rendering fixes 2022-01-07 22:21:25 -08:00
Fluvian
82435d9d63 Prevent running out of pool space when loading uncompressed data. (#28)
* Fix bug where you run out of pool space.

Fixes a bug where you run out of pool space when you load uncompressed data.

* Fix bug where you run out of pool space. #2
2021-12-29 11:34:08 -05:00
CrashOveride95
1d360860c9 VI Mode RAM optimization
Doing &osViModeTable[OS_VI_NTSC_LAN1] wastes RAM,
as the entire table of all possible VI modes is linked in.
Instead, you can do &osViModeNtscLan1, which only links in the VI mode
you're actually going to use
2021-12-19 14:23:01 -05:00
CrashOveride95
549b919469 Remove forced alignment which is replicating IDO behavior for no good reason 2021-11-23 11:47:44 -05:00
CrashOveride95
b5f9b663ed Fix crash with rumble + custom mario model 2021-11-22 19:13:13 -05:00
CrashOveride95
45064e15d2 Make ucode load from .o's (and also fix Super3D) 2021-11-22 16:29:28 -05:00
CrashOveride95
86ed5cf9a6 Update UNF to latest master 2021-11-21 21:15:52 -05:00
CrashOveride95
2b53cc64be Fix console (lol) 2021-11-21 21:14:11 -05:00
CrashOveride95
208d526bb6 Make ROM name smaller and change messages printed on build a bit 2021-10-19 22:11:42 -04:00
CrashOveride95
d8c7afebc2 extra 2021-10-19 21:58:26 -04:00
CrashOveride95
eb466b2caf Merge branch 'master' of https://github.com/n64decomp/sm64 2021-10-19 21:58:19 -04:00
n64
1372ae1bb7 Refresh 15 2021-10-14 15:25:30 -04:00
CrashOveride95
0d56896e75 Merge branch 'master' of https://github.com/CrashOveride95/ultrasm64 2021-10-02 10:27:47 -04:00
CrashOveride95
3a627e6311 Add librtc and fix some data declarations 2021-10-02 10:27:43 -04:00
CrashOveride95
6218abafff Merge pull request #24 from Arceveti/patch-1
Move GRUCODE define to proper location in makefile
2021-09-30 22:13:33 -04:00
Arceveti
d51129c6b6 Move GRUCODE define to proper location in makefile 2021-09-30 17:52:40 -07:00
768 changed files with 18003 additions and 22074 deletions

View File

@@ -526,9 +526,9 @@ else
endif
ENDIAN_BITWIDTH := $(BUILD_DIR)/endian-and-bitwidth
EMULATOR = mupen64plus
EMU_FLAGS =
LOADER = loader64
LOADER_FLAGS = -vwf
EMU_FLAGS = --noosd
LOADER = UNFLoader
LOADER_FLAGS = -d
SHA1SUM = sha1sum
PRINT = printf
@@ -579,7 +579,7 @@ test-pj64: $(ROM)
# someone2639
load: $(ROM)
$(LOADER) $(LOADER_FLAGS) $<
$(LOADER) $(LOADER_FLAGS) -r $<
libultra: $(BUILD_DIR)/libultra.a
@@ -630,7 +630,8 @@ $(BUILD_DIR)/src/usb/usb.o: CFLAGS += -Wno-unused-variable -Wno-sign-compare -Wn
$(BUILD_DIR)/src/usb/debug.o: OPT_FLAGS := -O0
$(BUILD_DIR)/src/usb/debug.o: CFLAGS += -Wno-unused-parameter -Wno-maybe-uninitialized
# File specific opt flags
$(BUILD_DIR)/src/audio/*.o: OPT_FLAGS := -Os -fno-jump-tables
$(BUILD_DIR)/src/audio/heap.o: OPT_FLAGS := -Os -fno-jump-tables
$(BUILD_DIR)/src/audio/synthesis.o: OPT_FLAGS := -Os -fno-jump-tables
$(BUILD_DIR)/src/engine/surface_collision.o: OPT_FLAGS := $(COLLISION_OPT_FLAGS)
$(BUILD_DIR)/src/engine/math_util.o: OPT_FLAGS := $(MATH_UTIL_OPT_FLAGS)

View File

@@ -18,13 +18,13 @@ This is a fork of the ultrasm64 repo by CrashOveride which includes the followin
- **aglab2**: Bugfixes (particularly puppycam), refactor stuff
- **someone2639**: math.s and crash screen disam, stack trace, map packing, shiftable segments 2, S2DEX engine
- **Arthurtilly**: Platform Displacement 2
- **Fazana**: PuppyLib, ucode swapping, audio load time optimisations (with Arctic), general hacker qol improvements, visual debug
- **Fazana**: PuppyLib, ucode swapping, audio load time optimizations (with Arctic), general hacker qol improvements, visual debug
- **Reonu**: Starting the project/repo, widescreen, reonucam, various defines for hacker QoL
- **JoshDuMan**: Decomp guy, general assistance
- **Arceveti**: Silhouette, shadow optimisation, better hanging, breath meter
- **Arceveti**: Silhouette, shadow optimizations, better hanging, breath meter, z offset geo command, star glow, painting objects, implementation of frameperfection's rounded corners fix, naming most unknowns, various hacker qol improvements, and various optimizations/fixes
- **axollyon**: Console testing, bugfixes, idea-guying, and had a hand in silhouettes
- **Wiseguy**: World scale reimplementation, silhouette, graph node optimisations, instant input patch, cake screen fix, segmented code support, and various optimizations/fixes
- **Kaze**: Graph node optimisations, automatic optimal collision distance
- **Wiseguy**: World scale reimplementation, silhouette, graph node optimizations, instant input patch, cake screen fix, segmented code support, matrix stack fix, and various optimizations/fixes
- **Kaze Emanuar**: Graph node & math util optimizations, automatic optimal collision distance, cell buffer fix
- **Pyro Jay**: Texture improvements, repo banner art, some QoL stuff
- **CrashOveride**: creating the [ultrasm64](https://github.com/CrashOveride95/ultrasm64) repo
- **falcobuster**: Original coordinate overflow fix (world scale), ASM version of extended bounds
@@ -33,7 +33,7 @@ This is a fork of the ultrasm64 repo by CrashOveride which includes the followin
Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
**Lighting Engine by Wiseguy**
- Lighting Engine is available on a separate branch ([base/lighting-engine-wip](https://github.com/Reonu/HackerSM64/tree/base/lighting-engine-wip)). Instructions on how to use it are in the readme of that branch.
- Lighting Engine is available on a separate branch ([base/lighting-engine](https://github.com/Reonu/HackerSM64/tree/base/lighting-engine)). Instructions on how to use it are in the readme of that branch.
- Alternatively, the main repo has `Puppylights` available, which is a more lightweight, but limited lighting library intended to be used to modify existing light properties. You can look at `puppylights.c` to find out how to use it.
**Puppycam**

View File

@@ -1,22 +1,10 @@
// Birds
// 0x05000000
static const Lights1 birds_seg5_lights_05000000 = gdSPDefLights1(
0x07, 0x24, 0x2c,
0x1d, 0x91, 0xb0, 0x28, 0x28, 0x28
);
// 0x05000018
static const Lights1 birds_seg5_lights_05000018 = gdSPDefLights1(
0x33, 0x27, 0x0d,
0xce, 0x9d, 0x34, 0x28, 0x28, 0x28
);
// 0x05000030
static const Lights1 birds_seg5_lights_05000030 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05000048
static const Vtx birds_seg5_vertex_05000048[] = {
@@ -138,8 +126,8 @@ static const Vtx birds_seg5_vertex_050004C8[] = {
// 0x05000528 - 0x05000598
const Gfx birds_seg5_dl_05000528[] = {
gsSPLight(&birds_seg5_lights_05000000.l, 1),
gsSPLight(&birds_seg5_lights_05000000.a, 2),
gsSPLightColor(LIGHT_1, 0x1d91b0ff),
gsSPLightColor(LIGHT_2, 0x7242cff),
gsSPVertex(birds_seg5_vertex_05000048, 9, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0),
gsSP2Triangles( 4, 3, 2, 0x0, 5, 3, 6, 0x0),
@@ -151,16 +139,16 @@ const Gfx birds_seg5_dl_05000528[] = {
// 0x05000598 - 0x05000600
const Gfx birds_seg5_dl_05000598[] = {
gsSPLight(&birds_seg5_lights_05000000.l, 1),
gsSPLight(&birds_seg5_lights_05000000.a, 2),
gsSPLightColor(LIGHT_1, 0x1d91b0ff),
gsSPLightColor(LIGHT_2, 0x7242cff),
gsSPVertex(birds_seg5_vertex_050000D8, 3, 0),
gsSP1Triangle( 0, 1, 2, 0x0),
gsSPLight(&birds_seg5_lights_05000000.l, 1),
gsSPLight(&birds_seg5_lights_05000000.a, 2),
gsSPLightColor(LIGHT_1, 0x1d91b0ff),
gsSPLightColor(LIGHT_2, 0x7242cff),
gsSPVertex(birds_seg5_vertex_05000108, 3, 0),
gsSP1Triangle( 0, 1, 2, 0x0),
gsSPLight(&birds_seg5_lights_05000000.l, 1),
gsSPLight(&birds_seg5_lights_05000000.a, 2),
gsSPLightColor(LIGHT_1, 0x1d91b0ff),
gsSPLightColor(LIGHT_2, 0x7242cff),
gsSPVertex(birds_seg5_vertex_05000138, 3, 0),
gsSP1Triangle( 0, 1, 2, 0x0),
gsSPEndDisplayList(),
@@ -168,8 +156,8 @@ const Gfx birds_seg5_dl_05000598[] = {
// 0x05000600 - 0x05000670
const Gfx birds_seg5_dl_05000600[] = {
gsSPLight(&birds_seg5_lights_05000000.l, 1),
gsSPLight(&birds_seg5_lights_05000000.a, 2),
gsSPLightColor(LIGHT_1, 0x1d91b0ff),
gsSPLightColor(LIGHT_2, 0x7242cff),
gsSPVertex(birds_seg5_vertex_05000168, 9, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0),
gsSP2Triangles( 0, 3, 4, 0x0, 5, 3, 6, 0x0),
@@ -181,8 +169,8 @@ const Gfx birds_seg5_dl_05000600[] = {
// 0x05000670 - 0x050007E0
const Gfx birds_seg5_dl_05000670[] = {
gsSPLight(&birds_seg5_lights_05000000.l, 1),
gsSPLight(&birds_seg5_lights_05000000.a, 2),
gsSPLightColor(LIGHT_1, 0x1d91b0ff),
gsSPLightColor(LIGHT_2, 0x7242cff),
gsSPVertex(birds_seg5_vertex_050001F8, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 1, 9, 10, 0x0),
@@ -198,16 +186,16 @@ const Gfx birds_seg5_dl_05000670[] = {
gsSP1Triangle( 7, 6, 15, 0x0),
gsSPVertex(birds_seg5_vertex_050003F8, 3, 0),
gsSP1Triangle( 0, 1, 2, 0x0),
gsSPLight(&birds_seg5_lights_05000030.l, 1),
gsSPLight(&birds_seg5_lights_05000030.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(birds_seg5_vertex_05000428, 10, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 0, 7, 0x0, 7, 8, 6, 0x0),
gsSP2Triangles( 9, 7, 2, 0x0, 2, 7, 0, 0x0),
gsSP2Triangles( 2, 3, 9, 0x0, 7, 9, 8, 0x0),
gsSP1Triangle( 5, 4, 1, 0x0),
gsSPLight(&birds_seg5_lights_05000018.l, 1),
gsSPLight(&birds_seg5_lights_05000018.a, 2),
gsSPLightColor(LIGHT_1, 0xce9d34ff),
gsSPLightColor(LIGHT_2, 0x33270dff),
gsSPVertex(birds_seg5_vertex_050004C8, 6, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
gsSP1Triangle( 1, 3, 5, 0x0),

View File

@@ -1,34 +1,14 @@
// Blargg (Unused)
// Unreferenced light group
UNUSED static const Lights1 blargg_lights_unused = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05004740
static const Lights1 blargg_seg5_lights_05004740 = gdSPDefLights1(
0x3f, 0x0d, 0x05,
0xff, 0x36, 0x16, 0x28, 0x28, 0x28
);
// 0x05004758
static const Lights1 blargg_seg5_lights_05004758 = gdSPDefLights1(
0x2c, 0x2c, 0x2c,
0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28
);
// 0x05004770
static const Lights1 blargg_seg5_lights_05004770 = gdSPDefLights1(
0x3f, 0x0a, 0x06,
0xff, 0x2a, 0x1a, 0x28, 0x28, 0x28
);
// 0x05004788
static const Lights1 blargg_seg5_lights_05004788 = gdSPDefLights1(
0x3f, 0x0b, 0x07,
0xff, 0x2e, 0x1f, 0x28, 0x28, 0x28
);
// 0x050047A0
static const Vtx blargg_seg5_vertex_050047A0[] = {
@@ -383,8 +363,8 @@ static const Vtx blargg_seg5_vertex_050057E0[] = {
// 0x050058D0 - 0x05005A60
const Gfx blargg_seg5_dl_050058D0[] = {
gsSPLight(&blargg_seg5_lights_05004758.l, 1),
gsSPLight(&blargg_seg5_lights_05004758.a, 2),
gsSPLightColor(LIGHT_1, 0xb2b2b2ff),
gsSPLightColor(LIGHT_2, 0x2c2c2cff),
gsSPVertex(blargg_seg5_vertex_050047A0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
@@ -398,8 +378,8 @@ const Gfx blargg_seg5_dl_050058D0[] = {
gsSPVertex(blargg_seg5_vertex_050049A0, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSPLight(&blargg_seg5_lights_05004740.l, 1),
gsSPLight(&blargg_seg5_lights_05004740.a, 2),
gsSPLightColor(LIGHT_1, 0xff3616ff),
gsSPLightColor(LIGHT_2, 0x3f0d05ff),
gsSPVertex(blargg_seg5_vertex_05004A20, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
@@ -418,8 +398,8 @@ const Gfx blargg_seg5_dl_050058D0[] = {
// 0x05005A60 - 0x05005D00
const Gfx blargg_seg5_dl_05005A60[] = {
gsSPLight(&blargg_seg5_lights_05004758.l, 1),
gsSPLight(&blargg_seg5_lights_05004758.a, 2),
gsSPLightColor(LIGHT_1, 0xb2b2b2ff),
gsSPLightColor(LIGHT_2, 0x2c2c2cff),
gsSPVertex(blargg_seg5_vertex_05004BE0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
@@ -433,8 +413,8 @@ const Gfx blargg_seg5_dl_05005A60[] = {
gsSPVertex(blargg_seg5_vertex_05004DE0, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSPLight(&blargg_seg5_lights_05004770.l, 1),
gsSPLight(&blargg_seg5_lights_05004770.a, 2),
gsSPLightColor(LIGHT_1, 0xff2a1aff),
gsSPLightColor(LIGHT_2, 0x3f0a06ff),
gsSPVertex(blargg_seg5_vertex_05004E60, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 2, 6, 7, 0x0, 2, 7, 8, 0x0),
@@ -472,8 +452,8 @@ const Gfx blargg_seg5_dl_05005A60[] = {
// 0x05005D00 - 0x05005EB8
const Gfx blargg_seg5_dl_05005D00[] = {
gsSPLight(&blargg_seg5_lights_05004788.l, 1),
gsSPLight(&blargg_seg5_lights_05004788.a, 2),
gsSPLightColor(LIGHT_1, 0xff2e1fff),
gsSPLightColor(LIGHT_2, 0x3f0b07ff),
gsSPVertex(blargg_seg5_vertex_050053E0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),

View File

@@ -1,10 +1,6 @@
// Blue Coin Switch
// 0x08000000
static const Lights1 blue_coin_switch_seg8_lights_08000000 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x08000018
ALIGNED8 static const Texture blue_coin_switch_seg8_texture_08000018[] = {
@@ -49,8 +45,8 @@ const Gfx blue_coin_switch_seg8_dl_08000D58[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, blue_coin_switch_seg8_texture_08000018),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&blue_coin_switch_seg8_lights_08000000.l, 1),
gsSPLight(&blue_coin_switch_seg8_lights_08000000.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x7f7f7fff),
gsSPVertex(blue_coin_switch_seg8_vertex_08000C18, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),

View File

@@ -1,10 +1,6 @@
// Blue Fish
// 0x0301B5C8
static const Lights1 blue_fish_seg3_lights_0301B5C8 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0301B5E0
ALIGNED8 static const Texture blue_fish_seg3_texture_0301B5E0[] = {
@@ -34,8 +30,8 @@ const Gfx blue_fish_seg3_dl_0301BEC0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, blue_fish_seg3_texture_0301B5E0),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&blue_fish_seg3_lights_0301B5C8.l, 1),
gsSPLight(&blue_fish_seg3_lights_0301B5C8.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(blue_fish_seg3_vertex_0301BDE0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
gsSP2Triangles( 5, 0, 3, 0x0, 2, 6, 0, 0x0),
@@ -86,8 +82,8 @@ const Gfx blue_fish_seg3_dl_0301C0A8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, blue_fish_seg3_texture_0301B5E0),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&blue_fish_seg3_lights_0301B5C8.l, 1),
gsSPLight(&blue_fish_seg3_lights_0301B5C8.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(blue_fish_seg3_vertex_0301C018, 9, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0),
gsSP2Triangles( 4, 5, 2, 0x0, 2, 5, 6, 0x0),

View File

@@ -168,22 +168,10 @@ const Gfx bobomb_seg8_dl_08022D78[] = {
};
// 0x08022DE8
static const Lights1 bobomb_seg8_lights_08022DE8 = gdSPDefLights1(
0x3f, 0x26, 0x04,
0xff, 0x99, 0x12, 0x28, 0x28, 0x28
);
// 0x08022E00
static const Lights1 bobomb_seg8_lights_08022E00 = gdSPDefLights1(
0x2c, 0x2c, 0x2c,
0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bobomb_lights_unused = gdSPDefLights1(
0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x28, 0x28, 0x28
);
// 0x08022E30
static const Vtx bobomb_seg8_vertex_08022E30[] = {
@@ -279,8 +267,8 @@ static const Vtx bobomb_seg8_vertex_08023190[] = {
// 0x08023270 - 0x08023378
const Gfx bobomb_seg8_dl_08023270[] = {
gsSPLight(&bobomb_seg8_lights_08022DE8.l, 1),
gsSPLight(&bobomb_seg8_lights_08022DE8.a, 2),
gsSPLightColor(LIGHT_1, 0xff9912ff),
gsSPLightColor(LIGHT_2, 0x3f2604ff),
gsSPVertex(bobomb_seg8_vertex_08022E30, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
@@ -302,8 +290,8 @@ const Gfx bobomb_seg8_dl_08023270[] = {
// 0x08023378 - 0x08023480
const Gfx bobomb_seg8_dl_08023378[] = {
gsSPLight(&bobomb_seg8_lights_08022DE8.l, 1),
gsSPLight(&bobomb_seg8_lights_08022DE8.a, 2),
gsSPLightColor(LIGHT_1, 0xff9912ff),
gsSPLightColor(LIGHT_2, 0x3f2604ff),
gsSPVertex(bobomb_seg8_vertex_08022F70, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
@@ -325,8 +313,8 @@ const Gfx bobomb_seg8_dl_08023378[] = {
// 0x08023480 - 0x08023528
const Gfx bobomb_seg8_dl_08023480[] = {
gsSPLight(&bobomb_seg8_lights_08022E00.l, 1),
gsSPLight(&bobomb_seg8_lights_08022E00.a, 2),
gsSPLightColor(LIGHT_1, 0xb2b2b2ff),
gsSPLightColor(LIGHT_2, 0x2c2c2cff),
gsSPVertex(bobomb_seg8_vertex_080230B0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 0, 3, 0x0, 4, 3, 5, 0x0),

View File

@@ -1,10 +1,6 @@
// Bomb
// 0x06057AA8
static const Lights1 bomb_seg6_lights_06057AA8 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x06057AC0
ALIGNED8 static const Texture bomb_seg6_texture_06057AC0[] = {
@@ -173,8 +169,8 @@ const Gfx bomb_seg6_dl_0605A8A8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bomb_seg6_texture_06059AC0),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bomb_seg6_lights_06057AA8.l, 1),
gsSPLight(&bomb_seg6_lights_06057AA8.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bomb_seg6_vertex_0605A340, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),

View File

@@ -1,10 +1,6 @@
// Boo
// 0x05009B28
static const Lights1 boo_seg5_lights_05009B28 = gdSPDefLights1(
0x97, 0x9a, 0xff,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05009B40
ALIGNED8 static const Texture boo_seg5_texture_05009B40[] = {
@@ -261,8 +257,8 @@ const Gfx boo_seg5_dl_0500BEE0[] = {
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)),
gsSPLight(&boo_seg5_lights_05009B28.l, 1),
gsSPLight(&boo_seg5_lights_05009B28.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x979affff),
gsSPVertex(boo_seg5_vertex_0500B340, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),

View File

@@ -1,10 +1,6 @@
// Boo (Castle)
// 0x06015658
static const Lights1 boo_castle_seg6_lights_06015658 = gdSPDefLights1(
0x97, 0x9a, 0xff,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x06015670
ALIGNED8 static const Texture boo_castle_seg6_texture_06015670[] = {
@@ -261,8 +257,8 @@ const Gfx boo_castle_seg6_dl_06017A10[] = {
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)),
gsSPLight(&boo_castle_seg6_lights_06015658.l, 1),
gsSPLight(&boo_castle_seg6_lights_06015658.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x979affff),
gsSPVertex(boo_castle_seg6_vertex_06016E70, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),

View File

@@ -3,10 +3,6 @@
// This actor file requires including actor bookend because of bookend_seg5_texture_05000C60
// 0x05002558
static const Lights1 book_seg5_lights_05002558 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05002570
ALIGNED8 static const Texture book_seg5_texture_05002570[] = {
@@ -50,8 +46,8 @@ const Gfx book_seg5_dl_05002EF0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000C60),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&book_seg5_lights_05002558.l, 1),
gsSPLight(&book_seg5_lights_05002558.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x7f7f7fff),
gsSPVertex(book_seg5_vertex_05002D70, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),

View File

@@ -1,28 +1,12 @@
// Bookend
// Unreferenced light group
UNUSED static const Lights1 bookend_lights_unused1 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bookend_lights_unused2 = gdSPDefLights1(
0x03, 0x19, 0x09,
0x0c, 0x66, 0x26, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bookend_lights_unused3 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bookend_lights_unused4 = gdSPDefLights1(
0x3f, 0x00, 0x00,
0xff, 0x00, 0x00, 0x28, 0x28, 0x28
);
// 0x05000060
ALIGNED8 static const Texture bookend_seg5_texture_05000060[] = {
@@ -50,10 +34,6 @@ ALIGNED8 static const Texture bookend_seg5_texture_05001060[] = {
};
// 0x05001860
static const Lights1 bookend_seg5_lights_05001860 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05001878
static const Vtx bookend_seg5_vertex_05001878[] = {
@@ -76,8 +56,8 @@ const Gfx bookend_seg5_dl_050018F8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000060),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bookend_seg5_lights_05001860.l, 1),
gsSPLight(&bookend_seg5_lights_05001860.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x666666ff),
gsSPVertex(bookend_seg5_vertex_05001878, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
@@ -116,10 +96,6 @@ const Gfx bookend_seg5_dl_05001978[] = {
};
// 0x05001A08
static const Lights1 bookend_seg5_lights_05001A08 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05001A20
static const Vtx bookend_seg5_vertex_05001A20[] = {
@@ -142,8 +118,8 @@ const Gfx bookend_seg5_dl_05001AA0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000060),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bookend_seg5_lights_05001A08.l, 1),
gsSPLight(&bookend_seg5_lights_05001A08.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x666666ff),
gsSPVertex(bookend_seg5_vertex_05001A20, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPEndDisplayList(),
@@ -182,10 +158,6 @@ const Gfx bookend_seg5_dl_05001B20[] = {
};
// 0x05001BB0
static const Lights1 bookend_seg5_lights_05001BB0 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05001BC8
static const Vtx bookend_seg5_vertex_05001BC8[] = {
@@ -216,8 +188,8 @@ const Gfx bookend_seg5_dl_05001CC8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000860),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bookend_seg5_lights_05001BB0.l, 1),
gsSPLight(&bookend_seg5_lights_05001BB0.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x666666ff),
gsSPVertex(bookend_seg5_vertex_05001BC8, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
@@ -255,10 +227,6 @@ const Gfx bookend_seg5_dl_05001D68[] = {
};
// 0x05001DE0
static const Lights1 bookend_seg5_lights_05001DE0 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05001DF8
static const Vtx bookend_seg5_vertex_05001DF8[] = {
@@ -289,8 +257,8 @@ const Gfx bookend_seg5_dl_05001EF8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000860),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bookend_seg5_lights_05001DE0.l, 1),
gsSPLight(&bookend_seg5_lights_05001DE0.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x666666ff),
gsSPVertex(bookend_seg5_vertex_05001DF8, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
@@ -328,10 +296,6 @@ const Gfx bookend_seg5_dl_05001F98[] = {
};
// 0x05002010
static const Lights1 bookend_seg5_lights_05002010 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05002028
static const Vtx bookend_seg5_vertex_05002028[] = {
@@ -354,8 +318,8 @@ const Gfx bookend_seg5_dl_050020E8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000460),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bookend_seg5_lights_05002010.l, 1),
gsSPLight(&bookend_seg5_lights_05002010.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x666666ff),
gsSPVertex(bookend_seg5_vertex_05002028, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
@@ -381,10 +345,6 @@ const Gfx bookend_seg5_dl_05002140[] = {
};
// 0x050021B0
static const Lights1 bookend_seg5_lights_050021B0 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x050021C8
static const Vtx bookend_seg5_vertex_050021C8[] = {
@@ -407,8 +367,8 @@ const Gfx bookend_seg5_dl_05002288[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000460),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bookend_seg5_lights_050021B0.l, 1),
gsSPLight(&bookend_seg5_lights_050021B0.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x666666ff),
gsSPVertex(bookend_seg5_vertex_050021C8, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),

View File

@@ -148,22 +148,10 @@ ALIGNED8 static const Texture bowser_seg6_texture_06037C38[] = {
};
// 0x06038C38
static const Lights1 bowser_seg6_lights_06038C38 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bowser_lights_unused1 = gdSPDefLights1(
0x33, 0x31, 0x00,
0xce, 0xc7, 0x00, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bowser_lights_unused2 = gdSPDefLights1(
0x34, 0x34, 0x00,
0xd2, 0xd2, 0x00, 0x28, 0x28, 0x28
);
// 0x06038C80
static const Vtx bowser_seg6_vertex_06038C80[] = {
@@ -267,8 +255,8 @@ const Gfx bowser_seg6_dl_06039110[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_06038C80, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0),
@@ -439,8 +427,8 @@ const Gfx bowser_seg6_dl_06039808[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_06039368, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
@@ -671,8 +659,8 @@ const Gfx bowser_seg6_dl_0603A210[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_06039A60, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
gsSP2Triangles( 4, 0, 2, 0x0, 2, 1, 5, 0x0),
@@ -947,8 +935,8 @@ const Gfx bowser_seg6_dl_0603AED8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603A568, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 5, 0x0, 7, 5, 8, 0x0),
@@ -1132,8 +1120,8 @@ const Gfx bowser_seg6_dl_0603B718[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603B288, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
gsSP2Triangles( 1, 4, 3, 0x0, 5, 3, 4, 0x0),
@@ -1308,8 +1296,8 @@ const Gfx bowser_seg6_dl_0603BDF8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603B948, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 3, 5, 0x0, 7, 6, 5, 0x0),
@@ -1481,8 +1469,8 @@ const Gfx bowser_seg6_dl_0603C500[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603C050, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 7, 0x0, 3, 7, 4, 0x0),
@@ -1716,8 +1704,8 @@ const Gfx bowser_seg6_dl_0603CF28[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603C758, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0),
gsSP2Triangles( 5, 0, 4, 0x0, 0, 2, 6, 0x0),
@@ -2007,8 +1995,8 @@ const Gfx bowser_seg6_dl_0603DC70[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603D280, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 8, 0x0),
@@ -2197,8 +2185,8 @@ const Gfx bowser_seg6_dl_0603E500[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603E030, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
@@ -2676,8 +2664,8 @@ const Gfx bowser_seg6_dl_0603FBA8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_0603E718, 9, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
@@ -3388,8 +3376,8 @@ const Gfx bowser_seg6_dl_06041A28[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06028438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_060402D8, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
@@ -3945,8 +3933,8 @@ const Gfx bowser_seg6_dl_06042EE0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06020C38),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_06042660, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 6, 7, 3, 0x0),
@@ -4103,8 +4091,8 @@ const Gfx bowser_seg6_dl_06043548[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bowser_seg6_lights_06038C38.l, 1),
gsSPLight(&bowser_seg6_lights_06038C38.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bowser_seg6_vertex_06043278, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0),
gsSP2Triangles( 0, 2, 3, 0x0, 0, 5, 1, 0x0),

View File

@@ -1,10 +1,6 @@
// Bowser Key
// 0x030156E0, ambient color brown - light color orange
static const Lights1 bowser_key_lights = gdSPDefLights1(
0x3f, 0x2c, 0x00,
0xff, 0xb2, 0x00, 0x28, 0x28, 0x28
);
// 0x030156F8
static const Vtx bowser_key_dl_vertex_group1[] = {
@@ -232,8 +228,8 @@ static const Vtx bowser_key_dl_vertex_group12[] = {
// 0x030161F8 - 0x03016530
const Gfx bowser_key_dl[] = {
gsSPLight(&bowser_key_lights.l, 1),
gsSPLight(&bowser_key_lights.a, 2),
gsSPLightColor(LIGHT_1, 0xffb200ff),
gsSPLightColor(LIGHT_2, 0x3f2c00ff),
gsSPVertex(bowser_key_dl_vertex_group1, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),

View File

@@ -1,10 +1,6 @@
// Breakable Box
// 0x08011A78
static const Lights1 breakable_box_seg8_lights_default = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x08011A90
ALIGNED8 static const Texture breakable_box_seg8_texture_08011A90[] = {
@@ -48,8 +44,8 @@ static const Vtx breakable_box_seg8_vertex[] = {
// 0x08012C30 - 0x08012CD8
const Gfx breakable_box_seg8_sub_dl_end[] = {
gsSPLight(&breakable_box_seg8_lights_default.l, 1),
gsSPLight(&breakable_box_seg8_lights_default.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(breakable_box_seg8_vertex, 26, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),

View File

@@ -1,16 +1,8 @@
// Bub
// 0x0600E278
static const Lights1 bub_seg6_lights_0600E280 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0600E290
static const Lights1 bub_seg6_lights_0600E290 = gdSPDefLights1(
0x3f, 0x1d, 0x25,
0xff, 0x75, 0x94, 0x28, 0x28, 0x28
);
// 0x0600E2A8
ALIGNED8 static const Texture bub_seg6_texture_0600E2A8[] = {
@@ -163,8 +155,8 @@ const Gfx bub_seg6_dl_06011848[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600E2A8),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bub_seg6_lights_0600E280.l, 1),
gsSPLight(&bub_seg6_lights_0600E280.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bub_seg6_vertex_060112A8, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
@@ -222,8 +214,8 @@ const Gfx bub_seg6_dl_06011968[] = {
// 0x06011A50 - 0x06011B28
const Gfx bub_seg6_dl_06011A50[] = {
gsSPLight(&bub_seg6_lights_0600E290.l, 1),
gsSPLight(&bub_seg6_lights_0600E290.a, 2),
gsSPLightColor(LIGHT_1, 0xff7594ff),
gsSPLightColor(LIGHT_2, 0x3f1d25ff),
gsSPVertex(bub_seg6_vertex_06011718, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 1, 4, 2, 0x0, 1, 3, 4, 0x0),
@@ -232,8 +224,8 @@ const Gfx bub_seg6_dl_06011A50[] = {
gsSP2Triangles( 8, 9, 10, 0x0, 8, 5, 0, 0x0),
gsSP2Triangles( 0, 11, 8, 0x0, 8, 10, 5, 0x0),
gsSP2Triangles( 5, 10, 6, 0x0, 10, 9, 6, 0x0),
gsSPLight(&bub_seg6_lights_0600E280.l, 1),
gsSPLight(&bub_seg6_lights_0600E280.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bub_seg6_vertex_060117D8, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0),
gsSP2Triangles( 2, 1, 5, 0x0, 2, 5, 6, 0x0),
@@ -284,8 +276,8 @@ const Gfx bub_seg6_dl_06011C58[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600EAA8),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bub_seg6_lights_0600E280.l, 1),
gsSPLight(&bub_seg6_lights_0600E280.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bub_seg6_vertex_06011BD8, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
gsSP2Triangles( 4, 5, 0, 0x0, 0, 5, 6, 0x0),
@@ -328,8 +320,8 @@ const Gfx bub_seg6_dl_06011DC0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600EAA8),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bub_seg6_lights_0600E280.l, 1),
gsSPLight(&bub_seg6_lights_0600E280.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bub_seg6_vertex_06011D50, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0),
gsSP2Triangles( 2, 4, 0, 0x0, 3, 2, 1, 0x0),
@@ -371,8 +363,8 @@ const Gfx bub_seg6_dl_06011F18[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600EAA8),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bub_seg6_lights_0600E280.l, 1),
gsSPLight(&bub_seg6_lights_0600E280.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(bub_seg6_vertex_06011EA8, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 3, 0, 0x0, 0, 5, 6, 0x0),

View File

@@ -34,22 +34,10 @@ ALIGNED8 static const Texture bubba_seg5_texture_05002408[] = {
};
// 0x05004408
static const Lights1 bubba_seg5_lights_05004408 = gdSPDefLights1(
0x48, 0x31, 0x2a,
0xf1, 0xa6, 0x8c, 0x28, 0x28, 0x28
);
// 0x05004420
static const Lights1 bubba_seg5_lights_05004420 = gdSPDefLights1(
0x4c, 0x4c, 0x4c,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05004438
static const Lights1 bubba_seg5_lights_05004438 = gdSPDefLights1(
0x10, 0x07, 0x08,
0x36, 0x1a, 0x1c, 0x28, 0x28, 0x28
);
// 0x05004450
static const Vtx bubba_seg5_vertex_05004450[] = {
@@ -187,8 +175,8 @@ const Gfx bubba_seg5_dl_05004A40[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05000008),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bubba_seg5_lights_05004408.l, 1),
gsSPLight(&bubba_seg5_lights_05004408.a, 2),
gsSPLightColor(LIGHT_1, 0xf1a68cff),
gsSPLightColor(LIGHT_2, 0x48312aff),
gsSPVertex(bubba_seg5_vertex_05004450, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0),
gsSP2Triangles( 4, 1, 3, 0x0, 5, 1, 4, 0x0),
@@ -201,8 +189,8 @@ const Gfx bubba_seg5_dl_05004AA8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05001408),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bubba_seg5_lights_05004420.l, 1),
gsSPLight(&bubba_seg5_lights_05004420.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x4c4c4cff),
gsSPVertex(bubba_seg5_vertex_050044C0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0),
gsSP2Triangles( 0, 2, 3, 0x0, 5, 0, 4, 0x0),
@@ -262,8 +250,8 @@ const Gfx bubba_seg5_dl_05004C40[] = {
// 0x05004D48 - 0x05004E80
const Gfx bubba_seg5_dl_05004D48[] = {
gsSPLight(&bubba_seg5_lights_05004408.l, 1),
gsSPLight(&bubba_seg5_lights_05004408.a, 2),
gsSPLightColor(LIGHT_1, 0xf1a68cff),
gsSPLightColor(LIGHT_2, 0x48312aff),
gsSPVertex(bubba_seg5_vertex_05004870, 13, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 2, 4, 5, 0x0, 4, 6, 5, 0x0),
@@ -272,16 +260,16 @@ const Gfx bubba_seg5_dl_05004D48[] = {
gsSP2Triangles(10, 11, 7, 0x0, 3, 7, 0, 0x0),
gsSP2Triangles( 0, 11, 1, 0x0, 6, 10, 9, 0x0),
gsSP2Triangles(12, 10, 6, 0x0, 12, 11, 10, 0x0),
gsSPLight(&bubba_seg5_lights_05004438.l, 1),
gsSPLight(&bubba_seg5_lights_05004438.a, 2),
gsSPLightColor(LIGHT_1, 0x361a1cff),
gsSPLightColor(LIGHT_2, 0x100708ff),
gsSPVertex(bubba_seg5_vertex_05004940, 9, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 7, 0x0, 5, 6, 3, 0x0),
gsSP2Triangles( 3, 8, 4, 0x0, 7, 6, 5, 0x0),
gsSP2Triangles( 8, 2, 1, 0x0, 8, 1, 0, 0x0),
gsSP1Triangle( 4, 8, 0, 0x0),
gsSPLight(&bubba_seg5_lights_05004420.l, 1),
gsSPLight(&bubba_seg5_lights_05004420.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x4c4c4cff),
gsSPVertex(bubba_seg5_vertex_050049D0, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 0, 0x0, 0, 5, 3, 0x0),
@@ -316,22 +304,10 @@ const Gfx bubba_seg5_dl_05004E80[] = {
};
// 0x05004F30
static const Lights1 bubba_seg5_lights_05004F30 = gdSPDefLights1(
0x48, 0x31, 0x2a,
0xf1, 0xa6, 0x8c, 0x28, 0x28, 0x28
);
// 0x05004F48
static const Lights1 bubba_seg5_lights_05004F50 = gdSPDefLights1(
0x4c, 0x4c, 0x4c,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x05004F60
static const Lights1 bubba_seg5_lights_05004F60 = gdSPDefLights1(
0x0a, 0x07, 0x08,
0x22, 0x1a, 0x1c, 0x28, 0x28, 0x28
);
// 0x05004F78
static const Vtx bubba_seg5_vertex_05004F78[] = {
@@ -466,8 +442,8 @@ const Gfx bubba_seg5_dl_05005538[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05000008),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bubba_seg5_lights_05004F30.l, 1),
gsSPLight(&bubba_seg5_lights_05004F30.a, 2),
gsSPLightColor(LIGHT_1, 0xf1a68cff),
gsSPLightColor(LIGHT_2, 0x48312aff),
gsSPVertex(bubba_seg5_vertex_05004F78, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
gsSP2Triangles( 4, 0, 5, 0x0, 5, 0, 2, 0x0),
@@ -480,8 +456,8 @@ const Gfx bubba_seg5_dl_050055A0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05001408),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bubba_seg5_lights_05004F50.l, 1),
gsSPLight(&bubba_seg5_lights_05004F50.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x4c4c4cff),
gsSPVertex(bubba_seg5_vertex_05004FE8, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0),
gsSP2Triangles( 0, 5, 3, 0x0, 6, 5, 0, 0x0),
@@ -541,8 +517,8 @@ const Gfx bubba_seg5_dl_05005738[] = {
// 0x05005840 - 0x05005978
const Gfx bubba_seg5_dl_05005840[] = {
gsSPLight(&bubba_seg5_lights_05004F30.l, 1),
gsSPLight(&bubba_seg5_lights_05004F30.a, 2),
gsSPLightColor(LIGHT_1, 0xf1a68cff),
gsSPLightColor(LIGHT_2, 0x48312aff),
gsSPVertex(bubba_seg5_vertex_05005368, 13, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
gsSP2Triangles( 5, 2, 1, 0x0, 1, 6, 5, 0x0),
@@ -551,16 +527,16 @@ const Gfx bubba_seg5_dl_05005840[] = {
gsSP2Triangles(11, 6, 1, 0x0, 9, 10, 8, 0x0),
gsSP2Triangles(12, 5, 9, 0x0, 7, 5, 12, 0x0),
gsSP2Triangles( 9, 8, 12, 0x0, 0, 11, 1, 0x0),
gsSPLight(&bubba_seg5_lights_05004F60.l, 1),
gsSPLight(&bubba_seg5_lights_05004F60.a, 2),
gsSPLightColor(LIGHT_1, 0x221a1cff),
gsSPLightColor(LIGHT_2, 0xa0708ff),
gsSPVertex(bubba_seg5_vertex_05005438, 9, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 5, 4, 6, 0x0, 6, 4, 3, 0x0),
gsSP2Triangles( 3, 7, 6, 0x0, 3, 8, 7, 0x0),
gsSP2Triangles( 7, 8, 0, 0x0, 8, 1, 0, 0x0),
gsSP1Triangle( 8, 2, 1, 0x0),
gsSPLight(&bubba_seg5_lights_05004F50.l, 1),
gsSPLight(&bubba_seg5_lights_05004F50.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x4c4c4cff),
gsSPVertex(bubba_seg5_vertex_050054C8, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0),
gsSP2Triangles( 0, 4, 1, 0x0, 5, 6, 0, 0x0),

View File

@@ -1,10 +1,6 @@
// Bullet Bill
// 0x0500BA90
static const Lights1 bullet_bill_seg5_lights_0500BA90 = gdSPDefLights1(
0x06, 0x07, 0x14,
0x19, 0x1c, 0x52, 0x28, 0x28, 0x28
);
// 0x0500BAA8
ALIGNED8 static const Texture bullet_bill_seg5_texture_0500BAA8[] = {
@@ -255,8 +251,8 @@ const Gfx bullet_bill_seg5_dl_0500E5E8[] = {
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, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bullet_bill_seg5_lights_0500BA90.l, 1),
gsSPLight(&bullet_bill_seg5_lights_0500BA90.a, 2),
gsSPLightColor(LIGHT_1, 0x191c52ff),
gsSPLightColor(LIGHT_2, 0x60714ff),
gsSPVertex(bullet_bill_seg5_vertex_0500DAA8, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),

View File

@@ -60,28 +60,12 @@ const Gfx bully_seg5_dl_05000398[] = {
};
// 0x05000408
static const Lights1 bully_seg5_lights_05000408 = gdSPDefLights1(
0x00, 0x38, 0x00,
0x00, 0xe3, 0x00, 0x28, 0x28, 0x28
);
// 0x05000420
static const Lights1 bully_seg5_lights_05000420 = gdSPDefLights1(
0x00, 0x3f, 0x00,
0x00, 0xff, 0x00, 0x28, 0x28, 0x28
);
// Unreferenced light group
UNUSED static const Lights1 bully_lights_unused = gdSPDefLights1(
0x3f, 0x29, 0x00,
0xff, 0xa5, 0x00, 0x28, 0x28, 0x28
);
// 0x05000450
static const Lights1 bully_seg5_lights_05000450 = gdSPDefLights1(
0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x28, 0x28, 0x28
);
// 0x05000468
ALIGNED8 static const Texture bully_seg5_texture_05000468[] = {
@@ -312,8 +296,8 @@ static const Vtx bully_seg5_vertex_05003608[] = {
// 0x05003708 - 0x050037A0
const Gfx bully_seg5_dl_05003708[] = {
gsSPLight(&bully_seg5_lights_05000408.l, 1),
gsSPLight(&bully_seg5_lights_05000408.a, 2),
gsSPLightColor(LIGHT_1, 0xe300ff),
gsSPLightColor(LIGHT_2, 0x3800ff),
gsSPVertex(bully_seg5_vertex_05002C68, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
gsSP2Triangles( 2, 3, 4, 0x0, 1, 5, 6, 0x0),
@@ -328,8 +312,8 @@ const Gfx bully_seg5_dl_05003708[] = {
// 0x050037A0 - 0x05003838
const Gfx bully_seg5_dl_050037A0[] = {
gsSPLight(&bully_seg5_lights_05000420.l, 1),
gsSPLight(&bully_seg5_lights_05000420.a, 2),
gsSPLightColor(LIGHT_1, 0xff00ff),
gsSPLightColor(LIGHT_2, 0x3f00ff),
gsSPVertex(bully_seg5_vertex_05002D88, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0),
gsSP2Triangles( 3, 1, 0, 0x0, 5, 6, 7, 0x0),
@@ -344,8 +328,8 @@ const Gfx bully_seg5_dl_050037A0[] = {
// 0x05003878 - 0x05003C50
const Gfx bully_seg5_dl_05003878[] = {
gsSPLight(&bully_seg5_lights_05000450.l, 1),
gsSPLight(&bully_seg5_lights_05000450.a, 2),
gsSPLightColor(LIGHT_1, 0xff),
gsSPLightColor(LIGHT_2, 0xff),
gsSPVertex(bully_seg5_vertex_05002F08, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0),
gsSP2Triangles( 1, 3, 4, 0x0, 4, 3, 5, 0x0),

View File

@@ -1,16 +1,8 @@
// Cannon Barrel
// 0x08005878
static const Lights1 cannon_barrel_seg8_lights_08005878 = gdSPDefLights1(
0x4c, 0x4c, 0x4c,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x08005890
static const Lights1 cannon_barrel_seg8_lights_08005890 = gdSPDefLights1(
0x00, 0x00, 0x0f,
0x00, 0x00, 0x32, 0x28, 0x28, 0x28
);
// 0x080058A8
ALIGNED8 static const Texture cannon_barrel_seg8_texture_080058A8[] = {
@@ -92,8 +84,8 @@ const Gfx cannon_barrel_seg8_dl_08006408[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cannon_barrel_seg8_texture_080058A8),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&cannon_barrel_seg8_lights_08005878.l, 1),
gsSPLight(&cannon_barrel_seg8_lights_08005878.a, 2),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x4c4c4cff),
gsSPVertex(cannon_barrel_seg8_vertex_080060A8, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 2, 4, 5, 0x0, 2, 1, 4, 0x0),
@@ -108,8 +100,8 @@ const Gfx cannon_barrel_seg8_dl_08006408[] = {
// 0x080064C0 - 0x08006660
const Gfx cannon_barrel_seg8_dl_080064C0[] = {
gsSPLight(&cannon_barrel_seg8_lights_08005890.l, 1),
gsSPLight(&cannon_barrel_seg8_lights_08005890.a, 2),
gsSPLightColor(LIGHT_1, 0x32ff),
gsSPLightColor(LIGHT_2, 0xfff),
gsSPVertex(cannon_barrel_seg8_vertex_080061A8, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 4, 0x0, 6, 4, 3, 0x0),

Some files were not shown because too many files have changed in this diff Show More