* Document steering
* Refer to steering position, instead of steering angle
Refer to steering position instead of steering angle, to make clear that it is not the same thing as degrees.
* Change comment to block format
* rename some texture
* ok document drifting effect and player particle
* continue rename
* push more rename
* more documentation
* minor rename test
* continue rename texture
* continue rename
* some rename
* more rename
* other fix
* fix comment
* fix a missing I
* fix a mistake
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* unk_044 initial documentation
* Define player.unk_044 magic values
* Turns more than 5 degrees
* Lakitu Effects
* UNK_0B6 (effect graphics) documentation
* UNK_002 documentation
* Document UNK_0DE and define magic values
* Use defined player types
* Rename `player->unk_0CA` to `lakitu_props`
* rename `player->unk_0B6` to `kart_graphics`
* Rename `player->unk_0DE` to `oobProps`
* rename `player->unk_044` to kartProps
* Formatting updates
* Use camelCase instead of snake_case for player properties
* Fix reference to wrong attribute in comment
* Rename `PRESS_A` to `THROTTLE`
Rename `PRESS_A` to `THROTTLE` to describe the Kart state, which may be slightly different than just pressing A.
* Document projection matrix function
Document function for computing a projection matrix. Used for camera and graphics.
* Fix loop index bug
Fix straightforward loop index bug introduced in last commit
* Style guide updates
Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment
* Document math functions
* Give all functions in src\racing\math_util.c descriptive names
* Improve documentation for math_util
Improves a number of functions by giving descriptive argument names and comments
* Additional merge
* Fix style issues
update variables / parameters to use camelCase instead of snakeCase
* doxygen and other documentation
* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names
* Partial documentation for calculate_orientation_matrix
Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.
* Rename functions
Renamed multiple functions for accuracy or clarity
* doxygen whitespace alignment
Improve readability of doxygen info by aligning text
* Make format check
Formatting updates suggested by make format
* Make skyboxes static
* Change function name
angle_from_coords -> get_angle_between_coords
* Math values renamed
Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate
Arguments:
vecTrans -> translate
* Document many effects
Define effects for
* Braking
* Drifting
* Spinning out (driving and bananas)
* Mini turbos
* Losing at GP
* Tumbling on terrain
* CPU rubberbanding
And substitute some pre-existing defined effect names in place of bit flags
* Replace effect magic numbers with defined values
* Separate effect bit-flags into components
* Document more effects
* Rename some effects
* Replace effect bit_flags with defined values
* Formatting fixes
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* Document projection matrix function
Document function for computing a projection matrix. Used for camera and graphics.
* Fix loop index bug
Fix straightforward loop index bug introduced in last commit
* Style guide updates
Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment
* Document math functions
* Give all functions in src\racing\math_util.c descriptive names
* Improve documentation for math_util
Improves a number of functions by giving descriptive argument names and comments
* Additional merge
* Fix style issues
update variables / parameters to use camelCase instead of snakeCase
* doxygen and other documentation
* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names
* Partial documentation for calculate_orientation_matrix
Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.
* Rename functions
Renamed multiple functions for accuracy or clarity
* doxygen whitespace alignment
Improve readability of doxygen info by aligning text
* Make format check
Formatting updates suggested by make format
* Make skyboxes static
* Change function name
angle_from_coords -> get_angle_between_coords
* Math values renamed
Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate
Arguments:
vecTrans -> translate
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* Labeling particle related code
* More labeling. Naming pass on what was labeled last commit
* Stick X clamped with deadzone
* Renaming TyreParticle to Particle
* Matching coco's names and renaming some already labeled to keep style consistent
* Minor extra particle labeling
* Small extra labeling. Restoring some removed newlines
* One last newline adjustment
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* Document various functions and variables
* Fix code changes
* Rename function based on discussion
* Identify global table of player speeds
* Improve names of functions
* Label further things related to playerIndex
* Label further balloon related things
* Document further balloon related things
* Use STAR_DURATION
* Update vars
* Fix missing arg
* Commit unpr'd matches
* fix compile
* Commit matching func_80086074
* More matches
* Fix missed labelling
* menus.c formatting
* More matches
* Match update_player_path_completion
* Formatting
* Match func_80050E34
* Match EU Audio init
* Match func_800C16E8
* Match synthesis_process_note
* Match func_80009B60
* Match
* Match cpu_use_item_strategy
* Match render_menus
* match last func
* some rename
* type menu
* continue rename and place const
* Renames and doc
* more
* buffer vars
* clang format
* continue rename
* some rename and get it compile (but don't match for obscure reason)
* get it match again and fix some warning
* fix all warning
* Match 6 functions
* continue rename
* load img renames and first step or label menu items
* MenuItem struct names and some rename
* rename around
* rename code_80091750 to menu_item
* clean up a little
* Update menu_item.h
* document waypoint and more
* Revert "document waypoint and more"
This reverts commit 5e6eb4fbcc.
* apply review
* Update menu_item.c
* fix some review
* rename func_8009E620 to clear_menus
* do a rename
* apply review
* finish rename normally
* more small rename
* few fix of name
* few more fix
* minor fix
* Update menus.c
* last rename normally
* Update render_menus.s
* Update menu_items.c
* Renames seg2 textures.c
* MENU_ITEMtype --> MENU_ITEM_TYPE
* remove a useless parameter
* func_80099110 --> clear_menu_textures
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
* update clang and add action
* try clang on course folder only
* forget two file
* Update course_displaylists.inc.c
* forget few other file
* Update course_vertices.inc.c
* format all code while get it match
* second pass
* format other dir
* disable clang format on bad ido code
* fix some tabulation
* revert format on tool dir
* Update clang-format.yml
* ignore gbi.h
* add some read me instruction
* fix error
* format and fixing error
* Update README.md
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* start doc collision
* fix merge
* finish rename fonction related to vehicle
* document around waypoint of vehicle
* make some modification
* make some change and rename one
* copy_ to oldPos
* doc smoke ferry and train
* some rename
* fix some renaming
* precise index
* rename a funciton
* simplify waypoint_vehicles
* change some name
* change some name
* rename move_to_point_direction
* fix some conflict
* Update code_80005FD0.c
* Update code_80005FD0.h
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
his PR cleans up segment related code in main.c.
Also cleans up the linker a bit.
Add memory pool to linker as .bss to validate that it exists properly.
Move framebuffers, gfx, and audio buffers out of racing segment and make its own segment.
Rename framebuffers.c to buffers.c as it contains more than just framebuffers.
Import asserts from sm64 to validate that code segments are not overlapping
Rename segNoload to segmentNoload
Rename 802BA370 segment to trigTables
Rename gMenuSelectionFromEndingSequence to gGotoMenu
Rename gMenuSelectionFromQuit to gGotoMode
Rename SEG_ENDING_SEQUENCES to SEG_ENDING
Rename data_821D10 to ceremonyData
Rename data_825800 to startupLogo