Creados tiles que matan

This commit is contained in:
2022-07-14 16:37:58 +02:00
parent 8f3fc5b52a
commit d95645e930
7 changed files with 65 additions and 27 deletions

View File

@@ -464,10 +464,16 @@ int Room::getTile(SDL_Point point)
}
// Los tiles mayores de 80 son atravesables
if (tilemap[pos] > 200)
if ((tilemap[pos] > 200) && (tilemap[pos] < 381))
{
return TILE_TRAVESSABLE;
}
// Los tiles mayores de 80 son atravesables
if ((tilemap[pos] > 380) && (tilemap[pos] < 400))
{
return TILE_KILL;
}
}
return tile;