Question: Given the javascript program below, Write a function that checks for collisions between the user's sprite and the walls. When the character moves, make sure
Given the javascript program below, Write a function that checks for collisions between the user's sprite and the walls. When the character moves, make sure that it cannot move into a wall(add at least 10 walls). Also include a goal, and indicate a win by turning the background to a different color. The player wins whenever he/she makes it to the goal. Just write the code you think would work.
Press up/down to see different rows
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
