Question: A. Phase 1: The Player a. You will create an object that will represent the player. b. There needs to be 2 colors at least

A. Phase 1: The Player

a. You will create an object that will represent the player.

b. There needs to be 2 colors at least

c. You need to be able to determine which direction you are facing. (It will be a top-down game)

(Needs to be more than a triangle)

d. The character will move with respects to the x and y axis and rotate around the z axis.

e. If the player presses a the object will rotate left

f. If the player presses d the object will rotate right.

g. If the player presses w the object will move forward IN RESPECTS TO THE DIRECTION IT IS FACING! (Hint: you need trig)

h. If the player presses s the object will move backwards IN RESPECT TO THE DIRECTION IT IS FACING.

This will need to be done using javascript. I use notepad++ to write my code and then launch it through google chrome. So if this could be done in a similar manner I would appreciate it.

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 Databases Questions!