[Add] A little spell stuff.

[Add] Woot, Rachel did the character sprite.
This commit is contained in:
Rtch90 2012-02-19 23:16:10 +00:00
parent 4b86f12f3a
commit 45d5720e4b
10 changed files with 228 additions and 210 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -79,4 +79,5 @@ SOURCES += ../src/libUnuk/Engine/WorldManager.cpp \
../src/libUnuk/UI/EventHistory.cpp \ ../src/libUnuk/UI/EventHistory.cpp \
../src/libUnuk/UI/Bar.cpp \ ../src/libUnuk/UI/Bar.cpp \
../src/libUnuk/System/Vec2.cpp \ ../src/libUnuk/System/Vec2.cpp \
../src/libUnuk/UI/SavegameMenu.cpp ../src/libUnuk/UI/SavegameMenu.cpp \
../src/libUnuk/Engine/Spells.cpp

View File

@ -41,7 +41,7 @@ void Game::Load(const string& savegameIDArg) {
} }
gameNavVal_t Game::Run(void) { gameNavVal_t Game::Run(void) {
_player->LoadSprites("../Data/Media/Images/Characters/Player.png", 40, 45); _player->LoadSprites("../Data/Media/Images/Characters/Reniesta.png", 40, 45);
int fps = 0; int fps = 0;
int frame = 0; int frame = 0;

View File

@ -4,7 +4,7 @@
#include "Globals.h" #include "Globals.h"
#include "Constants.h" #include "Constants.h"
#include "../libUnuk/Engine/Character.h" #include "../libUnuk/Engine/Character.h"
#include "../libUnuk//System/Debug.h" #include "../libUnuk/System/Debug.h"
class Player : public Character { class Player : public Character {
public: public:

View File

@ -38,7 +38,7 @@ void ParticleEmitter::SetParticleType(string typeArg) {
SDL_FreeSurface(_particleTexture); SDL_FreeSurface(_particleTexture);
} }
string textureFilename = "../Data/Media/Images/Particles/" + typeArg + ".png"; string textureFilename = "../../Data/Media/Images/Particles/" + typeArg + ".png";
_particleTexture = LoadImageAlpha(textureFilename.c_str()); _particleTexture = LoadImageAlpha(textureFilename.c_str());
} }

View File

@ -0,0 +1,17 @@
#include "Spells.h"
Spells::Spells(void) {
}
Spells::~Spells(void) {
}
void Spells::CastSpell() {
}
void Spells::Render(void) {
//_particle->Render();
}

View File

@ -1,4 +1,4 @@
#pragma once; #pragma once
#include "../../Unuk/Player.h" #include "../../Unuk/Player.h"
#include "../System/Timer.h" #include "../System/Timer.h"
#include "ParticleEmitter.h" #include "ParticleEmitter.h"
@ -13,9 +13,10 @@ public:
ICE ICE
}; };
void CastSpell(Player* player); void CastSpell(/*Player* player*/);
void Render(void);
private: private:
Timer* _timeBetweenCast; Timer* _timeBetweenCast;
ParticleEmitter* _particle;
}; };

View File

@ -1,7 +1,6 @@
#pragma once #pragma once
#include <list> #include <list>
#include "MemClass.h" #include "MemClass.h"
class Character; class Character;
class NPC; class NPC;
class Player; class Player;