Colisiones básicas completadas

This commit is contained in:
2022-08-17 13:26:22 +02:00
parent a6d6f2854e
commit 9bd1e9b936
11 changed files with 115 additions and 41 deletions

View File

@@ -87,6 +87,13 @@ int Sprite::getHeight()
return mHeight;
}
// Establece la posición del objeto
void Sprite::setPos(SDL_Rect rect)
{
mPosX = rect.x;
mPosY = rect.y;
}
// Establece el valor de la variable
void Sprite::setPosX(int x)
{