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.

Simple Animation

Press up/down to see different rows

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!