Question

Assignment details and tasks Create a new C++ OpenGL application, called TagYouArelt Your application should do the following: 0 Set the application window size to the current desktop size o Set the camera position to X = 0, Y = 0, Z = 50 O Set the camera to look at position X = 0, Y = 0, Z = 0 o Create a player triangle at position (0, 0, 0): O Move the player triangle around on the XY axes with the WASD keys Render the player triangle in red Create 10 NPC triangles at random positions (x and y positions within the ranges [>= 2 <= 10; >= -10 <= -2]) around the player triangle: An NPC triangle is not tagged by default Non-tagged triangles are rendered in green Continuously move away from the player triangle if the NPC triangle is closer than 10 units away, and Continuously move closer to the player triangle if the NPC triangle is further than 11 units away Always be facing the player triangle o If the player triangle is closer than 1 unit away from an NPC triangle, tag the cube All tagged cubes must be rendered in blue See the next page for sample output and grading rubric See slate for a sample gameplay video

Fig: 1