From 30311845eb5bb8f63463bdce903bf214e08d3a67 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Sat, 20 Jan 2024 00:26:43 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20n64decom?= =?UTF-8?q?p/mk64@da5c5b56245b5083f4822a2c87acbc128823e939=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actors.html | 4 +- actorsmenu.html | 4 +- actorsmenu.js | 2 +- basics.html | 10 +- basics.js | 40 ++- boostramps.html | 10 +- buildwindows.html | 32 +-- compiling.html | 60 ++--- concepts.html | 72 +++-- controlflow.html | 160 ++++++++++-- courses.html | 2 +- coursesmenu.js | 6 +- index.html | 2 +- math_8h.js | 2 +- md_tools_doxygen_syms.html | 2 +- navtreedata.js | 124 ++++----- navtreeindex22.js | 28 +- navtreeindex23.js | 28 +- navtreeindex24.js | 26 +- navtreeindex25.js | 26 +- navtreeindex26.js | 26 +- navtreeindex27.js | 28 +- navtreeindex28.js | 26 +- navtreeindex29.js | 26 +- navtreeindex3.js | 24 +- navtreeindex30.js | 28 +- navtreeindex31.js | 26 +- navtreeindex32.js | 26 +- navtreeindex33.js | 26 +- navtreeindex34.js | 26 +- navtreeindex35.js | 26 +- navtreeindex36.js | 26 +- navtreeindex37.js | 26 +- navtreeindex38.js | 26 +- navtreeindex39.js | 26 +- navtreeindex40.js | 26 +- navtreeindex41.js | 26 +- navtreeindex42.js | 26 +- navtreeindex43.js | 26 +- navtreeindex44.js | 26 +- navtreeindex45.js | 26 +- navtreeindex46.js | 26 +- navtreeindex47.js | 26 +- navtreeindex48.js | 26 +- navtreeindex49.js | 26 +- navtreeindex50.js | 26 +- navtreeindex51.js | 26 +- navtreeindex52.js | 26 +- navtreeindex53.js | 28 +- navtreeindex54.js | 26 +- navtreeindex55.js | 26 +- navtreeindex56.js | 26 +- navtreeindex57.js | 26 +- navtreeindex58.js | 26 +- navtreeindex59.js | 26 +- navtreeindex60.js | 26 +- navtreeindex61.js | 26 +- navtreeindex62.js | 26 +- navtreeindex63.js | 26 +- navtreeindex64.js | 26 +- navtreeindex65.js | 26 +- navtreeindex66.js | 26 +- navtreeindex67.js | 26 +- navtreeindex68.js | 26 +- navtreeindex69.js | 26 +- navtreeindex70.js | 26 +- navtreeindex71.js | 26 +- navtreeindex72.js | 36 +-- navtreeindex73.js | 26 +- navtreeindex74.js | 30 +-- navtreeindex75.js | 24 +- navtreeindex76.js | 24 +- navtreeindex77.js | 24 +- navtreeindex78.js | 24 +- navtreeindex79.js | 24 +- navtreeindex80.js | 24 +- navtreeindex81.js | 24 +- navtreeindex82.js | 24 +- navtreeindex83.js | 11 + objects.html | 2 +- pages.html | 4 +- search/all_2.js | 10 +- search/all_3.js | 522 ++++++++++++++++++------------------- search/pages_1.js | 2 +- search/pages_2.js | 4 +- surfacetypes.html | 50 +++- terminology.html | 18 +- tutorials.html | 8 +- tutorials.js | 4 +- 89 files changed, 1513 insertions(+), 1272 deletions(-) diff --git a/actors.html b/actors.html index 90f5039e6..a9d670ce4 100644 --- a/actors.html +++ b/actors.html @@ -90,7 +90,7 @@ $(document).ready(function(){initNavTree('actors.html',''); initResizable(); });

Actors

If you are familiar with oot or sm64 prepare to be very disappointed. Both games split actors into separate files. In an unorderly fashion, mk64 appears to place all actors in the same file save for the odd exception.

-

Actor setup:

// Loop through the actor list and run that particular actors behaviour.
+

Example actor setup based on update_course_actors

// Loop through the actor list and run that particular actors behaviour.
for actorListSize {
actor = gActorList[i]
switch(actor->type) {
@@ -119,7 +119,7 @@ Actors

Check actor_types.h for a full list of options. You can create a new actor struct for your actor and customize it or use a predefined one. All actor structs must retain the same size. Generally, the types in the struct may be modified so long as type and flags stay the same as those are used elsewhere.

See update_obj_railroad_crossing for an example of how a timer may be setup and used.

-

Audio may be activated in the following method: func_800C98B8(actor->pos, actor->velocity, s32_audio_flag);

+

Audio may be activated using the following method: func_800C98B8

For more complex uses such as distanceFrom and collision, you will need to analyze the other actors.

diff --git a/actorsmenu.html b/actorsmenu.html index d7dc96df8..256285099 100644 --- a/actorsmenu.html +++ b/actorsmenu.html @@ -96,10 +96,10 @@ $(document).ready(function(){initNavTree('actorsmenu.html',''); initResizable();

gActorList contains:

trees, bushes, falling rocks, kiwano-fruit, banana, shells, piranha-plant, train wheels, rail-road crossing, cows, yoshi-valley's egg, spinning signs, palm trees, paddle for the paddle-wheeled boat, wheels for cars/trucks, etc.

The actor code has two main parts; the update code and the render code. The update code alters the position/rotation of the object whereas the render code displays the object on the screen.

-

gObjectList contains:

thwomps, bowser fire-breath, moles, hedgehogs, snowmen, crabs, etc (also, probably penguins and birds).
+

gObjectList contains:

thwomps, bowser fire-breath, moles, hedgehogs, snowmen, crabs, particles, leaves, etc (also, probably penguins and birds).

The object system is much more complex than actors and is not well documented.

-

+