diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-03-21 21:00:50 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-03-21 21:00:50 -0500 |
commit | 265af929eecba3acf3258e6684f9f9b2f7cc1443 (patch) | |
tree | e5e728196f03019ec8f44b92c72534df2f3f70c0 /src/makeYourOwnModelSprite.cpp | |
parent | 0dc4aae6128eb16acef1b6faeabcb546762ebe36 (diff) | |
download | kamek-265af929eecba3acf3258e6684f9f9b2f7cc1443.tar.gz kamek-265af929eecba3acf3258e6684f9f9b2f7cc1443.zip |
Giving up on this approach, going to try something else later
Diffstat (limited to 'src/makeYourOwnModelSprite.cpp')
-rw-r--r-- | src/makeYourOwnModelSprite.cpp | 80 |
1 files changed, 72 insertions, 8 deletions
diff --git a/src/makeYourOwnModelSprite.cpp b/src/makeYourOwnModelSprite.cpp index d607f78..edf70ce 100644 --- a/src/makeYourOwnModelSprite.cpp +++ b/src/makeYourOwnModelSprite.cpp @@ -35,7 +35,7 @@ class dMakeYourOwn : public dStageActor_c { // Some variables to use int model; - char isAnimating; + bool isAnimating; float size; void setupAnim(const char* name, float rate); @@ -172,7 +172,7 @@ int dMakeYourOwn::onCreate() { SetupTextures_MapObj(&bodyModel, 0); this->pos.z = 3300.0; - setupAnim("anim08", 1.0); // AnmChr name, animation speed + setupAnim("anim08", 2.0); // AnmChr name, animation speed break; // ends the case case 9: // If nyb 12 is 0, it'll load this model @@ -205,7 +205,7 @@ int dMakeYourOwn::onCreate() { case 12: // If nyb 12 is 0, it'll load this model setupModel("block_arrow", "g3d/bre12.brres", "mario_end"); // arc name (no .arc), brres name, model name - SetupTextures_MapObj(&bodyModel, 0); + SetupTextures_Player(&bodyModel, 0); this->pos.z = 3000.0; setupAnim("anim12", 1.0); // AnmChr name, animation speed @@ -214,16 +214,16 @@ int dMakeYourOwn::onCreate() { case 13: // If nyb 12 is 0, it'll load this model setupModel("block_arrow", "g3d/bre13.brres", "luigi_end"); // arc name (no .arc), brres name, model name - SetupTextures_MapObj(&bodyModel, 0); + SetupTextures_Player(&bodyModel, 0); this->pos.z = 3000.0; - setupAnim("anim13", 1.0); // AnmChr name, animation speed + setupAnim("anim13", 2.0); // AnmChr name, animation speed break; // ends the case case 14: // If nyb 12 is 0, it'll load this model setupModel("block_arrow", "g3d/bre14.brres", "toady_end"); // arc name (no .arc), brres name, model name - SetupTextures_MapObj(&bodyModel, 0); + SetupTextures_Player(&bodyModel, 0); this->pos.z = 3000.0; setupAnim("anim14", 1.0); // AnmChr name, animation speed @@ -232,7 +232,7 @@ int dMakeYourOwn::onCreate() { case 15: // If nyb 12 is 0, it'll load this model setupModel("block_arrow", "g3d/bre15.brres", "toadb_end"); // arc name (no .arc), brres name, model name - SetupTextures_MapObj(&bodyModel, 0); + SetupTextures_Player(&bodyModel, 0); this->pos.z = 3000.0; setupAnim("anim15", 1.0); // AnmChr name, animation speed @@ -241,11 +241,75 @@ int dMakeYourOwn::onCreate() { case 16: // If nyb 12 is 0, it'll load this model setupModel("block_arrow", "g3d/bre16.brres", "peach_end"); // arc name (no .arc), brres name, model name - SetupTextures_MapObj(&bodyModel, 0); + SetupTextures_Enemy(&bodyModel, 0); this->pos.z = 3000.0; setupAnim("anim16", 1.0); // AnmChr name, animation speed break; // ends the case + + case 17: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre17.brres", "ground_perfect"); // arc name (no .arc), brres name, model name + SetupTextures_Map(&bodyModel, 0); + SetupTextures_MapObj(&bodyModel, 0); + this->pos.z = 3300.0; + + setupAnim("anim17", 1.0); // AnmChr name, animation speed + break; // ends the case + + case 18: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre18.brres", "mario_perfect"); // arc name (no .arc), brres name, model name + SetupTextures_Player(&bodyModel, 0); + this->pos.z = 3300.0; + + setupAnim("anim18", 1.0); // AnmChr name, animation speed + break; // ends the case + + case 19: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre19.brres", "luigi_perfect"); // arc name (no .arc), brres name, model name + SetupTextures_Player(&bodyModel, 0); + this->pos.z = 3000.0; + + setupAnim("anim19", 1.0); // AnmChr name, animation speed + break; // ends the case + + case 20: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre16.brres", "toady_perfect"); // arc name (no .arc), brres name, model name + SetupTextures_Player(&bodyModel, 0); + this->pos.z = 3000.0; + + setupAnim("anim20", 1.0); // AnmChr name, animation speed + break; // ends the case + + case 21: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre16.brres", "toadb_perfect"); // arc name (no .arc), brres name, model name + SetupTextures_Player(&bodyModel, 0); + this->pos.z = 3000.0; + + setupAnim("anim21", 1.0); // AnmChr name, animation speed + break; // ends the case + + case 22: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre22.brres", "peach_perfect"); // arc name (no .arc), brres name, model name + SetupTextures_Enemy(&bodyModel, 0); + this->pos.z = 3000.0; + + setupAnim("anim22", 1.0); // AnmChr name, animation speed + break; // ends the case + + case 23: // If nyb 12 is 0, it'll load this model + + setupModel("arrow", "g3d/bre23.brres", "backdrop"); // arc name (no .arc), brres name, model name + SetupTextures_Map(&bodyModel, 0); + this->pos.z = 3000.0; + + setupAnim("anim23", 1.0); // AnmChr name, animation speed + break; // ends the case // COPY the entire case here, and then change the number // |