Implement FakeObjects (Just poles for now)
Build libsm64 / Build libsm64 for linux (push) Successful in 33s
Build libsm64 / Build libsm64 for web (push) Successful in 30s
Build libsm64 / Build libsm64 for windows (push) Successful in 23s

This commit is contained in:
2026-05-31 16:44:11 -05:00
parent b096207a10
commit ede2099ff5
12 changed files with 418 additions and 25 deletions
+25
View File
@@ -0,0 +1,25 @@
//
// Created by nepushiro on 5/29/26.
//
#ifndef LIBSM64_FAKEOBJECT_H
#define LIBSM64_FAKEOBJECT_H
#endif //LIBSM64_FAKEOBJECT_H
#include <stdint.h>
#include <types.h>
#include <stdbool.h>
struct FakeObject
{
struct Object object;
};
void fake_object_init(struct FakeObject *fake, float x, float y, float z);
void fake_object_sync_position(struct FakeObject *fake);
bool fake_object_overlaps_mario(struct FakeObject *fake, struct MarioState *m);
void fake_object_add_collision(struct FakeObject *fake, struct MarioState *m);
void fake_object_apply_pole(struct FakeObject *fake);
void fake_object_set_preset(struct FakeObject *fake, uint32_t preset);