crystal displayed on interface, with fancy gradient and the most beautifull colors for the crystal :)

This commit is contained in:
Remco
2016-06-08 13:08:14 +02:00
parent bba0a2e2a0
commit 881b58138c
5 changed files with 26 additions and 4 deletions
+2 -1
View File
@@ -220,9 +220,10 @@ void World::update(float elapsedTime)
}
for(auto &crystal : crystals)
if (crystal->canCollide && crystal->inObject(player->position))
if (crystal->canCollide && crystal->inObject(player->position) && crystal->filled)
{
crystal->filled = false;
player->crystals++;
break;
}
}