summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-12-09 22:56:01 +0100
committerTreeki <treeki@gmail.com>2012-12-09 22:56:01 +0100
commitf96e157709d4a4f1e6c68791de7e651cf1e8e538 (patch)
tree647031561c2230002359af8cc434a08235a9e36b /src/koopatlas
parent224e27424f44b528c6c5ce8a8535566d9c0204ab (diff)
downloadkamek-f96e157709d4a4f1e6c68791de7e651cf1e8e538.tar.gz
kamek-f96e157709d4a4f1e6c68791de7e651cf1e8e538.zip
Starman on world maps
Diffstat (limited to '')
-rw-r--r--src/koopatlas/player.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/koopatlas/player.cpp b/src/koopatlas/player.cpp
index abfb329..351ba88 100644
--- a/src/koopatlas/player.cpp
+++ b/src/koopatlas/player.cpp
@@ -6,11 +6,17 @@ int daWMPlayer_c::onCreate() {
this->modelHandler = new dPlayerModelHandler_c(0);
// loadModel(u8 player_id, int powerup_id, int unk);
- this->modelHandler->loadModel(0, 3, 2);
+ // Unk is some kind of mode: 0=in-game, 1=map, 2=2D
+ this->modelHandler->loadModel(0, 3, 1);
this->modelHandler->mdlClass->startAnimation(0, 1.2, 10.0, 0.0);
this->modelHandler->setSRT((Vec){0.0,100.0,-100.0}, (S16Vec){0,0,0}, (Vec){2.0,2.0,2.0});
this->modelHandler->draw();
+ if (Player_Flags[0] & 1) {
+ modelHandler->mdlClass->enableStarColours();
+ modelHandler->mdlClass->enableStarEffects();
+ }
+
hammerSuit.setup(this->modelHandler);
pos = (Vec){0.0f,0.0f,3000.0f};
@@ -39,6 +45,8 @@ int daWMPlayer_c::onExecute() {
if (!dScKoopatlas_c::instance->mapIsRunning())
return true;
+ OSReport("Flags: %08x ; Mode: %d\n", modelHandler->mdlClass->model_visibility_flags_maybe, modelHandler->mdlClass->mode_maybe);
+
dScKoopatlas_c::instance->pathManager.execute();
this->modelHandler->update();