User prompt
Game over when car hits a bug
User prompt
Bugs scroll from top to bottom
User prompt
Car moves for as long as the screen remains touched
User prompt
It’s not required to touch inside the car for it to move
User prompt
Car moves towards the direction that I touch the screen
Initial prompt
Safari Bugs
===================================================================
--- original.js
+++ change.js
@@ -126,8 +126,11 @@
game.update = function () {
jeep.update();
for (var i = 0; i < bugs.length; i++) {
bugs[i].update();
+ if (jeep.intersects(bugs[i])) {
+ LK.showGameOver();
+ }
}
};
// Initialize the game
initGame();
\ No newline at end of file