assets for hole on second flor

This commit is contained in:
arthur.jamet
2021-06-07 09:39:00 +02:00
parent 855a0c5bee
commit c7554c6b97
4 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

View File

@@ -8,4 +8,4 @@ fi
source ./emsdk/emsdk_env.sh source ./emsdk/emsdk_env.sh
mkdir -p build_web mkdir -p build_web
emcmake cmake -S . -B build_web -DPLATFORM=Web && emcmake cmake -S . -B build_web -DPLATFORM=Web &&
cmake --build build_web cd build_web && make -j $2

View File

@@ -19,7 +19,8 @@ namespace BBM
const std::string MapGenerator::secondFloorPath = MapGenerator::wallAssetsPath + "upper_floor"; const std::string MapGenerator::secondFloorPath = MapGenerator::wallAssetsPath + "upper_floor";
const std::string MapGenerator::stairsPath = MapGenerator::wallAssetsPath + "stairs"; const std::string MapGenerator::stairsPath = MapGenerator::wallAssetsPath + "stairs";
const std::string MapGenerator::bumperPath = MapGenerator::wallAssetsPath + "bumper"; const std::string MapGenerator::bumperPath = MapGenerator::wallAssetsPath + "bumper";
const std::string MapGenerator::holePath = MapGenerator::wallAssetsPath + "hole"; const std::string MapGenerator::secondFloorPath = MapGenerator::wallAssetsPath + "hole";
const std::string MapGenerator::secondFloorHolePath = secondFloorPath + "_hole";
void MapGenerator::generateUnbreakableBlock(int width, int height, std::shared_ptr<WAL::Scene> scene) void MapGenerator::generateUnbreakableBlock(int width, int height, std::shared_ptr<WAL::Scene> scene)
{ {
@@ -158,6 +159,7 @@ namespace BBM
{ {
static const std::string holeObj = holePath + objExtension; static const std::string holeObj = holePath + objExtension;
static const std::string holePng = holePath + imageExtension; static const std::string holePng = holePath + imageExtension;
static const std::string secondFloor = secondFloorHolePath + imageExtension;
scene->addEntity("Hole Block") scene->addEntity("Hole Block")
.addComponent<PositionComponent>(Vector3f(coords.x, coords.y - 1, coords.z)) .addComponent<PositionComponent>(Vector3f(coords.x, coords.y - 1, coords.z))

View File

@@ -154,6 +154,8 @@ namespace BBM
static const std::string holePath; static const std::string holePath;
static const std::string MapGenerator::secondFloorHolePath;
public: public:
//! @param width Width of the map //! @param width Width of the map