Add weapon switching

This commit is contained in:
2016-06-21 19:05:06 +02:00
parent 3025fecf94
commit f80b513d90
10 changed files with 631 additions and 6 deletions
+4
View File
@@ -87,6 +87,10 @@ void Interface::draw()
glColor4f(1.0f, 1.0f, 0.1f, 1.0);
Util::glutBitmapString("Level: " + std::to_string(player->level), 490, 900);
//Text: weapons
Util::glutBitmapString(player->leftWeapon->name, 850, 900);
Util::glutBitmapString(player->rightWeapon->name, 10, 900);
for (int i = 0; i < maxCrystals; i++)
{
glBegin(GL_QUADS);