Commit Graph

679 Commits

Author SHA1 Message Date
MegaMech 91bd30c043
Merge branch 'master' into effects 2025-07-17 20:52:57 -06:00
MegaMech 0a27fbbba0
Revert "Document sound effects (#735)" (#741)
This reverts commit e88f33fb18.
2025-07-17 20:52:44 -06:00
Jed Grabman e88f33fb18
Document sound effects (#735)
* Naming sound effects

* Update sound effect names and categorize

* Add bomb effect and fix bug

* HIT_FAKE_ITEM -> EXPLOSION_CRASH

* Rename sound_effects to triggers

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-17 20:44:27 -06:00
MegaMech 6c60f5d785
Fix alfa for `find_vtx_and_set_colours()` (#739)
* Update render_courses.c

* More fixes
2025-07-17 13:04:29 -06:00
MegaMech b8823f12a1
Update cpu_vehicles_camera_path.c (#738) 2025-07-12 20:16:14 -06:00
coco875 e19b3b702e
Update torch (#736)
* Update torch

* Update torch

* Update torch

* Update torch
2025-07-08 21:00:20 -06:00
Jed Grabman f7e88a24cb Formatting fixes 2025-07-01 14:52:25 -04:00
Jed Grabman 495a7f428c Replace effect bit_flags with defined values 2025-07-01 14:21:33 -04:00
Jed Grabman 1dc1592082 Merge branch 'master' of https://github.com/n64decomp/mk64 into effects 2025-06-30 23:24:24 -04:00
Jed Grabman ec325489dc Rename some effects 2025-06-30 23:08:35 -04:00
Jed Grabman 5163d69277 Document more effects 2025-06-30 20:33:58 -04:00
Jed Grabman 52e32c4d86 Separate effect bit-flags into components 2025-06-30 15:36:25 -04:00
arefdsg 4975cb2c42
Update README.md (#718)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-30 13:27:42 -06:00
Jed Grabman 3190ad2a7a Replace effect magic numbers with defined values 2025-06-30 14:36:17 -04:00
Jed Grabman c16d6f9934 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
2025-06-30 05:16:20 -04:00
Jed Grabman 6b08e60fe6
Document time trial input replay system (#730)
* Document time trial input replay system

Documents how the input replay system works in time trials. This is used for
* Course ghosts (on the raceways)
* Player ghosts
* Replays

* Rename ghosts/replays and minor cleanup

Refer to staff and player ghosts in time trials as replays.
Refer to the basic replay as a "post time trial replay"
Change variable / function names to reflect terminology change

* Define replay magic values

* Rename staff_ghosts files to replays

Renames staff_ghosts files to replays, since they also deal with player ghosts and post time trial replays.

Also, changes staff_ghosts_loop -> replays_loop

* REPLAY_NOT_FRAME_COUNTER -> REPLAY_CLEAR_FRAME_COUNTER

* Add replays header and format

* Update replays.c

* Name load replay functions

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-28 16:36:36 -06:00
Jed Grabman 91ee36c539
Rewrite of math_util (#727)
* 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>
2025-06-28 11:39:14 -06:00
MegaMech 0942ffd62c
Merge branch 'master' into master 2025-06-28 11:38:58 -06:00
coco875 d2b3217754
document vertex of player (#729)
* document vertex

* Update render_player.c
2025-06-28 11:35:02 -06:00
Jed Grabman fb966fb3df Math values renamed
Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate

Arguments:
vecTrans -> translate
2025-06-28 12:15:55 -04:00
Jed Grabman 14f34c7ec5 Merge branch 'master' of https://github.com/n64decomp/mk64 2025-06-23 22:40:02 -04:00
Jed Grabman e594d1264b Change function name
angle_from_coords -> get_angle_between_coords
2025-06-23 16:04:56 -04:00
Jed Grabman 227c7ae650 Make skyboxes static 2025-06-23 16:04:19 -04:00
Jed Grabman 669b545948 Make format check
Formatting updates suggested by make format
2025-06-23 12:39:33 -04:00
Jed Grabman 1abb05ebc1 doxygen whitespace alignment
Improve readability of doxygen info by aligning text
2025-06-23 12:29:40 -04:00
Jed Grabman a98a5c8cb5 Rename functions
Renamed multiple functions for accuracy or clarity
2025-06-23 12:21:14 -04:00
Jed Grabman 8876a00cb8 Partial documentation for calculate_orientation_matrix
Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.
2025-06-23 11:41:16 -04:00
Jed Grabman 739a31b03e doxygen and other documentation
* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names
2025-06-23 07:51:10 -04:00
Jed Grabman cf5fa11006 Fix style issues
update variables / parameters to use camelCase instead of snakeCase
2025-06-23 02:23:48 -04:00
Jed Grabman 3bac8efecc Additional merge 2025-06-22 08:58:11 -04:00
Jed Grabman 7037bd623c Merge changes from newly accepted PRs 2025-06-22 08:56:12 -04:00
Jed Grabman fad92d6643 Improve documentation for math_util
Improves a number of functions by giving descriptive argument names and comments
2025-06-22 08:50:36 -04:00
Oleksandr Kalko b329e813e6
Upgrade Torch to include CMake 4.0 fixes (#725)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 13:00:14 -06:00
ZackWeinstein d6076b5cb7
Labeling particle related code (#719)
* 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>
2025-06-21 12:59:32 -06:00
Jed Grabman 184f5939f2
Shiftability fix and documentation (#723)
* Shiftability fix and documentation

* Allow setting `AVOID_UB=1` directly while building
* Set `AVOID_UB` when building with DEBUG.
* Document options for enabling shiftability
* Document `make clean`

* Delete HTML file

* Update compiling.md

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 12:50:57 -06:00
Jed Grabman 3288752b47
Document projection matrix function (#722)
* 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

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 12:15:45 -06:00
MegaMech 573110880a
Merge branch 'master' into master 2025-06-21 12:14:38 -06:00
Maciek Baron ac4dfe3211
Document alpha, movement (#721)
* Document alpha, movement

* Fix typo

* Add missing ~
2025-06-21 11:56:23 -06:00
Jed Grabman 28bc707978 Document math functions
* Give all functions in src\racing\math_util.c descriptive names
2025-06-20 23:22:46 -04:00
Jed Grabman 806f992df7 Style guide updates
Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment
2025-06-15 20:14:39 -04:00
Jed Grabman b372dc7359 Fix loop index bug
Fix straightforward loop index bug introduced in last commit
2025-06-15 19:22:05 -04:00
Jed Grabman a019335489 Document projection matrix function
Document function for computing a projection matrix. Used for camera and graphics.
2025-06-14 01:20:06 -04:00
Maciek Baron 8d4fa64f5a
Document functions and variables (balloons, acceleration, a button handling etc.) (#720)
* 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
2025-06-10 13:59:02 -06:00
coco875 c6e40bcec0
fix name introduce by the previous pr (#701)
* fix more name

* Update cpu_vehicles_camera_path.c

* more fix of name

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-05-18 14:20:05 -06:00
coco875 c6dcc84092
document greyscale math (#700)
* document greyscale math

* fix match

* Update menu_items.c

* Update menu_items.c

* Update menu_items.c

* Update menu_items.h
2025-05-18 14:19:43 -06:00
Oleksandr Kalko d7e434213f
[Documentation] Update compiling for EU (#713)
#710 changed the environment variables for compiling EU roms
2025-05-12 05:32:12 -06:00
AloXado320 668523b9cf
Fix progress rounding script (#711)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-05-11 19:16:17 -06:00
MegaMech ffa7bdf517
Update README.md (#712) 2025-05-11 19:07:42 -06:00
MegaMech 89fb420555
Match Mario Kart 64 (#709)
* 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
2025-05-11 18:03:50 -06:00
AloXado320 30fef62f81
Fix EU build and related cleanup and fixes (#710)
* Fix EU build and eu-final offsets

* Fix instrument align and bring EU matches

* Fix EU trig table segment

* Label audio_init

* Simplify float comments

* Proper EU name version defines
2025-05-11 18:00:37 -06:00