[Add] A little spell stuff.
[Add] Woot, Rachel did the character sprite.
This commit is contained in:
parent
4b86f12f3a
commit
45d5720e4b
BIN
Data/Media/Images/Characters/Reniesta.png
Normal file
BIN
Data/Media/Images/Characters/Reniesta.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
@ -79,4 +79,5 @@ SOURCES += ../src/libUnuk/Engine/WorldManager.cpp \
|
||||
../src/libUnuk/UI/EventHistory.cpp \
|
||||
../src/libUnuk/UI/Bar.cpp \
|
||||
../src/libUnuk/System/Vec2.cpp \
|
||||
../src/libUnuk/UI/SavegameMenu.cpp
|
||||
../src/libUnuk/UI/SavegameMenu.cpp \
|
||||
../src/libUnuk/Engine/Spells.cpp
|
||||
|
@ -41,7 +41,7 @@ void Game::Load(const string& savegameIDArg) {
|
||||
}
|
||||
|
||||
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 frame = 0;
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "Globals.h"
|
||||
#include "Constants.h"
|
||||
#include "../libUnuk/Engine/Character.h"
|
||||
#include "../libUnuk//System/Debug.h"
|
||||
#include "../libUnuk/System/Debug.h"
|
||||
|
||||
class Player : public Character {
|
||||
public:
|
||||
|
@ -38,7 +38,7 @@ void ParticleEmitter::SetParticleType(string typeArg) {
|
||||
SDL_FreeSurface(_particleTexture);
|
||||
}
|
||||
|
||||
string textureFilename = "../Data/Media/Images/Particles/" + typeArg + ".png";
|
||||
string textureFilename = "../../Data/Media/Images/Particles/" + typeArg + ".png";
|
||||
_particleTexture = LoadImageAlpha(textureFilename.c_str());
|
||||
}
|
||||
|
||||
|
17
src/libUnuk/Engine/Spells.cpp
Normal file
17
src/libUnuk/Engine/Spells.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "Spells.h"
|
||||
|
||||
Spells::Spells(void) {
|
||||
|
||||
}
|
||||
|
||||
Spells::~Spells(void) {
|
||||
|
||||
}
|
||||
|
||||
void Spells::CastSpell() {
|
||||
|
||||
}
|
||||
|
||||
void Spells::Render(void) {
|
||||
//_particle->Render();
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
#pragma once;
|
||||
#pragma once
|
||||
#include "../../Unuk/Player.h"
|
||||
#include "../System/Timer.h"
|
||||
#include "ParticleEmitter.h"
|
||||
@ -13,9 +13,10 @@ public:
|
||||
ICE
|
||||
};
|
||||
|
||||
void CastSpell(Player* player);
|
||||
void CastSpell(/*Player* player*/);
|
||||
void Render(void);
|
||||
|
||||
private:
|
||||
Timer* _timeBetweenCast;
|
||||
|
||||
ParticleEmitter* _particle;
|
||||
};
|
||||
|
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
#include <list>
|
||||
#include "MemClass.h"
|
||||
|
||||
class Character;
|
||||
class NPC;
|
||||
class Player;
|
||||
|
Loading…
Reference in New Issue
Block a user