Question: George P . Burdell is developing his first video game, The Phantom Scholar, which is 2 D with continuous movement and runs at 3 0

George P. Burdell is developing his first video game, The Phantom Scholar, which is 2D with
continuous movement and runs at 30 frames per second (best effort).
In the game, there is an enemy which George intends to chase the player at 1ms.
Each frame of the game simulation, George computes the relative vector ) from enemy
(position E) to player (position P) like so:
V=E-P
Then he computes the updated position (Enew) with the following equation:
Enew=E+V*130
What problems will George likely observe with his implementation?
The enemy will stand in place, never moving.
The enemy will move away from the player instead of towards.
The enemy's velocity will not be at the target speed.
The position displacement of the enemy is not adjusted for variation in frame rate.
The enemy will circle around the world origin but never move more than 1 m away from the origin.
George P . Burdell is developing his first video

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!