summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorMegaMech <7255464+MegaMech@users.noreply.github.com>2024-12-05 21:41:58 -0700
committerMegaMech <7255464+MegaMech@users.noreply.github.com>2024-12-05 21:41:58 -0700
commit19135c9ee83643ea863d5725c22319e502938cac (patch)
treeec4792402d73607e1c80e8b6a4cf766c5ac0e171 /src/engine
parent7628e98e37d72aa508aa1af276ef8e3485df339c (diff)
load course dl textures from otr and move objects
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/Engine.h2
-rw-r--r--src/engine/GameObject.cpp28
-rw-r--r--src/engine/GameObject.h36
-rw-r--r--src/engine/World.cpp41
-rw-r--r--src/engine/World.h13
-rw-r--r--src/engine/courses/BansheeBoardwalk.cpp32
-rw-r--r--src/engine/courses/BigDonut.cpp11
-rw-r--r--src/engine/courses/BlockFort.cpp13
-rw-r--r--src/engine/courses/BowsersCastle.cpp37
-rw-r--r--src/engine/courses/ChocoMountain.cpp30
-rw-r--r--src/engine/courses/Course.cpp10
-rw-r--r--src/engine/courses/Course.h1
-rw-r--r--src/engine/courses/DKJungle.cpp33
-rw-r--r--src/engine/courses/DoubleDeck.cpp11
-rw-r--r--src/engine/courses/FrappeSnowland.cpp14
-rw-r--r--src/engine/courses/KalimariDesert.cpp21
-rw-r--r--src/engine/courses/KoopaTroopaBeach.cpp25
-rw-r--r--src/engine/courses/LuigiRaceway.cpp49
-rw-r--r--src/engine/courses/MarioRaceway.cpp39
-rw-r--r--src/engine/courses/MooMooFarm.cpp37
-rw-r--r--src/engine/courses/PodiumCeremony.cpp52
-rw-r--r--src/engine/courses/RainbowRoad.cpp15
-rw-r--r--src/engine/courses/RoyalRaceway.cpp52
-rw-r--r--src/engine/courses/SherbetLand.cpp15
-rw-r--r--src/engine/courses/Skyscraper.cpp32
-rw-r--r--src/engine/courses/TestCourse.cpp3
-rw-r--r--src/engine/courses/ToadsTurnpike.cpp28
-rw-r--r--src/engine/courses/WarioStadium.cpp29
-rw-r--r--src/engine/courses/YoshiValley.cpp24
-rw-r--r--src/engine/objects/OBombKart.cpp (renamed from src/engine/vehicles/OBombKart.cpp)2
-rw-r--r--src/engine/objects/OBombKart.h (renamed from src/engine/vehicles/OBombKart.h)2
-rw-r--r--src/engine/objects/OPenguin.cpp (renamed from src/engine/vehicles/OPenguin.cpp)2
-rw-r--r--src/engine/objects/OPenguin.h (renamed from src/engine/vehicles/OPenguin.h)2
-rw-r--r--src/engine/objects/OThwomp.cpp (renamed from src/engine/vehicles/OThwomp.cpp)2
-rw-r--r--src/engine/objects/OThwomp.h (renamed from src/engine/vehicles/OThwomp.h)0
35 files changed, 611 insertions, 132 deletions
diff --git a/src/engine/Engine.h b/src/engine/Engine.h
index 5af480c23..c25afa79c 100644
--- a/src/engine/Engine.h
+++ b/src/engine/Engine.h
@@ -7,6 +7,7 @@
#include "path_spawn_metadata.h"
#include "waypoints.h"
#include "sounds.h"
+#include "course_offsets.h"
typedef struct {
RGB8 TopRight;
@@ -45,6 +46,7 @@ typedef struct {
s32 MinimapFinishlineX;
s32 MinimapFinishlineY;
SkyboxColours Skybox;
+ const course_texture *textures;
enum MusicSeq Sequence;
} CProperties;
diff --git a/src/engine/GameObject.cpp b/src/engine/GameObject.cpp
index eb2127fcc..fc7c03344 100644
--- a/src/engine/GameObject.cpp
+++ b/src/engine/GameObject.cpp
@@ -1,20 +1,20 @@
-#include "GameObject.h"
-#include <libultraship.h>
+// #include <libultraship.h>
+// #include "GameObject.h"
-#include "World.h"
+// #include "World.h"
-extern "C" {
- #include "camera.h"
-}
+// extern "C" {
+// #include "camera.h"
+// }
- //GameActor()
+// //GameActor()
-GameObject::GameObject() {}
+// GameObject::GameObject() {}
- // Virtual functions to be overridden by derived classes
-void GameObject::Tick() { }
-void GameObject::Draw(Camera* camera) { }
-void GameObject::Collision() {}
-void GameObject::Expire() { }
-void GameObject::Destroy() { }
+// // Virtual functions to be overridden by derived classes
+// void GameObject::Tick() { }
+// void GameObject::Draw(Camera* camera) { }
+// void GameObject::Collision() {}
+// void GameObject::Expire() { }
+// void GameObject::Destroy() { }
diff --git a/src/engine/GameObject.h b/src/engine/GameObject.h
index 19d5301cd..b6ac8c559 100644
--- a/src/engine/GameObject.h
+++ b/src/engine/GameObject.h
@@ -1,24 +1,24 @@
-#pragma once
+// #pragma once
-#include <libultraship.h>
+// #include <libultraship.h>
-extern "C" {
- #include "camera.h"
- #include "objects.h"
-}
+// extern "C" {
+// #include "camera.h"
+// #include "objects.h"
+// }
-class GameObject {
-public:
- uint8_t uuid[16];
- Object o;
+// class GameObject {
+// public:
+// uint8_t uuid[16];
+// Object o;
- virtual ~GameObject() = default;
+// virtual ~GameObject() = default;
- explicit GameObject();
+// explicit GameObject();
- virtual void Tick();
- virtual void Draw(Camera* camera);
- virtual void Collision();
- virtual void Expire();
- virtual void Destroy();
-};
+// virtual void Tick();
+// virtual void Draw(Camera* camera);
+// virtual void Collision();
+// virtual void Expire();
+// virtual void Destroy();
+// };
diff --git a/src/engine/World.cpp b/src/engine/World.cpp
index b8371b2c8..ecaad485d 100644
--- a/src/engine/World.cpp
+++ b/src/engine/World.cpp
@@ -9,10 +9,11 @@
#include "vehicles/Bus.h"
#include "vehicles/TankerTruck.h"
#include "vehicles/Car.h"
-#include "vehicles/OBombKart.h"
+#include "objects/OBombKart.h"
+#include "objects/OPenguin.h"
#include "TrainCrossing.h"
#include <memory>
-
+//#include "objects/GameObject.h"
extern "C" {
#include "camera.h"
@@ -184,11 +185,11 @@ void World::PreviousCourse() {
gWorldInstance.CurrentCourse = Courses[CourseIndex];
}
-Object* World::AddObject(std::unique_ptr<GameObject> object) {
- GameObject* rawPtr = object.get();
- GameObjects.push_back(std::move(object));
- return &rawPtr->o;
-}
+// Object* World::AddObject(std::unique_ptr<GameObject> object) {
+// GameObject* rawPtr = object.get();
+// GameObjects.push_back(std::move(object));
+// return &rawPtr->o;
+// }
AActor* World::AddActor(AActor* actor) {
Actors.push_back(actor);
@@ -240,22 +241,22 @@ void RemoveExpiredActors() {
}
void World::TickObjects() {
- for (const auto& object : this->GameObjects) {
- object->Tick();
- }
+ //for (const auto& object : this->GameObjects) {
+ // object->Tick();
+ //}
}
void World::DrawObjects(Camera *camera) {
- for (const auto& object : this->GameObjects) {
- object->Draw(camera);
- }
+ //for (const auto& object : this->GameObjects) {
+ // object->Draw(camera);
+ //}
}
void World::ExpiredObjects() {
- this->GameObjects.erase(
- std::remove_if(this->GameObjects.begin(), this->GameObjects.end(),
- [](const std::unique_ptr<GameObject>& object) { return object->uuid == 0; }), // Example condition
- this->GameObjects.end());
+ //this->GameObjects.erase(
+ // std::remove_if(this->GameObjects.begin(), this->GameObjects.end(),
+ // [](const std::unique_ptr<GameObject>& object) { return object->uuid == 0; }), // Example condition
+ // this->GameObjects.end());
}
void World::DestroyObjects() {
@@ -263,9 +264,9 @@ void World::DestroyObjects() {
}
Object* World::GetObjectByIndex(size_t index) {
- if (index < this->GameObjects.size()) {
+ //if (index < this->GameObjects.size()) {
// Assuming GameActor::a is accessible, use reinterpret_cast if needed
- return reinterpret_cast<Object*>(&this->GameObjects[index]->o);
- }
+ // return reinterpret_cast<Object*>(&this->GameObjects[index]->o);
+ //}
return nullptr; // Or handle the error as needed
}
diff --git a/src/engine/World.h b/src/engine/World.h
index b6801a668..0df9e7278 100644
--- a/src/engine/World.h
+++ b/src/engine/World.h
@@ -1,16 +1,16 @@
#pragma once
#include <libultraship.h>
-#include "GameObject.h"
+//#include "objects/GameObject.h"
#include "Cup.h"
#include "vehicles/Vehicle.h"
#include "vehicles/Train.h"
#include "vehicles/Car.h"
-#include "vehicles/OBombKart.h"
+#include "objects/OBombKart.h"
#include "vehicles/Train.h"
#include "TrainCrossing.h"
-#include "vehicles/OThwomp.h"
-#include "vehicles/OPenguin.h"
+#include "objects/OThwomp.h"
+#include "objects/OPenguin.h"
#include <memory>
#include "Actor.h"
@@ -20,6 +20,7 @@ extern "C" {
#include "engine/Engine.h"
};
+//class GameObject;
class Cup; // <-- Forward declaration
class Course;
class AVehicle;
@@ -92,7 +93,7 @@ public:
AActor* ConvertActorToAActor(Actor* actor);
Actor* ConvertAActorToActor(AActor* actor);
- Object* AddObject(std::unique_ptr<GameObject> object);
+// Object* AddObject(std::unique_ptr<GameObject> object);
CProperties* GetCourseProps();
void TickObjects();
@@ -128,7 +129,7 @@ public:
size_t CupIndex = 1;
std::vector<AActor*> Actors;
- std::vector<std::unique_ptr<GameObject>> GameObjects;
+// std::vector<std::unique_ptr<GameObject>> GameObjects;
/** Actors */
void AddBoat(f32 speed, uint32_t waypoint);
diff --git a/src/engine/courses/BansheeBoardwalk.cpp b/src/engine/courses/BansheeBoardwalk.cpp
index f1dc8287c..04ed6caf0 100644
--- a/src/engine/courses/BansheeBoardwalk.cpp
+++ b/src/engine/courses/BansheeBoardwalk.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "BansheeBoardwalk.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/banshee_boardwalk_data.h"
#include "assets/boo_frames.h"
@@ -31,14 +30,41 @@ extern "C" {
#include "actors.h"
#include "collision.h"
#include "memory.h"
+ #include "course_offsets.h"
extern const char *banshee_boardwalk_dls[];
}
+const course_texture banshee_boardwalk_textures[] = {
+ { gTexture6447C4, 0x0106, 0x0800, 0x0 },
+ { gTexture676FB0, 0x0525, 0x0800, 0x0 },
+ { gTexture643B3C, 0x0798, 0x0800, 0x0 },
+ { gTexture64BB60, 0x0169, 0x0800, 0x0 },
+ { gTexture64BCCC, 0x0450, 0x0800, 0x0 },
+ { gTexture64FBF4, 0x0274, 0x0800, 0x0 },
+ { gTexture651B20, 0x041D, 0x0800, 0x0 },
+ { gTexture66262C, 0x02F7, 0x0800, 0x0 },
+ { gTexture668728, 0x01F5, 0x0800, 0x0 },
+ { gTexture66A3DC, 0x07C5, 0x0800, 0x0 },
+ { gTexture66CA98, 0x02C9, 0x0800, 0x0 },
+ { gTexture66CD64, 0x02C0, 0x0800, 0x0 },
+ { gTexture66D698, 0x0370, 0x0800, 0x0 },
+ { gTexture66E608, 0x05E8, 0x0800, 0x0 },
+ { gTexture67B388, 0x03D2, 0x0800, 0x0 },
+ { gTextureSignWelcome0, 0x0A2E, 0x1000, 0x0 },
+ { gTextureSignWelcome1, 0x0A0A, 0x1000, 0x0 },
+ { gTextureSignWoodenBack0, 0x06EF, 0x1000, 0x0 },
+ { gTextureSignWoodenBack1, 0x06D1, 0x1000, 0x0 },
+ { gTextureSignWoodRedArrow, 0x04E1, 0x1000, 0x0 },
+ { gTexture68D940, 0x057D, 0x0800, 0x0 },
+ { gTexture685AC0, 0x07CC, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
BansheeBoardwalk::BansheeBoardwalk() {
this->vtx = d_course_banshee_boardwalk_vertex;
this->gfx = d_course_banshee_boardwalk_packed_dls;
this->gfxSize = 3689;
- this->textures = banshee_boardwalk_textures;
+ Props.textures = banshee_boardwalk_textures;
Props.MinimapTexture = gTextureCourseOutlineBansheeBoardwalk;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/BigDonut.cpp b/src/engine/courses/BigDonut.cpp
index 56ff61a66..d4597fe7b 100644
--- a/src/engine/courses/BigDonut.cpp
+++ b/src/engine/courses/BigDonut.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "BigDonut.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/big_donut_data.h"
extern "C" {
@@ -33,11 +32,17 @@ extern "C" {
extern s16 currentScreenSection;
}
+const course_texture big_donut_textures[] = {
+ { gTexture66ABA4, 0x0312, 0x0800, 0x0 }, { gTexture6747C4, 0x0145, 0x0800, 0x0 },
+ { gTexture67490C, 0x021C, 0x0800, 0x0 }, { gTexture64BA50, 0x0110, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
BigDonut::BigDonut() {
this->vtx = d_course_big_donut_vertex;
this->gfx = d_course_big_donut_packed_dls;
this->gfxSize = 528;
- this->textures = big_donut_textures;
+ Props.textures = big_donut_textures;
Props.MinimapTexture = gTextureCourseOutlineBigDonut;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/BlockFort.cpp b/src/engine/courses/BlockFort.cpp
index a61e26280..6178dcc5c 100644
--- a/src/engine/courses/BlockFort.cpp
+++ b/src/engine/courses/BlockFort.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "BlockFort.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/block_fort_data.h"
extern "C" {
@@ -29,15 +28,23 @@ extern "C" {
#include "actors.h"
#include "collision.h"
#include "memory.h"
+ #include "course_offsets.h"
extern const char *block_fort_dls[];
extern s16 currentScreenSection;
}
+const course_texture block_fort_textures[] = {
+ { gTexture64286C, 0x010A, 0x0800, 0x0 }, { gTextureGrayCheckerboard, 0x010C, 0x0800, 0x0 },
+ { gTextureGrayCobblestone, 0x010C, 0x0800, 0x0 }, { gTexture64275C, 0x0110, 0x0800, 0x0 },
+ { gTexture642978, 0x010D, 0x0800, 0x0 }, { gTexture6747C4, 0x0145, 0x0800, 0x0 },
+ { gTexture6442D4, 0x0138, 0x0800, 0x0 }, { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
BlockFort::BlockFort() {
this->vtx = d_course_block_fort_vertex;
this->gfx = d_course_block_fort_packed_dls;
this->gfxSize = 699;
- this->textures = block_fort_textures;
+ Props.textures = block_fort_textures;
Props.MinimapTexture = gTextureCourseOutlineBlockFort;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/BowsersCastle.cpp b/src/engine/courses/BowsersCastle.cpp
index 9098c62e9..9e9c85d61 100644
--- a/src/engine/courses/BowsersCastle.cpp
+++ b/src/engine/courses/BowsersCastle.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "BowsersCastle.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "bowsers_castle_data.h"
extern "C" {
@@ -34,11 +33,43 @@ extern "C" {
extern const char *bowsers_castle_dls[];
}
+const course_texture bowsers_castle_textures[] = {
+ { gTexture64313C, 0x01B8, 0x0800, 0x0 },
+ { gTexture6528DC, 0x0278, 0x0800, 0x0 },
+ { gTexture66ED38, 0x010E, 0x0800, 0x0 },
+ { gTexture676C6C, 0x0110, 0x0800, 0x0 },
+ { gTexture676EA8, 0x0108, 0x0800, 0x0 },
+ { gTexture679D34, 0x0106, 0x0800, 0x0 },
+ { gTextureGrass6, 0x023B, 0x0800, 0x0 },
+ { gTexture6522E0, 0x05FC, 0x0800, 0x0 },
+ { gTexture651F40, 0x039F, 0x0800, 0x0 },
+ { gTextureRoofTile, 0x0129, 0x0800, 0x0 },
+ { gTextureSignBowser0, 0x07D0, 0x1000, 0x0 },
+ { gTextureSignBowser1, 0x064D, 0x1000, 0x0 },
+ { gTexture66ABA4, 0x0312, 0x0800, 0x0 },
+ { gTexture66EBF0, 0x0146, 0x0800, 0x0 },
+ { gTexture6733CC, 0x020E, 0x0800, 0x0 },
+ { gTexture673118, 0x02B1, 0x0800, 0x0 },
+ { gTexture673FF8, 0x035B, 0x0800, 0x0 },
+ { gTexture674B28, 0x0230, 0x0800, 0x0 },
+ { gTextureSignGreenArrow, 0x025B, 0x1000, 0x0 },
+ { gTexture68D834, 0x010A, 0x0800, 0x0 },
+ { gTexture676D7C, 0x012C, 0x0800, 0x0 },
+ { gTexture67ADF0, 0x0595, 0x0800, 0x0 },
+ { gTexture67EFEC, 0x016F, 0x0800, 0x0 },
+ { gTexture653DB0, 0x06AE, 0x0800, 0x0 },
+ { gTexture66CA98, 0x02C9, 0x0800, 0x0 },
+ { gTexture673990, 0x02D8, 0x0800, 0x0 },
+ { gTexture67A370, 0x05AA, 0x0800, 0x0 },
+ { gTexture67A91C, 0x04D1, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
BowsersCastle::BowsersCastle() {
this->vtx = d_course_bowsers_castle_vertex;
this->gfx = d_course_bowsers_castle_packed_dls;
this->gfxSize = 4900;
- this->textures = bowsers_castle_textures;
+ Props.textures = bowsers_castle_textures;
Props.MinimapTexture = gTextureCourseOutlineBowsersCastle;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/ChocoMountain.cpp b/src/engine/courses/ChocoMountain.cpp
index 71e147f2d..b497b2431 100644
--- a/src/engine/courses/ChocoMountain.cpp
+++ b/src/engine/courses/ChocoMountain.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "ChocoMountain.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "choco_mountain_data.h"
#include "engine/actors/AFinishline.h"
@@ -31,14 +30,39 @@ extern "C" {
#include "collision.h"
#include "code_8003DC40.h"
#include "memory.h"
+ #include "course_offsets.h"
extern const char *choco_mountain_dls[];
}
+const course_texture choco_mountain_textures[] = {
+ { gTexture64619C, 0x0124, 0x0800, 0x0 },
+ { gTexture64647C, 0x0829, 0x1000, 0x0 },
+ { gTexture647F4C, 0x05BC, 0x1000, 0x0 },
+ { gTexture64FBF4, 0x0274, 0x0800, 0x0 },
+ { gTexture653DB0, 0x06AE, 0x0800, 0x0 },
+ { gTexture652B54, 0x0606, 0x0800, 0x0 },
+ { gTexture65315C, 0x04A9, 0x0800, 0x0 },
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 },
+ { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 },
+ { gTextureSignNintendoRed0, 0x02A6, 0x1000, 0x0 },
+ { gTextureSignNintendoRed1, 0x02F7, 0x1000, 0x0 },
+ { gTexture6774D8, 0x0113, 0x0800, 0x0 },
+ { gTextureSignFallingRocks, 0x012C, 0x0800, 0x0 },
+ { gTextureSignBackside, 0x011E, 0x0800, 0x0 },
+ { gTexture679C04, 0x012F, 0x0800, 0x0 },
+ { gTexture67B864, 0x014C, 0x0800, 0x0 },
+ { gTexture67DC20, 0x03EF, 0x0800, 0x0 },
+ { gTextureSignYoshi, 0x04DF, 0x1000, 0x0 },
+ { gTextureCheckerboardBlueGray, 0x04A1, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
ChocoMountain::ChocoMountain() {
this->vtx = d_course_choco_mountain_vertex;
this->gfx = d_course_choco_mountain_packed_dls;
this->gfxSize = 2910;
- this->textures = choco_mountain_textures;
+ Props.textures = choco_mountain_textures;
Props.MinimapTexture = gTextureCourseOutlineChocoMountain;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/Course.cpp b/src/engine/courses/Course.cpp
index 022ee016e..26c549367 100644
--- a/src/engine/courses/Course.cpp
+++ b/src/engine/courses/Course.cpp
@@ -94,7 +94,7 @@ void Course::Load() {
func_802A86A8(reinterpret_cast<CourseVtx*>(LOAD_ASSET_RAW(this->vtx)), vtx, vtxSize / sizeof(Vtx));
// Load and allocate memory for course textures
- const course_texture* asset = this->textures;
+ const course_texture* asset = this->Props.textures;
u8* freeMemory = NULL;
u8* texture = NULL;
size_t size = 0;
@@ -103,12 +103,14 @@ void Course::Load() {
size = ResourceGetTexSizeByName(asset->addr);
freeMemory = (u8*) allocate_memory(size);
- texture = reinterpret_cast<u8*>(LOAD_ASSET_RAW(asset->addr));
+ texture = (u8*)(asset->addr);
+ printf("TEXTURE: 0x%llX\n",texture);
if (texture) {
- if (asset == &textures[0]) {
+ if (asset == &this->Props.textures[0]) {
gSegmentTable[5] = reinterpret_cast<uintptr_t>(&freeMemory[0]);
}
- memcpy(freeMemory, texture, size);
+ strcpy(reinterpret_cast<char*>(freeMemory), asset->addr);
+ //memcpy(freeMemory, texture, size);
texSegSize += size;
// printf("Texture Addr: 0x%llX, size 0x%X\n", &freeMemory[0], size);
}
diff --git a/src/engine/courses/Course.h b/src/engine/courses/Course.h
index e711dd510..72dd52639 100644
--- a/src/engine/courses/Course.h
+++ b/src/engine/courses/Course.h
@@ -75,6 +75,7 @@ public:
int32_t MinimapFinishlineX;
int32_t MinimapFinishlineY;
SkyboxColours Skybox;
+ const course_texture *textures;
MusicSeq Sequence;
} Properties;
diff --git a/src/engine/courses/DKJungle.cpp b/src/engine/courses/DKJungle.cpp
index 479c23b02..ccf2af4b9 100644
--- a/src/engine/courses/DKJungle.cpp
+++ b/src/engine/courses/DKJungle.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "DKJungle.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/dks_jungle_parkway_data.h"
#include "engine/vehicles/Utils.h"
@@ -38,11 +37,39 @@ extern "C" {
extern s16 currentScreenSection;
}
+const course_texture dks_jungle_parkway_textures[] = {
+ { gTexture648508, 0x01FE, 0x1000, 0x0 },
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 },
+ { gTextureWoodBridgeSlats, 0x0DAB, 0x1000, 0x0 },
+ { gTexture654460, 0x0B12, 0x1000, 0x0 },
+ { gTexture654F74, 0x0A24, 0x1000, 0x0 },
+ { gTexture655998, 0x059F, 0x0800, 0x0 },
+ { gTexture655F38, 0x0BB9, 0x1000, 0x0 },
+ { gTexture656AF4, 0x0AD3, 0x1000, 0x0 },
+ { gTexture6575C8, 0x0DA7, 0x1000, 0x0 },
+ { gTexture658370, 0x0DBA, 0x1000, 0x0 },
+ { gTexture65912C, 0x0DBC, 0x1000, 0x0 },
+ { gTexture659EE8, 0x0EF5, 0x1000, 0x0 },
+ { gTexture65ADE0, 0x0D5A, 0x1000, 0x0 },
+ { gTexture65BB3C, 0x0D9E, 0x1000, 0x0 },
+ { gTexture65C8DC, 0x0CF5, 0x1000, 0x0 },
+ { gTexture65D5D4, 0x0D18, 0x1000, 0x0 },
+ { gTexture65E2EC, 0x02B0, 0x0800, 0x0 },
+ { gTexture65EAEC, 0x034A, 0x0800, 0x0 },
+ { gTexture65E59C, 0x054F, 0x1000, 0x0 },
+ { gTexture65EE38, 0x0CDE, 0x1000, 0x0 },
+ { gTexture65FB18, 0x03EE, 0x0800, 0x0 },
+ { gTextureSignPinkArrow, 0x0198, 0x0800, 0x0 },
+ { gTextureWaves0, 0x04D0, 0x0800, 0x0 },
+ { gTexture683844, 0x0655, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
DKJungle::DKJungle() {
this->vtx = d_course_dks_jungle_parkway_vertex;
this->gfx = d_course_dks_jungle_parkway_packed_dls;
this->gfxSize = 4997;
- this->textures = dks_jungle_parkway_textures;
+ Props.textures = dks_jungle_parkway_textures;
Props.MinimapTexture = gTextureCourseOutlineDksJungleParkway;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/DoubleDeck.cpp b/src/engine/courses/DoubleDeck.cpp
index 74fb7e714..37064a059 100644
--- a/src/engine/courses/DoubleDeck.cpp
+++ b/src/engine/courses/DoubleDeck.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "DoubleDeck.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/double_deck_data.h"
extern "C" {
@@ -33,11 +32,17 @@ extern "C" {
extern s16 currentScreenSection;
}
+const course_texture double_deck_textures[] = {
+ { gTextureGrayCobblestone, 0x010C, 0x0800, 0x0 },
+ { gTexture642978, 0x010D, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
DoubleDeck::DoubleDeck() {
this->vtx = d_course_double_deck_vertex;
this->gfx = d_course_double_deck_packed_dls;
this->gfxSize = 699;
- this->textures = double_deck_textures;
+ Props.textures = double_deck_textures;
Props.MinimapTexture = gTextureCourseOutlineDoubleDeck;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/FrappeSnowland.cpp b/src/engine/courses/FrappeSnowland.cpp
index a0e698152..23fa73460 100644
--- a/src/engine/courses/FrappeSnowland.cpp
+++ b/src/engine/courses/FrappeSnowland.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "FrappeSnowland.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/frappe_snowland_data.h"
#include "assets/boo_frames.h"
@@ -32,15 +31,24 @@ extern "C" {
#include "collision.h"
#include "memory.h"
#include "update_objects.h"
+ #include "course_offsets.h"
extern const char *d_course_frappe_snowland_dl_list[];
extern s8 gPlayerCount;
}
+const course_texture frappe_snowland_textures[] = {
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 }, { gTexture66CA98, 0x02C9, 0x0800, 0x0 },
+ { gTexture66EBF0, 0x0146, 0x0800, 0x0 }, { gTexture675434, 0x0245, 0x0800, 0x0 },
+ { gTexture677F04, 0x0213, 0x0800, 0x0 }, { gTexture678118, 0x0314, 0x0800, 0x0 },
+ { gTexture679258, 0x04E3, 0x1000, 0x0 }, { gTexture67973C, 0x04C6, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
FrappeSnowland::FrappeSnowland() {
this->vtx = d_course_frappe_snowland_vertex;
this->gfx = d_course_frappe_snowland_packed_dls;
this->gfxSize = 4140;
- this->textures = frappe_snowland_textures;
+ Props.textures = frappe_snowland_textures;
Props.MinimapTexture = gTextureCourseOutlineFrappeSnowland;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/KalimariDesert.cpp b/src/engine/courses/KalimariDesert.cpp
index 2562ab8f8..405abbce4 100644
--- a/src/engine/courses/KalimariDesert.cpp
+++ b/src/engine/courses/KalimariDesert.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "KalimariDesert.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "kalimari_desert_data.h"
#include "engine/vehicles/Utils.h"
@@ -36,11 +35,27 @@ extern "C" {
extern const char *kalimari_desert_dls[];
}
+const course_texture kalimari_desert_textures[] = {
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 }, { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 }, { gTextureSignMarioStar0, 0x02D2, 0x1000, 0x0 },
+ { gTextureSignMarioStar1, 0x02B1, 0x1000, 0x0 }, { gTextureSignNintendoRed0, 0x02A6, 0x1000, 0x0 },
+ { gTextureSignNintendoRed1, 0x02F7, 0x1000, 0x0 }, { gTexture67490C, 0x021C, 0x0800, 0x0 },
+ { gTextureSignYoshi, 0x04DF, 0x1000, 0x0 }, { gTextureCheckerboardBlueGray, 0x04A1, 0x1000, 0x0 },
+ { gTexture646CA8, 0x073A, 0x1000, 0x0 }, { gTexture6473E4, 0x05AD, 0x1000, 0x0 },
+ { gTexture647994, 0x05B5, 0x1000, 0x0 }, { gTexture668920, 0x03D9, 0x0800, 0x0 },
+ { gTextureRailroadTrack, 0x0B5B, 0x1000, 0x0 }, { gTextureRailroadCrossingTrack, 0x0208, 0x1000, 0x0 },
+ { gTexture67291C, 0x059C, 0x0800, 0x0 }, { gTextureFenceBarbedWire, 0x021E, 0x1000, 0x0 },
+ { gTexture67D304, 0x091C, 0x1000, 0x0 }, { gTexture67E010, 0x0415, 0x0800, 0x0 },
+ { gTexture67EEAC, 0x0140, 0x0800, 0x0 }, { gTextureSignShellShot0, 0x038C, 0x1000, 0x0 },
+ { gTextureSignShellShot1, 0x0247, 0x1000, 0x0 }, { gTextureSignKoopaAir0, 0x0360, 0x1000, 0x0 },
+ { gTextureSignKoopaAir1, 0x0304, 0x1000, 0x0 }, { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
KalimariDesert::KalimariDesert() {
this->vtx = d_course_kalimari_desert_vertex;
this->gfx = d_course_kalimari_desert_packed_dls;
this->gfxSize = 5328;
- this->textures = kalimari_desert_textures;
+ Props.textures = kalimari_desert_textures;
Props.MinimapTexture = gTextureCourseOutlineKalimariDesert;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 96;
diff --git a/src/engine/courses/KoopaTroopaBeach.cpp b/src/engine/courses/KoopaTroopaBeach.cpp
index 48f8c8b77..7fe30085b 100644
--- a/src/engine/courses/KoopaTroopaBeach.cpp
+++ b/src/engine/courses/KoopaTroopaBeach.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "KoopaTroopaBeach.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/koopa_troopa_beach_data.h"
extern "C" {
@@ -35,11 +34,31 @@ extern "C" {
extern s8 gPlayerCount;
}
+const course_texture koopa_troopa_beach_textures[] = {
+ { gTexture643B3C, 0x0798, 0x0800, 0x0 },
+ { gTexture66A3DC, 0x07C5, 0x0800, 0x0 },
+ { gTextureSignWoodRedArrow, 0x04E1, 0x1000, 0x0 },
+ { gTexture66DD38, 0x0330, 0x1000, 0x0 },
+ { gTexture643430, 0x0604, 0x0800, 0x0 },
+ { gTexture660D8C, 0x0126, 0x0800, 0x0 },
+ { gTexture6609D0, 0x03BB, 0x1000, 0x0 },
+ { gTextureGrass12, 0x0874, 0x0800, 0x0 },
+ { gTexture66CA98, 0x02C9, 0x0800, 0x0 },
+ { gTexture66EBF0, 0x0146, 0x0800, 0x0 },
+ { gTexture67BEE8, 0x02D0, 0x0800, 0x0 },
+ { gTextureSandFinish, 0x022E, 0x0800, 0x0 },
+ { gTextureWheelSteamEngine, 0x020F, 0x0800, 0x0 },
+ { gTexture669570, 0x0E6B, 0x1000, 0x0 },
+ { gTextureWaves1, 0x05C4, 0x0800, 0x0 },
+ { gTextureWaves2, 0x0488, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
KoopaTroopaBeach::KoopaTroopaBeach() {
this->vtx = d_course_koopa_troopa_beach_vertex;
this->gfx = d_course_koopa_troopa_beach_packed_dls;
this->gfxSize = 5720;
- this->textures = koopa_troopa_beach_textures;
+ Props.textures = koopa_troopa_beach_textures;
Props.MinimapTexture = gTextureCourseOutlineKoopaTroopaBeach;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/LuigiRaceway.cpp b/src/engine/courses/LuigiRaceway.cpp
index f98ceab21..65506cd99 100644
--- a/src/engine/courses/LuigiRaceway.cpp
+++ b/src/engine/courses/LuigiRaceway.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "LuigiRaceway.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/luigi_raceway_data.h"
#include "engine/actors/AFinishline.h"
@@ -38,11 +37,55 @@ extern "C" {
extern s16 currentScreenSection;
}
+const course_texture luigi_raceway_textures[] = {
+ { gTextureSignShellShot0, 0x038C, 0x1000, 0x0 },
+ { gTextureSignShellShot1, 0x0247, 0x1000, 0x0 },
+ { gTextureCheckerboardYellowBlue, 0x013A, 0x0800, 0x0 },
+ { gTexture64619C, 0x0124, 0x0800, 0x0 },
+ { gTextureCheckerboardBlueGreen, 0x0139, 0x0800, 0x0 },
+ { gTextureGrass3, 0x0372, 0x0800, 0x0 },
+ { gTextureFlagRed, 0x019E, 0x0800, 0x0 },
+ { gTexture65100C, 0x0120, 0x0800, 0x0 },
+ { gTexture65112C, 0x0150, 0x0800, 0x0 },
+ { gTexture653608, 0x07A7, 0x0800, 0x0 },
+ { gTextureGrass11, 0x01F8, 0x0800, 0x0 },
+ { gTextureSignLuigiFace0, 0x05C9, 0x1000, 0x0 },
+ { gTextureSignLuigiFace1, 0x065F, 0x1000, 0x0 },
+ { gTexture66C7A8, 0x0149, 0x0800, 0x0 },
+ { gTexture670AC8, 0x0FBF, 0x1000, 0x0 },
+ { gTexture671A88, 0x012D, 0x0800, 0x0 },
+ { gTexture6735DC, 0x03B1, 0x0800, 0x0 },
+ { gTexture673C68, 0x038D, 0x0800, 0x0 },
+ { gTexture6747C4, 0x0145, 0x0800, 0x0 },
+ { gTextureRoad1, 0x02D2, 0x1000, 0x0 },
+ { gTextureRoad2, 0x02AE, 0x1000, 0x0 },
+ { gTextureRoadFinish1, 0x026B, 0x1000, 0x0 },
+ { gTexture67BBD8, 0x0310, 0x0800, 0x0 },
+ { gTexture68272C, 0x01F9, 0x1000, 0x0 },
+ { gTexture682928, 0x01F9, 0x1000, 0x0 },
+ { gTexture682B24, 0x01F9, 0x1000, 0x0 },
+ { gTexture682D20, 0x01F9, 0x1000, 0x0 },
+ { gTexture682F1C, 0x01F9, 0x1000, 0x0 },
+ { gTexture683118, 0x01F9, 0x1000, 0x0 },
+ { gTextureSignBlue64, 0x0567, 0x1000, 0x0 },
+ { gTextureSignKoopaAir0, 0x0360, 0x1000, 0x0 },
+ { gTextureSignKoopaAir1, 0x0304, 0x1000, 0x0 },
+ { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 },
+ { gTextureSignMarioStar0, 0x02D2, 0x1000, 0x0 },
+ { gTextureSignMarioStar1, 0x02B1, 0x1000, 0x0 },
+ { gTextureSignNintendoRed0, 0x02A6, 0x1000, 0x0 },
+ { gTextureSignNintendoRed1, 0x02F7, 0x1000, 0x0 },
+ { gTextureSignYoshi, 0x04DF, 0x1000, 0x0 },
+ { gTextureCheckerboardBlueGray, 0x04A1, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
LuigiRaceway::LuigiRaceway() {
this->vtx = d_course_luigi_raceway_vertex;
this->gfx = d_course_luigi_raceway_packed_dls;
this->gfxSize = 6377;
- this->textures = luigi_raceway_textures;
+ Props.textures = luigi_raceway_textures;
Props.MinimapTexture = gTextureCourseOutlineLuigiRaceway;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 96;
diff --git a/src/engine/courses/MarioRaceway.cpp b/src/engine/courses/MarioRaceway.cpp
index bde10370d..f16caeeaf 100644
--- a/src/engine/courses/MarioRaceway.cpp
+++ b/src/engine/courses/MarioRaceway.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "MarioRaceway.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
extern "C" {
#include "main.h"
@@ -34,11 +33,45 @@ extern "C" {
extern const char *mario_raceway_dls[];
}
+const course_texture mario_raceway_textures[] = {
+ { gTextureCheckerboardYellowPink, 0x0149, 0x0800, 0x0 },
+ { gTexture64619C, 0x0124, 0x0800, 0x0 },
+ { gTextureGrass1, 0x0125, 0x0800, 0x0 },
+ { gTexture64BB60, 0x0169, 0x0800, 0x0 },
+ { gTextureGrass7, 0x05DE, 0x0800, 0x0 },
+ { gTextureGrass5, 0x023F, 0x0800, 0x0 },
+ { gTextureFlagRed, 0x019E, 0x0800, 0x0 },
+ { gTexture663F90, 0x0122, 0x0800, 0x0 },
+ { gTexture6642A4, 0x0162, 0x0800, 0x0 },
+ { gTexture6640B4, 0x01EF, 0x0800, 0x0 },
+ { gTextureGrass10, 0x01F8, 0x0800, 0x0 },
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 },
+ { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 },
+ { gTextureSignMarioStar0, 0x02D2, 0x1000, 0x0 },
+ { gTextureSignMarioStar1, 0x02B1, 0x1000, 0x0 },
+ { gTexture66C8F4, 0x01A1, 0x0800, 0x0 },
+ { gTextureSignNintendoRed0, 0x02A6, 0x1000, 0x0 },
+ { gTextureSignNintendoRed1, 0x02F7, 0x1000, 0x0 },
+ { gTexture670AC8, 0x0FBF, 0x1000, 0x0 },
+ { gTexture674354, 0x046F, 0x0800, 0x0 },
+ { gTextureRoad0, 0x0300, 0x1000, 0x0 },
+ { gTextureRoadFinish0, 0x0338, 0x1000, 0x0 },
+ { gTexture67B9B0, 0x0225, 0x0800, 0x0 },
+ { gTextureSignYoshi, 0x04DF, 0x1000, 0x0 },
+ { gTextureCheckerboardBlueGray, 0x04A1, 0x1000, 0x0 },
+ { gTextureSignShellShot0, 0x038C, 0x1000, 0x0 },
+ { gTextureSignShellShot1, 0x0247, 0x1000, 0x0 },
+ { gTextureSignKoopaAir0, 0x0360, 0x1000, 0x0 },
+ { gTextureSignKoopaAir1, 0x0304, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
MarioRaceway::MarioRaceway() {
this->vtx = d_course_mario_raceway_vertex;
this->gfx = d_course_mario_raceway_packed_dls;
this->gfxSize = 3367;
- this->textures = mario_raceway_textures;
+ Props.textures = mario_raceway_textures;
Props.MinimapTexture = gTextureCourseOutlineMarioRaceway;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/MooMooFarm.cpp b/src/engine/courses/MooMooFarm.cpp
index d1b401342..1c7854c6c 100644
--- a/src/engine/courses/MooMooFarm.cpp
+++ b/src/engine/courses/MooMooFarm.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "MooMooFarm.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/moo_moo_farm_data.h"
extern "C" {
@@ -36,11 +35,43 @@ extern "C" {
extern s8 gPlayerCount;
}
+const course_texture moo_moo_farm_textures[] = {
+ { gTextureWoodDoor0, 0x0294, 0x1000, 0x0 },
+ { gTextureGrass2, 0x0415, 0x0800, 0x0 },
+ { gTexture64AF50, 0x0140, 0x0800, 0x0 },
+ { gTexture64B090, 0x0365, 0x0800, 0x0 },
+ { gTexture64B54C, 0x038C, 0x0800, 0x0 },
+ { gTexture64B3F8, 0x0153, 0x0800, 0x0 },
+ { gTextureSignNintendo0, 0x0541, 0x1000, 0x0 },
+ { gTextureSignNintendo1, 0x0512, 0x1000, 0x0 },
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 },
+ { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 },
+ { gTextureSignMarioStar0, 0x02D2, 0x1000, 0x0 },
+ { gTextureSignMarioStar1, 0x02B1, 0x1000, 0x0 },
+ { gTexture674D58, 0x030C, 0x1000, 0x0 },
+ { gTexture675064, 0x01BB, 0x0800, 0x0 },
+ { gTexture675220, 0x0212, 0x0800, 0x0 },
+ { gTexture6775EC, 0x0233, 0x1000, 0x0 },
+ { gTexture683314, 0x02DC, 0x1000, 0x0 },
+ { gTexture68CDA0, 0x0110, 0x0800, 0x0 },
+ { gTexture6442D4, 0x0138, 0x0800, 0x0 },
+ { gTexture64440C, 0x029D, 0x1000, 0x0 },
+ { gTexture6446AC, 0x0116, 0x0800, 0x0 },
+ { gTextureMooMooFarmSignLeft, 0x0A66, 0x1000, 0x0 },
+ { gTextureMooMooFarmSignRight, 0x0A64, 0x1000, 0x0 },
+ { gTexture64ACAC, 0x02A3, 0x0800, 0x0 },
+ { gTexture66D698, 0x0370, 0x0800, 0x0 },
+ { gTexture66EBF0, 0x0146, 0x0800, 0x0 },
+ { gTextureWheelSteamEngineReal, 0x022F, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
MooMooFarm::MooMooFarm() {
this->vtx = d_course_moo_moo_farm_vertex;
this->gfx = d_course_moo_moo_farm_packed_dls;
this->gfxSize = 3304;
- this->textures = moo_moo_farm_textures;
+ Props.textures = moo_moo_farm_textures;
Props.MinimapTexture = gTextureCourseOutlineMooMooFarm;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/PodiumCeremony.cpp b/src/engine/courses/PodiumCeremony.cpp
index 86bf403b3..e2e5a1262 100644
--- a/src/engine/courses/PodiumCeremony.cpp
+++ b/src/engine/courses/PodiumCeremony.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "PodiumCeremony.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/royal_raceway_data.h"
#include "assets/ceremony_data.h"
@@ -34,11 +33,58 @@ extern "C" {
extern const char *royal_raceway_dls[];
}
+const course_texture podium_ceremony_textures[] = {
+ { gTexture64619C, 0x0124, 0x0800, 0x0 },
+ { gTexture645134, 0x052C, 0x0800, 0x0 },
+ { gTextureWoodDoor1, 0x0903, 0x1000, 0x0 },
+ { gTexture64BB60, 0x0169, 0x0800, 0x0 },
+ { gTextureGrass3, 0x0372, 0x0800, 0x0 },
+ { gTexture64F9E8, 0x020B, 0x1000, 0x0 },
+ { gTextureFlagRed, 0x019E, 0x0800, 0x0 },
+ { gTextureCrownJewelBlue, 0x0301, 0x0800, 0x0 },
+ { gTextureCrown, 0x0106, 0x0800, 0x0 },
+ { gTextureCrownJewelPink, 0x0313, 0x0800, 0x0 },
+ { gTextureSignKoopaAir0, 0x0360, 0x1000, 0x0 },
+ { gTextureSignKoopaAir1, 0x0304, 0x1000, 0x0 },
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 },
+ { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 },
+ { gTextureSignMarioStar0, 0x02D2, 0x1000, 0x0 },
+ { gTextureSignMarioStar1, 0x02B1, 0x1000, 0x0 },
+ { gTexture66CA98, 0x02C9, 0x0800, 0x0 },
+ { gTextureCheckerboardPink, 0x0157, 0x0800, 0x0 },
+ { gTexture670AC8, 0x0FBF, 0x1000, 0x0 },
+ { gTextureRoad0, 0x0300, 0x1000, 0x0 },
+ { gTextureRoadFinish0, 0x0338, 0x1000, 0x0 },
+ { gTextureSignYoshi, 0x04DF, 0x1000, 0x0 },
+ { gTextureCheckerboardBlueGray, 0x04A1, 0x1000, 0x0 },
+ { gTextureCastleBricks, 0x0B33, 0x1000, 0x0 },
+ { gTextureCastleBridge, 0x0428, 0x0800, 0x0 },
+ { gTextureGrass8, 0x02CB, 0x0800, 0x0 },
+ { gTextureGrass9, 0x0421, 0x0800, 0x0 },
+ { gTexture6646B8, 0x0298, 0x1000, 0x0 },
+ { gTexture664408, 0x02AE, 0x1000, 0x0 },
+ { gTextureBricksRed, 0x0C55, 0x1000, 0x0 },
+ { gTexture665C0C, 0x059D, 0x0800, 0x0 },
+ { gTexture6661AC, 0x01F7, 0x0800, 0x0 },
+ { gTexture6663A4, 0x05F6, 0x0800, 0x0 },
+ { gTexture667BAC, 0x067A, 0x0800, 0x0 },
+ { gTextureFlagRed2, 0x0186, 0x0800, 0x0 },
+ { gTexture66DB60, 0x01D6, 0x0800, 0x0 },
+ { gTextureStainglassPeach0, 0x0ED1, 0x1000, 0x0 },
+ { gTextureStainglassPeach1, 0x0DA9, 0x1000, 0x0 },
+ { gTextureFencePostWooden, 0x083D, 0x1000, 0x0 },
+ { gTexture648508, 0x01FE, 0x1000, 0x0 },
+ { gTexture6449D4, 0x075D, 0x0800, 0x0 },
+ { gTexture67FE0C, 0x02DE, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
PodiumCeremony::PodiumCeremony() {
this->vtx = d_course_royal_raceway_vertex;
this->gfx = d_course_royal_raceway_packed_dls;
this->gfxSize = 5670;
- this->textures = royal_raceway_textures;
+ Props.textures = podium_ceremony_textures;
Props.D_800E5548[0] = 0;
Props.D_800E5548[1] = 0;
diff --git a/src/engine/courses/RainbowRoad.cpp b/src/engine/courses/RainbowRoad.cpp
index b8e9865c6..e13b3229b 100644
--- a/src/engine/courses/RainbowRoad.cpp
+++ b/src/engine/courses/RainbowRoad.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "RainbowRoad.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/rainbow_road_data.h"
extern "C" {
@@ -33,11 +32,21 @@ extern "C" {
extern const char *rainbow_road_dls[];
}
+const course_texture rainbow_road_textures[] = {
+ { gTextureStarOutline, 0x037A, 0x0800, 0x0 },
+ { gTexture67A1B8, 0x01B7, 0x0800, 0x0 },
+ { gTextureCheckerboardBlackWhite, 0x0107, 0x0800, 0x0 },
+ { gTexture662A34, 0x0106, 0x0800, 0x0 },
+ { gTextureRainbow, 0x025D, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
+
RainbowRoad::RainbowRoad() {
this->vtx = d_course_rainbow_road_vertex;
this->gfx = d_course_rainbow_road_packed_dls;
this->gfxSize = 5670;
- this->textures = rainbow_road_textures;
+ Props.textures = rainbow_road_textures;
Props.MinimapTexture = gTextureCourseOutlineRainbowRoad;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 96;
diff --git a/src/engine/courses/RoyalRaceway.cpp b/src/engine/courses/RoyalRaceway.cpp
index c2f6b3c62..8fe5eec32 100644
--- a/src/engine/courses/RoyalRaceway.cpp
+++ b/src/engine/courses/RoyalRaceway.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "RoyalRaceway.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/royal_raceway_data.h"
extern "C" {
@@ -34,11 +33,58 @@ extern "C" {
extern const char *royal_raceway_dls[];
}
+const course_texture royal_raceway_textures[] = {
+ { gTexture64619C, 0x0124, 0x0800, 0x0 },
+ { gTexture645134, 0x052C, 0x0800, 0x0 },
+ { gTextureWoodDoor1, 0x0903, 0x1000, 0x0 },
+ { gTexture64BB60, 0x0169, 0x0800, 0x0 },
+ { gTextureGrass3, 0x0372, 0x0800, 0x0 },
+ { gTexture64F9E8, 0x020B, 0x1000, 0x0 },
+ { gTextureFlagRed, 0x019E, 0x0800, 0x0 },
+ { gTextureCrownJewelBlue, 0x0301, 0x0800, 0x0 },
+ { gTextureCrown, 0x0106, 0x0800, 0x0 },
+ { gTextureCrownJewelPink, 0x0313, 0x0800, 0x0 },
+ { gTextureSignKoopaAir0, 0x0360, 0x1000, 0x0 },
+ { gTextureSignKoopaAir1, 0x0304, 0x1000, 0x0 },
+ { gTexture6684F8, 0x010D, 0x0800, 0x0 },
+ { gTextureSignLuigis0, 0x0287, 0x1000, 0x0 },
+ { gTextureSignLuigis1, 0x02AF, 0x1000, 0x0 },
+ { gTextureSignMarioStar0, 0x02D2, 0x1000, 0x0 },
+ { gTextureSignMarioStar1, 0x02B1, 0x1000, 0x0 },
+ { gTexture66CA98, 0x02C9, 0x0800, 0x0 },
+ { gTextureCheckerboardPink, 0x0157, 0x0800, 0x0 },
+ { gTexture670AC8, 0x0FBF, 0x1000, 0x0 },
+ { gTextureRoad0, 0x0300, 0x1000, 0x0 },
+ { gTextureRoadFinish0, 0x0338, 0x1000, 0x0 },
+ { gTextureSignYoshi, 0x04DF, 0x1000, 0x0 },
+ { gTextureCheckerboardBlueGray, 0x04A1, 0x1000, 0x0 },
+ { gTextureCastleBricks, 0x0B33, 0x1000, 0x0 },
+ { gTextureCastleBridge, 0x0428, 0x0800, 0x0 },
+ { gTextureGrass8, 0x02CB, 0x0800, 0x0 },
+ { gTextureGrass9, 0x0421, 0x0800, 0x0 },
+ { gTexture6646B8, 0x0298, 0x1000, 0x0 },
+ { gTexture664408, 0x02AE, 0x1000, 0x0 },
+ { gTextureBricksRed, 0x0C55, 0x1000, 0x0 },
+ { gTexture665C0C, 0x059D, 0x0800, 0x0 },
+ { gTexture6661AC, 0x01F7, 0x0800, 0x0 },
+ { gTexture6663A4, 0x05F6, 0x0800, 0x0 },
+ { gTexture667BAC, 0x067A, 0x0800, 0x0 },
+ { gTextureFlagRed2, 0x0186, 0x0800, 0x0 },
+ { gTexture66DB60, 0x01D6, 0x0800, 0x0 },
+ { gTextureStainglassPeach0, 0x0ED1, 0x1000, 0x0 },
+ { gTextureStainglassPeach1, 0x0DA9, 0x1000, 0x0 },
+ { gTextureFencePostWooden, 0x083D, 0x1000, 0x0 },
+ { gTexture648508, 0x01FE, 0x1000, 0x0 },
+ { gTexture6449D4, 0x075D, 0x0800, 0x0 },
+ { gTexture67FE0C, 0x02DE, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
RoyalRaceway::RoyalRaceway() {
this->vtx = d_course_royal_raceway_vertex;
this->gfx = d_course_royal_raceway_packed_dls;
this->gfxSize = 5670;
- this->textures = royal_raceway_textures;
+ Props.textures = royal_raceway_textures;
Props.MinimapTexture = gTextureCourseOutlineRoyalRaceway;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/SherbetLand.cpp b/src/engine/courses/SherbetLand.cpp
index be3cc7043..df2be3f2d 100644
--- a/src/engine/courses/SherbetLand.cpp
+++ b/src/engine/courses/SherbetLand.cpp
@@ -4,11 +4,11 @@
#include <memory>
#include "SherbetLand.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/sherbet_land_data.h"
+#include "engine/objects/OPenguin.h"
extern "C" {
#include "main.h"
@@ -34,11 +34,20 @@ extern "C" {
extern const char *sherbet_land_dls_2[];
}
+const course_texture sherbet_land_textures[] = {
+ { gTexture643B3C, 0x0798, 0x0800, 0x0 }, { gTexture66D024, 0x04EA, 0x0800, 0x0 },
+ { gTexture678118, 0x0314, 0x0800, 0x0 }, { gTextureSignWoodRedArrow, 0x04E1, 0x1000, 0x0 },
+ { gTexture678CC8, 0x058E, 0x0800, 0x0 }, { gTexture67842C, 0x050E, 0x0800, 0x0 },
+ { gTexture67893C, 0x038B, 0x0800, 0x0 }, { gTexture651984, 0x019C, 0x0800, 0x0 },
+ { gTexture651428, 0x055B, 0x0800, 0x0 }, { gTexture662924, 0x0110, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
SherbetLand::SherbetLand() {
this->vtx = d_course_sherbet_land_vertex;
this->gfx = d_course_sherbet_land_packed_dls;
this->gfxSize = 1803;
- this->textures = sherbet_land_textures;
+ Props.textures = sherbet_land_textures;
Props.MinimapTexture = gTextureCourseOutlineSherbetLand;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/Skyscraper.cpp b/src/engine/courses/Skyscraper.cpp
index 7af4fd53f..b95c15899 100644
--- a/src/engine/courses/Skyscraper.cpp
+++ b/src/engine/courses/Skyscraper.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "Skyscraper.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/skyscraper_data.h"
extern "C" {
@@ -33,11 +32,38 @@ extern "C" {
extern s16 currentScreenSection;
}
+const course_texture skyscraper_textures[] = {
+ { gTexture6457D8, 0x0160, 0x0800, 0x0 },
+ { gTexture6462C0, 0x01B9, 0x0800, 0x0 },
+ { gTexture6864E8, 0x0807, 0x1000, 0x0 },
+ { gTexture686CF0, 0x08B7, 0x1000, 0x0 },
+ { gTexture6875A8, 0x093F, 0x1000, 0x0 },
+ { gTexture687EE8, 0x0883, 0x1000, 0x0 },
+ { gTexture68876C, 0x0AC2, 0x1000, 0x0 },
+ { gTexture689230, 0x09CE, 0x1000, 0x0 },
+ { gTexture689C00, 0x0884, 0x1000, 0x0 },
+ { gTexture68A484, 0x07D6, 0x1000, 0x0 },
+ { gTexture68AC5C, 0x0A47, 0x1000, 0x0 },
+ { gTexture68B6A4, 0x07C5, 0x1000, 0x0 },
+ { gTexture68BE6C, 0x04A1, 0x1000, 0x0 },
+ { gTexture68C310, 0x030D, 0x1000, 0x0 },
+ { gTexture64B8D8, 0x0177, 0x0800, 0x0 },
+ { gTexture645660, 0x0176, 0x0800, 0x0 },
+ { gTextureNumberYellowBlue1, 0x01AE, 0x0800, 0x0 },
+ { gTextureNumberYellowBlue2, 0x01C6, 0x0800, 0x0 },
+ { gTextureNumberYellowBlue3, 0x01CC, 0x0800, 0x0 },
+ { gTextureNumberYellowBlue4, 0x01E4, 0x0800, 0x0 },
+ { gTexture668608, 0x0120, 0x0800, 0x0 },
+ { gTexture67B75C, 0x0108, 0x0800, 0x0 },
+ { gTexture6835F0, 0x0252, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
Skyscraper::Skyscraper() {
this->vtx = d_course_skyscraper_vertex;
this->gfx = d_course_skyscraper_packed_dls;
this->gfxSize = 548;
- this->textures = skyscraper_textures;
+ Props.textures = skyscraper_textures;
Props.MinimapTexture = gTextureCourseOutlineSkyscraper;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/TestCourse.cpp b/src/engine/courses/TestCourse.cpp
index 742dc6735..6b9907a12 100644
--- a/src/engine/courses/TestCourse.cpp
+++ b/src/engine/courses/TestCourse.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "TestCourse.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/mario_raceway_data.h"
#include "assets/bowsers_castle_data.h"
#include "assets/bowsers_castle_displaylists.h"
diff --git a/src/engine/courses/ToadsTurnpike.cpp b/src/engine/courses/ToadsTurnpike.cpp
index 7a19a54dc..cbac2d4e5 100644
--- a/src/engine/courses/ToadsTurnpike.cpp
+++ b/src/engine/courses/ToadsTurnpike.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "ToadsTurnpike.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/toads_turnpike_data.h"
#include "engine/actors/AFinishline.h"
@@ -38,11 +37,34 @@ extern "C" {
extern s8 gPlayerCount;
}
+const course_texture toads_turnpike_textures[] = {
+ { gTexture645134, 0x052C, 0x0800, 0x0 },
+ { gTexture64FE68, 0x0258, 0x1000, 0x0 },
+ { gTexture6607C0, 0x0105, 0x0800, 0x0 },
+ { gTexture6608C8, 0x0106, 0x0800, 0x0 },
+ { gTextureGrass11, 0x01F8, 0x0800, 0x0 },
+ { gTextureSignNintendoRed0, 0x02A6, 0x1000, 0x0 },
+ { gTextureSignNintendoRed1, 0x02F7, 0x1000, 0x0 },
+ { gTexture671A88, 0x012D, 0x0800, 0x0 },
+ { gTextureRoad2, 0x02AE, 0x1000, 0x0 },
+ { gTextureRoad3, 0x0286, 0x1000, 0x0 },
+ { gTextureRoad4, 0x0282, 0x1000, 0x0 },
+ { gTextureRoadFinish0, 0x0338, 0x1000, 0x0 },
+ { gTextureSignToadYellow, 0x0723, 0x1000, 0x0 },
+ { gTextureSignToadGreen, 0x071F, 0x1000, 0x0 },
+ { gTextureSignMergingLanes, 0x0118, 0x0800, 0x0 },
+ { gTexture65127C, 0x01AB, 0x0800, 0x0 },
+ { gTextureRoad5, 0x02B9, 0x1000, 0x0 },
+ { gTextureSignToadRed, 0x0610, 0x1000, 0x0 },
+ { gTexture668228, 0x0130, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
ToadsTurnpike::ToadsTurnpike() {
this->vtx = d_course_toads_turnpike_vertex;
this->gfx = d_course_toads_turnpike_packed_dls;
this->gfxSize = 3427;
- this->textures = toads_turnpike_textures;
+ Props.textures = toads_turnpike_textures;
Props.MinimapTexture = gTextureCourseOutlineToadsTurnpike;
Props.D_800E5548[0] = 128;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/WarioStadium.cpp b/src/engine/courses/WarioStadium.cpp
index 62c75143a..78bdf3079 100644
--- a/src/engine/courses/WarioStadium.cpp
+++ b/src/engine/courses/WarioStadium.cpp
@@ -4,9 +4,8 @@
#include <memory>
#include "WarioStadium.h"
-#include "GameObject.h"
#include "World.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/wario_stadium_data.h"
#include "engine/actors/AWarioSign.h"
#include "engine/actors/AFinishline.h"
@@ -37,11 +36,35 @@ extern "C" {
extern s16 currentScreenSection;
}
+const course_texture wario_stadium_textures[] = {
+ { gTexture67F15C, 0x02F1, 0x0800, 0x0 },
+ { gTexture67F450, 0x0194, 0x0800, 0x0 },
+ { gTextureSignWarioFace, 0x0825, 0x1000, 0x0 },
+ { gTexture670AC8, 0x0FBF, 0x1000, 0x0 },
+ { gTextureCheckerboardBlackWhite, 0x0107, 0x0800, 0x0 },
+ { gTexture64C11C, 0x0695, 0x0800, 0x0 },
+ { gTexture64C7B4, 0x046C, 0x0800, 0x0 },
+ { gTexture668228, 0x0130, 0x0800, 0x0 },
+ { gTexture668358, 0x01A0, 0x0800, 0x0 },
+ { gTexture66AEB8, 0x0201, 0x0800, 0x0 },
+ { gTexture677A40, 0x0275, 0x0800, 0x0 },
+ { gTexture67E428, 0x0A81, 0x1000, 0x0 },
+ { gTexture643A34, 0x0106, 0x0800, 0x0 },
+ { gTexture66EBF0, 0x0146, 0x0800, 0x0 },
+ { gTexture68272C, 0x01F9, 0x1000, 0x0 },
+ { gTexture682928, 0x01F9, 0x1000, 0x0 },
+ { gTexture682B24, 0x01F9, 0x1000, 0x0 },
+ { gTexture682D20, 0x01F9, 0x1000, 0x0 },
+ { gTexture682F1C, 0x01F9, 0x1000, 0x0 },
+ { gTexture683118, 0x01F9, 0x1000, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
WarioStadium::WarioStadium() {
this->vtx = d_course_wario_stadium_vertex;
this->gfx = d_course_wario_stadium_packed_dls;
this->gfxSize = 5272;
- this->textures = wario_stadium_textures;
+ Props.textures = wario_stadium_textures;
Props.MinimapTexture = gTextureCourseOutlineWarioStadium;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/courses/YoshiValley.cpp b/src/engine/courses/YoshiValley.cpp
index b372ec626..1d7bb0d6a 100644
--- a/src/engine/courses/YoshiValley.cpp
+++ b/src/engine/courses/YoshiValley.cpp
@@ -4,10 +4,9 @@
#include <memory>
#include "YoshiValley.h"
-#include "GameObject.h"
#include "World.h"
#include "engine/actors/AFinishline.h"
-#include "engine/vehicles/OBombKart.h"
+#include "engine/objects/OBombKart.h"
#include "assets/yoshi_valley_data.h"
#include "assets/boo_frames.h"
@@ -34,11 +33,30 @@ extern "C" {
extern const char *d_course_yoshi_valley_dl_list[];
}
+const course_texture yoshi_valley_textures[] = {
+ { gTexture66EBF0, 0x0146, 0x0800, 0x0 },
+ { gTextureWoodBridgeSlats, 0x0DAB, 0x1000, 0x0 },
+ { gTexture65E2EC, 0x02B0, 0x0800, 0x0 },
+ { gTexture6846DC, 0x04EA, 0x0800, 0x0 },
+ { gTextureFenceRope, 0x0540, 0x0800, 0x0 },
+ { gTexture685108, 0x04D4, 0x0800, 0x0 },
+ { gTexture64CC20, 0x0EC3, 0x1000, 0x0 },
+ { gTextureGrass4, 0x05C3, 0x0800, 0x0 },
+ { gTexture6775EC, 0x0233, 0x1000, 0x0 },
+ { gTexture68E2D0, 0x087F, 0x0800, 0x0 },
+ { gTextureCheckerboardBlackWhite, 0x0107, 0x0800, 0x0 },
+ { gTexture643B3C, 0x0798, 0x0800, 0x0 },
+ { gTextureSignWoodRedArrow, 0x04E1, 0x1000, 0x0 },
+ { gTexture68DEC0, 0x0410, 0x0800, 0x0 },
+ { 0x00000000, 0x0000, 0x0000, 0x0 },
+};
+
YoshiValley::YoshiValley() {
this->vtx = d_course_yoshi_valley_vertex;
this->gfx = d_course_yoshi_valley_packed_dls;
this->gfxSize = 4140;
- this->textures = yoshi_valley_textures;
+ Props.textures = yoshi_valley_textures;
+
Props.MinimapTexture = gTextureCourseOutlineYoshiValley;
Props.D_800E5548[0] = 64;
Props.D_800E5548[1] = 64;
diff --git a/src/engine/vehicles/OBombKart.cpp b/src/engine/objects/OBombKart.cpp
index a73a89f84..e51340b8f 100644
--- a/src/engine/vehicles/OBombKart.cpp
+++ b/src/engine/objects/OBombKart.cpp
@@ -1,5 +1,5 @@
#include <libultraship.h>
-#include "engine/vehicles/OBombKart.h"
+#include "OBombKart.h"
#include <vector>
#include "port/Game.h"
diff --git a/src/engine/vehicles/OBombKart.h b/src/engine/objects/OBombKart.h
index 8a331776c..4500e41c2 100644
--- a/src/engine/vehicles/OBombKart.h
+++ b/src/engine/objects/OBombKart.h
@@ -1,7 +1,7 @@
#pragma once
#include <libultraship.h>
-#include "Vehicle.h"
+#include "src/engine/vehicles/Vehicle.h"
#include <vector>
#include "engine/Matrix.h"
diff --git a/src/engine/vehicles/OPenguin.cpp b/src/engine/objects/OPenguin.cpp
index e8d97116a..f43a76ffc 100644
--- a/src/engine/vehicles/OPenguin.cpp
+++ b/src/engine/objects/OPenguin.cpp
@@ -1,6 +1,6 @@
#include <libultraship.h>
#include <libultra/gbi.h>
-#include "engine/vehicles/OPenguin.h"
+#include "OPenguin.h"
#include <vector>
#include "port/Game.h"
diff --git a/src/engine/vehicles/OPenguin.h b/src/engine/objects/OPenguin.h
index 007baf551..111f629ba 100644
--- a/src/engine/vehicles/OPenguin.h
+++ b/src/engine/objects/OPenguin.h
@@ -2,7 +2,6 @@
#include <libultraship.h>
#include <vector>
-#include "engine/vehicles/OPenguin.h"
extern "C" {
#include "macros.h"
@@ -11,6 +10,7 @@ extern "C" {
#include "waypoints.h"
#include "common_structs.h"
#include "objects.h"
+#include "course_offsets.h"
}
//! @todo Make shadow size bigger if thwomp is scaled up
diff --git a/src/engine/vehicles/OThwomp.cpp b/src/engine/objects/OThwomp.cpp
index 5cca30623..e2700f015 100644
--- a/src/engine/vehicles/OThwomp.cpp
+++ b/src/engine/objects/OThwomp.cpp
@@ -1,6 +1,6 @@
#include <libultraship.h>
#include <libultra/gbi.h>
-#include "engine/vehicles/OThwomp.h"
+#include "OThwomp.h"
#include <vector>
#include "port/Game.h"
diff --git a/src/engine/vehicles/OThwomp.h b/src/engine/objects/OThwomp.h
index 2d8a2a075..2d8a2a075 100644
--- a/src/engine/vehicles/OThwomp.h
+++ b/src/engine/objects/OThwomp.h