crystal displayed on interface, with fancy gradient and the most beautifull colors for the crystal :)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user