adding red color for collisions boxes

This commit is contained in:
Clément Le Bihan
2021-06-14 14:41:04 +02:00
parent a36ab11b6d
commit a229452dc4
4 changed files with 22 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ namespace BBM
for (int i = 0; i < width + 1; i++) {
for (int j = 0; j < height + 1; j++) {
if (map[std::make_tuple(i, 0, j)] != HOLE && map[std::make_tuple(i, -1, j)] != BUMPER)
scene->addEntity("Unbreakable Wall")
scene->addEntity("Floor")
.addComponent<PositionComponent>(Vector3f(i, -1, j))
.addComponent<Drawable3DComponent, RAY3D::Model>(floorObj, false,
std::make_pair(MAP_DIFFUSE, floorPng));