mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-06 01:58:13 -04:00
Impl Sky and SkyActors (#630)
* Create Cloud.cpp * Create Cloud.h * Fix the cloud * Cleanup * More cleanup * Update Track.h * Refactor SkyboxCloud position calculations * Update SkyboxStar.cpp * Update SkyboxStar.cpp * Refactor SkyboxStar.cpp by removing redundant code * Update SkyboxCloud.cpp * Refactor SkyboxSnow.cpp by reordering includes * Update SkyboxCloud.h * Refactor SkyboxStar.h for improved formatting * Impl skyboxcloud * Update comment * update comment * Work now * Fully impl Sky * Fix define * Fix args
This commit is contained in:
@@ -83,10 +83,8 @@ enum ActorType {
|
||||
ACTOR_CAR,
|
||||
ACTOR_KIWANO_FRUIT
|
||||
};
|
||||
size_t CM_GetActorSize(void);
|
||||
#define ACTOR_LIST_SIZE CM_GetActorSize()
|
||||
|
||||
struct Actor* CM_GetActor(size_t);
|
||||
#define ACTOR_LIST_SIZE CM_GetActorSize()
|
||||
#define GET_ACTOR(index) CM_GetActor(index)
|
||||
|
||||
// Actor flags
|
||||
|
||||
@@ -124,15 +124,6 @@
|
||||
#define FOUR_PLAYERS_SELECTED 4
|
||||
#define SELECTED_PLAYER_DEFINES_TOTAL 5
|
||||
|
||||
// Camera index into cameras array
|
||||
enum CameraId {
|
||||
CAMERA_ONE = 0,
|
||||
CAMERA_TWO,
|
||||
CAMERA_THREE,
|
||||
CAMERA_FOUR,
|
||||
CAMERA_FREECAM
|
||||
};
|
||||
|
||||
enum PlayerId {
|
||||
PLAYER_NONE = -1,
|
||||
PLAYER_ONE = 0,
|
||||
|
||||
+1
-1
@@ -421,7 +421,7 @@ extern s32 gNextFreeLeafParticle;
|
||||
// See `func_800704A0` and `func_800703E0` for star initialization
|
||||
typedef struct {
|
||||
// rotY and posY seem relative to the camera.
|
||||
// See `func_800788F8` to see how rotY is used to decide whether and where to display clouds/stars
|
||||
// See `func_800788F8` (SkyCloud Tick2 now) to see how rotY is used to decide whether and where to display clouds/stars
|
||||
// See `func_80078A44` and `func_800789AC` to see how stars and clouds (respectively) are looped over
|
||||
/* 0x00 */ u16 rotY;
|
||||
/* 0x02 */ u16 posY;
|
||||
|
||||
Reference in New Issue
Block a user