Compare commits
11 Commits
ce196c823d
...
fd11813208
| Author | SHA1 | Date | |
|---|---|---|---|
| fd11813208 | |||
| fb93a63df0 | |||
| 8e4c594195 | |||
| 9ebc34d49b | |||
| 685da11088 | |||
| dc48ce1128 | |||
| bc2734c842 | |||
| 2195849aba | |||
| 59d701f518 | |||
| cc4ca77a87 | |||
| 1360e02b94 |
@@ -14,10 +14,14 @@ project under the `test` directory as well, demonstrating usage of the library.
|
||||
## Bindings and plugins
|
||||
|
||||
- [Rust bindings](https://github.com/nickmass/libsm64-rust)
|
||||
- [Odin bindings](https://github.com/lammmab/libsm64-odin)
|
||||
- [Unity plugin](https://github.com/libsm64/libsm64-unity)
|
||||
- [Blender add-on](https://github.com/libsm64/libsm64-blender)
|
||||
- [Godot add-on](https://github.com/Brawmario/libsm64-godot)
|
||||
- [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
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "decomp/engine/math_util.h"
|
||||
#include "decomp/include/sm64.h"
|
||||
#include "decomp/include/seq_ids.h"
|
||||
#include "decomp/include/types.h"
|
||||
#include "decomp/shim.h"
|
||||
#include "decomp/memory.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->velocity, gMarioState->vel );
|
||||
outState->faceAngle = (float)gMarioState->faceAngle[1] / 32768.0f * 3.14159f;
|
||||
outState->forwardVelocity = gMarioState->forwardVel;
|
||||
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->particleFlags = gMarioState->particleFlags;
|
||||
outState->invincTimer = gMarioState->invincTimer;
|
||||
|
||||
@@ -58,8 +58,11 @@ struct SM64MarioState
|
||||
float position[3];
|
||||
float velocity[3];
|
||||
float faceAngle;
|
||||
float forwardVelocity;
|
||||
int16_t health;
|
||||
uint32_t action;
|
||||
int32_t animID;
|
||||
int16_t animFrame;
|
||||
uint32_t flags;
|
||||
uint32_t particleFlags;
|
||||
int16_t invincTimer;
|
||||
|
||||
Reference in New Issue
Block a user