User prompt
on tick check if background is playing, if not, then play
User prompt
play background music on game start
User prompt
restart the engine sound after each tap
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound
User prompt
when the play taps the screen to drift the car, the engine sound should stop and restart
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound, restarting it
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately restart the engine sound.
Code edit (1 edits merged)
Please save this source code
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately restart the engine sound.
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound.
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound.
User prompt
after the player taps the screen, immediately restart the engine sound. so stop the sound first then play it again
User prompt
after the player taps the screen, immediately restart the engine sound. so stop the previous engine sound and start it again, so it doesn't overlapp
User prompt
after the player taps the screen, immediately restart the engine sound.
User prompt
while the car is moving, play the engine sound
User prompt
restart the engine sound after each player tap which drifts the car
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound.
User prompt
the engine sound has to restart immediately after the play taps the screen
Code edit (1 edits merged)
Please save this source code
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound. start the engine sound from the start of the game, as soon as the car starts moving
User prompt
the engine sound should play from the very start of the game, as soon as the car starts moving. right now it only plays after the first tap. the engine sounds represents the car moving, so it should start from the start of the game as soon as the car moves
User prompt
the engine sound should play from the very start of the game, as soon as the car starts moving. right now it only plays after the first tap
User prompt
the engine sound should play from the very start of the game, as soon as the car starts moving. right now it only plays after the first tap
User prompt
restart the engine sound after each tap that drifts the car
User prompt
while the car moves play the engine sound. after the player taps the screen, immediately stop the engine sound
===================================================================
--- original.js
+++ change.js
@@ -202,8 +202,11 @@
game.on('down', function (x, y, obj) {
car.changeDirection();
});
LK.on('tick', function () {
+ if (!LK.getSound('Background').playing) {
+ LK.getSound('Background').play();
+ }
car._move_migrated();
var carIsOnRoad = false;
var carPosition = {
x: car.x,
DeLorean car, seen from behind Top-down, gta2, Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.isometric
cool looking driver holding a car wheel as if he's driving. 30 years old. vintage retro 1980 style. 3/4 view. pixelated. 8 bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.