User prompt
make the obstacles collision area less big by 10 pixels
User prompt
make the bus accelerate longer and give it a higher top speed
User prompt
Fix Bug: 'TypeError: busBounds.intersects is not a function' in this line: 'if (busBounds.intersects(obstacleBounds)) {' Line Number: 85
User prompt
Fix Bug: 'TypeError: busBounds.intersects is not a function' in this line: 'if (busBounds.intersects(obstacleBounds)) {' Line Number: 85
User prompt
make the obstacle collisions more accurate
User prompt
make the game end when the bus collides with a obstacle
User prompt
add 5 obstacles and render them last
Code edit (1 edits merged)
Please save this source code
User prompt
make every text smaller by 0.5 times
User prompt
make the timer reset when a point is collected
User prompt
make the game end when the countdown is at zero
User prompt
remove the roads
User prompt
display the roads at the bottom
User prompt
display the roads on top
Code edit (2 edits merged)
Please save this source code
User prompt
center the instructions text
User prompt
move the swipetext into the middle
User prompt
build roads out of blocks
User prompt
trigger game over when the countdown is 0
User prompt
make the score text yellow
User prompt
make the countdown timer red
User prompt
show a timer that counts down from 10 when a new target was spawned
Code edit (1 edits merged)
Please save this source code
User prompt
display targets with a padding of 100 to the screen border
User prompt
set the minimum distance of each new target to be half the screens height
===================================================================
--- original.js
+++ change.js
@@ -80,10 +80,10 @@
};
self.checkCollision = function (obstacles) {
for (var i = 0; i < obstacles.length; i++) {
var busBounds = this.getBounds();
- var obstacleBounds = obstacles[i].getBounds();
- if (busGraphics.intersects(obstacles[i])) {
+ var obstacleBounds = obstacles[i].getBounds().pad(-10);
+ if (busBounds.intersects(obstacleBounds)) {
LK.showGameOver();
break;
}
}
Simple Car Steering Wheel. In-Game asset. 2d. Blank background. Svg
bomb Single Game Texture. In-Game asset. 2d. No shadows. flat. detailed
yellow bus stop symbol svg Single Game Texture. In-Game asset. 2d. No shadows. flat. detailed
yellow bus symbol svg. roof. top down. Single Game Texture. In-Game asset. 2d. No shadows. flat. detailed
dark transparent dust particle Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.