Add health/xp/level interface

This commit is contained in:
2016-05-28 16:04:44 +02:00
parent 34ea491f39
commit ae80c7a5bf
16 changed files with 289 additions and 54 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ HeightMap::HeightMap(const std::string &file, World* world)
if (valueAt(x, y, GREEN) > 0)
{
world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)), Vec3f(x, heightAt(x, y), y), Vec3f(0, rand()%360, 0), 1, true));
world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)).first, Vec3f(x, heightAt(x, y), y), Vec3f(0, rand()%360, 0), 1, world->getObjectFromValue(valueAt(x, y, GREEN)).second));
}
Vec3f normal = ca.cross(ba);