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
Get step-by-step solutions from verified subject matter experts
