Math assignment 10 hrs

profileVincent666
UNIT9Exercise6Part2--Samples.pdf

UNIT 9 Exercise 6 Part 2 -- Samples

Sample 1 Video game: Skyline Jump This video game involves the player running from the “bad guys” while doing parkour jumps from building to building in the skyline of New York City. I will be using the square and square root elementary functions for the character to be jumping off the buildings and onto another. The game will start with the character on top of a building. As the police starts coming up, the

running will start automatically, with a predetermined speed that cannot be altered by the

player. The only thing the player must do is jump up or down. This is where the square and

square root functions enter. The player has to right click to jump up and left click to jump down.

y=x^2 will be used to jump down and y=x^(-2)=sqrt(x) will be used to jump up, where x is the

horizontal distance of the character from the position where the last click was made, and y is

the vertical distance of the character from the position where the last click was made. Each

jump terminates when the game character hits the roof top or the wall of the building. If the

character hits the wall, game over. Several difficulty levels of this game will be designed, each

with increasing speed. Heights of the buildings will be generated randomly in a sequence and

with some constraints to make the jumps physically possible.

Sample 2

Video game: Uphill: You make the car go forward by taping on the screen. Once you tap the screen the car is going to start moving and go up the hill. You will regulate the speed of the car by taping. The speed of the car be proportional to the frequency of taping, i.e. (speed) = (constant)(frequency of taping per second). But once you did not tap the screen for a certain period of time, say for 1 second, the speed of the car will decrease exponentially with time, i.e. (speed) = (original speed) e^(-time) You have to be careful with the birds, if you hit them the car will fall and you will lose. You can stop taping the screen and the car is going to lose speed so you can avoid hitting the birds. Hill follows the graph of the quadratic function y= x^2. The player who reaches the highest height wins.