Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need c + + code for this question. MILESTONE 2 : LOWER SECOND CLASS ( 5 0 % + ) a . Setup an

I need c++ code for this question. MILESTONE 2: LOWER SECOND CLASS (50%+)
a. Setup an isometric camera that can be activated by pressing the "2" key.
i. The camera should be positioned at (150,150,-150), rotated by -45 degrees about
its local y-axis
and then by 45 degrees about its local x-axis (the order is important, why?).
ii. If the isometric camera is active, pressing the "1" key should reactivate the top-down
camera.
b. Reward the player with points whenever the sphere picks up a cube
i. Create an integer variable named "playerPoints" for tracking points accumulated
ii. When the sphere "picks" up a cube, add 10 to the player's points.
iii. Display the players points at the top and aligned to the right of the game
window in the format"Points: x'' e.g. after picking up all four cubes, "Points:
40'' should be displayed
c. When 4 of the cubes are picked up, the sphere should grow in size.
i. Implement this by scaling the sphere to 1.2 its initial size, this will make the radius
of the sphere 12units.
ii. After scaling up, the y position of the sphere must be changed so that part of it
does not appearbelow the floor (hint: consider the sphere's new radius).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions