Question: I have an 8x8 table matrix in JAVASCRIPT, for a text adventurer game and he has an initial position. I am allowing the player to

I have an 8x8 table matrix in JAVASCRIPT, for a text adventurer game and he has an initial position. I am allowing the player to move left, right, up, down with buttons but here is my question: as he moves through the matrix, i want an "X" to move to the index as well so he can see where he is on the matrix(kind of like a marker), and if he bumps into any obstacles that i put in the array, for the prompt to tell him. please give simple functions, and if i have to put the function in the .click() function explain as well thanks! i am also using jquery.

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!