...
 
Commits (2)
......@@ -10,7 +10,7 @@ World::World(sf::RenderWindow& window)
mSceneGraph.attachChild(mRoom);
mData = new HUD::HUD_data;
mData->size = 4;
mData->size = 5;
mData->meters = new HUD::Meter[mData->size];
mData->meters[0].cv = mData->meters[0].mv = getPlayerHP();
mData->meters[0].upType = Agent::HP_full; mData->meters[0].downType = Agent::HP_down;
......@@ -20,6 +20,8 @@ World::World(sf::RenderWindow& window)
mData->meters[2].upType = Agent::Coin; mData->meters[2].downType = Agent::Void;
mData->meters[3].mv = 10; mData->meters[3].cv = 0;
mData->meters[3].upType = Agent::Key; mData->meters[3].downType = Agent::Void;
mData->meters[4].mv = 10; mData->meters[4].cv = 0;
mData->meters[4].upType = Agent::Dagger; mData->meters[4].downType = Agent::Void;
}
void World::fillData(){
......@@ -27,6 +29,7 @@ void World::fillData(){
mData->meters[1].cv = mPlayer->getPoisonStack();
mData->meters[2].cv = mPlayer->getCoins();
mData->meters[3].cv = mPlayer->getKeys();
mData->meters[4].cv = mPlayer->getDaggers();
}
void World::spawnPlayer(Room* room){
......