- fixed a bug with mana producer
- fixed a graphical glitch with quads in the stack
This commit is contained in:
wagic.the.homebrew
2008-12-08 13:50:21 +00:00
parent 35b35f7672
commit bf314c9fa3
3 changed files with 6 additions and 1 deletions

View File

@@ -533,6 +533,7 @@ class AManaProducer: public MTGAbility{
if (mParticleSys) mParticleSys->MoveTo(x, y);
if (mParticleSys && animation == 1.f) mParticleSys->Fire();
animation -= 4 *dt;
if (!animation) animation = -1;
if (animation < 0){
animation = 0;
currentlyTapping--;

View File

@@ -20,7 +20,7 @@
#define STATE_FIRST_TIME 4
#define STATE_WARNING 5
#define GAME_VERSION "WTH?! 0.3.0 - by WilLoW"
#define GAME_VERSION "WTH?! 0.3.1 - by WilLoW"
#define ALPHA_WARNING 0
#define DEFAULT_ANGLE_MULTIPLIER 0.4

View File

@@ -50,6 +50,7 @@ void StackAbility::Render(){
JRenderer * renderer = JRenderer::GetInstance();
JQuad * quad = ability->source->getThumb();
if (quad){
quad->SetColor(ARGB(255,255,255,255));
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x , y , 0,scale,scale);
}else{
@@ -110,6 +111,7 @@ void Spell::Render(){
JRenderer * renderer = JRenderer::GetInstance();
JQuad * quad = source->getThumb();
if (quad){
quad->SetColor(ARGB(255,255,255,255));
float scale = mHeight / quad->mHeight;
renderer->RenderQuad(quad, x , y , 0,scale,scale);
}else{
@@ -119,6 +121,7 @@ void Spell::Render(){
if (target){
quad = target->getIcon();
if (quad){
quad->SetColor(ARGB(255,255,255,255));
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x + 150 , y , 0,scale,scale);
}
@@ -156,6 +159,7 @@ void PutInGraveyard::Render(){
JRenderer * renderer = JRenderer::GetInstance();
JQuad * quad = card->getThumb();
if (quad){
quad->SetColor(ARGB(255,255,255,255));
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x , y , 0,scale,scale);
}else{