11 Commits

Author SHA1 Message Date
Nepu fd11813208 Fix assignment of animFrame in outState (#75)
Build libsm64 / Build libsm64 for linux (push) Failing after 1m16s
Build libsm64 / Build libsm64 for web (push) Failing after 34s
Build libsm64 / Build libsm64 for windows (push) Failing after 4s
Build libsm64 / Build libsm64 for macos (push) Has been cancelled
2026-02-13 09:22:57 -03:00
Jeremy Burns fb93a63df0 Merge pull request #73 from MeltyPlayer/main
Exposed forwardVelocity, animID, and animFrame in outState.
2025-09-17 14:26:01 -06:00
Jeremy Burns 8e4c594195 Merge pull request #74 from MeltyPlayer/patch-1
Added libsm64-sharp to the list of bindings.
2025-09-17 14:25:49 -06:00
MeltyPlayer 9ebc34d49b Added libsm64-sharp to the list of bindings. 2025-09-16 23:44:37 -05:00
MeltyPlayer 685da11088 Exposed forwardVelocity, animID, and animFrame in outState. 2025-09-16 00:15:36 -05:00
Jeremy Burns dc48ce1128 Merge pull request #71 from lammmab/add-odin-binding-readme
Add ODIN binding README
2025-06-11 20:44:50 -06:00
Lammmab bc2734c842 Add ODIN binding README 2025-06-11 22:40:03 -04:00
Jeremy Burns 2195849aba Merge pull request #69 from headshot2017/master
Add Unity BepInEx plugin to README bindings
2025-04-09 16:24:19 -06:00
Headshotnoby 59d701f518 Add Unity BepInEx plugin to README bindings 2025-04-07 00:11:09 -04:00
Jeremy Burns cc4ca77a87 Merge pull request #67 from headshot2017/master
Add MelonLoader mod to readme
2025-03-04 10:37:19 -07:00
Headshotnoby 1360e02b94 Add MelonLoader mod to readme 2025-02-17 00:03:01 -04:00
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -14,10 +14,14 @@ project under the `test` directory as well, demonstrating usage of the library.
## Bindings and plugins ## Bindings and plugins
- [Rust bindings](https://github.com/nickmass/libsm64-rust) - [Rust bindings](https://github.com/nickmass/libsm64-rust)
- [Odin bindings](https://github.com/lammmab/libsm64-odin)
- [Unity plugin](https://github.com/libsm64/libsm64-unity) - [Unity plugin](https://github.com/libsm64/libsm64-unity)
- [Blender add-on](https://github.com/libsm64/libsm64-blender) - [Blender add-on](https://github.com/libsm64/libsm64-blender)
- [Godot add-on](https://github.com/Brawmario/libsm64-godot) - [Godot add-on](https://github.com/Brawmario/libsm64-godot)
- [Game Maker 8 extension](https://github.com/headshot2017/libsm64-gm8) - [Game Maker 8 extension](https://github.com/headshot2017/libsm64-gm8)
- [Unity MelonLoader mod](https://github.com/headshot2017/libsm64-unity-melonloader)
- [Unity BepInEx plugin](https://github.com/sashaantipov2012/libsm64-unity-bepinex)
- [C# bindings](https://github.com/MeltyPlayer/libsm64-sharp)
## Building on Mac and Linux ## Building on Mac and Linux
+7
View File
@@ -15,6 +15,7 @@
#include "decomp/engine/math_util.h" #include "decomp/engine/math_util.h"
#include "decomp/include/sm64.h" #include "decomp/include/sm64.h"
#include "decomp/include/seq_ids.h" #include "decomp/include/seq_ids.h"
#include "decomp/include/types.h"
#include "decomp/shim.h" #include "decomp/shim.h"
#include "decomp/memory.h" #include "decomp/memory.h"
#include "decomp/global_state.h" #include "decomp/global_state.h"
@@ -255,7 +256,13 @@ SM64_LIB_FN void sm64_mario_tick( int32_t marioId, const struct SM64MarioInputs
vec3f_copy( outState->position, gMarioState->pos ); vec3f_copy( outState->position, gMarioState->pos );
vec3f_copy( outState->velocity, gMarioState->vel ); vec3f_copy( outState->velocity, gMarioState->vel );
outState->faceAngle = (float)gMarioState->faceAngle[1] / 32768.0f * 3.14159f; outState->faceAngle = (float)gMarioState->faceAngle[1] / 32768.0f * 3.14159f;
outState->forwardVelocity = gMarioState->forwardVel;
outState->action = gMarioState->action; outState->action = gMarioState->action;
struct AnimInfo animInfo = gMarioState->marioObj->header.gfx.animInfo;
outState->animID = animInfo.animID;
outState->animFrame = animInfo.animFrame;
outState->flags = gMarioState->flags; outState->flags = gMarioState->flags;
outState->particleFlags = gMarioState->particleFlags; outState->particleFlags = gMarioState->particleFlags;
outState->invincTimer = gMarioState->invincTimer; outState->invincTimer = gMarioState->invincTimer;
+3
View File
@@ -58,8 +58,11 @@ struct SM64MarioState
float position[3]; float position[3];
float velocity[3]; float velocity[3];
float faceAngle; float faceAngle;
float forwardVelocity;
int16_t health; int16_t health;
uint32_t action; uint32_t action;
int32_t animID;
int16_t animFrame;
uint32_t flags; uint32_t flags;
uint32_t particleFlags; uint32_t particleFlags;
int16_t invincTimer; int16_t invincTimer;