Trabajando en las colisiones con plataformas moviles
This commit is contained in:
@@ -530,4 +530,16 @@ int Map::getActorName(int index)
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Devuelve el rectangulo de colisión
|
||||
int Map::getActorCollider(int index)
|
||||
{
|
||||
int y = 0;
|
||||
if (index != -1)
|
||||
{
|
||||
y = actors[index]->getCollider().y;
|
||||
}
|
||||
|
||||
return y;
|
||||
}
|
||||
Reference in New Issue
Block a user