User prompt
Fix Bug: 'TypeError: scoreTxt.getText is not a function' in this line: 'scoreTxt.setText(parseInt(scoreTxt.getText()) + 1);' Line Number: 107
User prompt
Fix Bug: 'TypeError: parseInt is not a function' in this line: 'scoreTxt.setText(parseInt(scoreTxt.text) + 1);' Line Number: 107
User prompt
add 1 to the score when the bus collides with the objective
User prompt
not make the bus rotate when its speed is at 0
User prompt
Fix Bug: 'TypeError: LK.showGameWon is not a function' in this line: 'LK.showGameWon();' Line Number: 105
User prompt
add an objective to the map that when the bus collides with it the game is won
User prompt
hide the wheelbase
User prompt
make the bus rotation less sensitive
User prompt
rotate the bus slower when the wheel rotation is closer to 0
User prompt
continuously rotate the bus when the wheel is not centered
Code edit (5 edits merged)
Please save this source code
User prompt
rotate the bus constantly when the wheel rotation is not 0
User prompt
increase the recoil power a lot
User prompt
give the bus recoil when hitting the screen border
User prompt
make the bus stop when it collides with the screen boreder
User prompt
rotate the bus graphic by -90 degrees
User prompt
make the bus move along its forward axis even while rotating
User prompt
make the bus have a maximum rotation speed
User prompt
add the wheels rotation to the bus instead of replacing it
User prompt
make the bus only rotate when it is also moving
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var pos = event.getLocalPosition(self.parent);' Line Number: 9
User prompt
Fix Bug: 'TypeError: bus.checkCollision is not a function' in this line: 'bus.checkCollision();' Line Number: 71
User prompt
Fix Bug: 'TypeError: bus.checkCollision is not a function' in this line: 'bus.checkCollision();' Line Number: 71
===================================================================
--- original.js
+++ change.js
@@ -103,9 +103,9 @@
LK.effects.flashScreen(0xff0000, 1000);
LK.showGameOver();
} else if (bus.intersects(objective)) {
LK.effects.flashScreen(0x00ff00, 1000);
- scoreTxt.setText(parseInt(scoreTxt.getText()) + 1);
+ scoreTxt.setText(parseInt(scoreTxt.text) + 1);
LK.showGameOver();
}
});
});
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.