diff --git a/.vscode/ipch/c35aa11ec19d39d2/mmap_address.bin b/.vscode/ipch/c35aa11ec19d39d2/mmap_address.bin deleted file mode 100644 index 862b842..0000000 Binary files a/.vscode/ipch/c35aa11ec19d39d2/mmap_address.bin and /dev/null differ diff --git a/.vscode/ipch/ca13418f9203bc8f/GAME.ipch b/.vscode/ipch/ca13418f9203bc8f/GAME.ipch deleted file mode 100644 index ccc5c94..0000000 Binary files a/.vscode/ipch/ca13418f9203bc8f/GAME.ipch and /dev/null differ diff --git a/.vscode/ipch/ca13418f9203bc8f/mmap_address.bin b/.vscode/ipch/ca13418f9203bc8f/mmap_address.bin deleted file mode 100644 index 862b842..0000000 Binary files a/.vscode/ipch/ca13418f9203bc8f/mmap_address.bin and /dev/null differ diff --git a/includes/game.hpp b/includes/game.hpp index b37e5b7..f46500c 100644 --- a/includes/game.hpp +++ b/includes/game.hpp @@ -55,6 +55,7 @@ public: void square(); void circle(); void pentagon(); + void rectangle(); void on_key_up_arrow(); void on_key_down_arrow(); diff --git a/source/game.cpp b/source/game.cpp index 9401591..95ea9e0 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -208,6 +208,15 @@ void Game::box() glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left glEnd(); } +void Game::rectangle(){ + glColor3f(1.0f, 1.0f, 1.0f); + glBegin(GL_LINE_LOOP); + glVertex3f(-2.5f, 1.0f, 0.0f); // Top Left + glVertex3f(2.5f, 1.0f, 0.0f); // Top Right + glVertex3f(2.5f, -1.0f, 0.0f); // Bottom Right + glVertex3f(-2.5f, -1.0f, 0.0f); // Bottom Left + glEnd(); +} void Game::circle() { @@ -293,6 +302,10 @@ void Game::guest_screen(){ glPopMatrix(); } void Game::top_screen(){ + glPushMatrix(); + glTranslatef(-0.0f, 1.25f, -6.0f); + this->rectangle(); + glPopMatrix(); } void Game::paint() @@ -305,7 +318,7 @@ void Game::paint() { this->grid(); } - + this->top_screen(); this->user_screen(); this->guest_screen();