Resuelto un bug en la colision de balas con globos

This commit is contained in:
2022-10-04 14:16:22 +02:00
parent c3fd348a61
commit 9f93de1d06
5 changed files with 22 additions and 7 deletions

View File

@@ -318,6 +318,14 @@ void Balloon::render()
{
mSprite->render();
}
if (mKind == POWER_BALL)
{
Sprite *sp = new Sprite(mSprite->getRect() ,mSprite->getTexture(),mSprite->getRenderer());
sp->setSpriteClip(370,148,37,37);
sp->render();
delete sp;
}
}
}
@@ -667,10 +675,8 @@ Uint8 Balloon::getClass()
{
return HEXAGON_CLASS;
}
else
{
return 0;
}
return BALLOON_CLASS;
}
// Establece el valor de la variable