User prompt
Al llegar al record el driver genere un texto que diga congratulations ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Que el menú principal ocupe todo el tamaño del juego como una capa
User prompt
Que el menú principal ocupe toda la pantalla del juego hasta que se toque el botón play
User prompt
Que el menú con el que inicia el juego tenga en el texto que dice drifting pero que el texto tenga estilo cyberpunk
User prompt
Que al principio de todo el juego aya un menú el cual tenga un título que dice drifting y abajo un botón con un texto que dice play y empezará un conteo para iniciar el juego
User prompt
Cada vez que pierda el jugador aparecera un menú con un botón que dice con un texto continuar y saldrá arriba el puntaje maximo al que ha llegado el jugador ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Añade un sistema de texto que cuando el juego llegué a tal puntaje saldrá un texto que dice record y que muestre el puntaje maximo del jugador ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
El driver no diga ningún texto
Remix started
Copy Drifting Love
/**** * Plugins ****/ var storage = LK.import("@upit/storage.v1"); var tween = LK.import("@upit/tween.v1"); /**** * Classes ****/ var Car = Container.expand(function () { var self = Container.call(this); self.projectMovement = function (vector) { var angle = -Math.PI / 4; var cosAngle = Math.cos(angle); var sinAngle = Math.sin(angle); return { x: vector.x * cosAngle - vector.y * sinAngle, y: vector.x * sinAngle + vector.y * cosAngle }; }; var carGraphics = self.attachAsset('car', { anchorX: 0.5, anchorY: 0.5 }); self.ORIGINAL_SPEED = 2; self.speed = self.ORIGINAL_SPEED; self.direction = 0; self.momentum = { x: 0, y: 0 }; self._move_migrated = function () { var momentumModifier = 0.1; self.speed *= 1.01; if (self.direction === 0) { self.momentum.x += self.speed * momentumModifier; } else { self.momentum.y -= self.speed * momentumModifier; } var projectedMovement = self.projectMovement(self.momentum); self.x += projectedMovement.x; self.y += projectedMovement.y; var nonTravelMomentum; if (self.direction === 0) { self.momentum.x *= 0.98; self.momentum.y *= 0.95; nonTravelMomentum = self.momentum.y; } else { self.momentum.x *= 0.95; self.momentum.y *= 0.98; nonTravelMomentum = self.momentum.x; } self.nonTravelMomentum = nonTravelMomentum; }; self.changeDirection = function () { self.direction = self.direction === 0 ? 1 : 0; self.speed = self.ORIGINAL_SPEED; carGraphics.scale.x *= -1; LK.getSound('Skid').play(); }; }); var Driver = Container.expand(function () { var self = Container.call(this); self.x = +1500; self.y = +1500; var driverGraphics = self.attachAsset('driver', { anchorX: 0.5, anchorY: 0.5 }); }); var Particle = Container.expand(function () { var self = Container.call(this); var particleGraphics = self.attachAsset('particle', { anchorX: 0.5, anchorY: 0.5 }); particleGraphics.rotation = Math.PI / 4; self.lifetime = 100; self.tick = function () { if (--self.lifetime <= 0) { self.destroy(); } }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ game.calculateDistanceToPoint = function (point, segmentStart, segmentEnd) { var A = point.x - segmentStart.x; var B = point.y - segmentStart.y; var C = segmentEnd.x - segmentStart.x; var D = segmentEnd.y - segmentStart.y; var dot = A * C + B * D; var len_sq = C * C + D * D; var param = -1; if (len_sq != 0) { param = dot / len_sq; } var xx, yy; if (param < 0) { xx = segmentStart.x; yy = segmentStart.y; } else if (param > 1) { xx = segmentEnd.x; yy = segmentEnd.y; } else { xx = segmentStart.x + param * C; yy = segmentStart.y + param * D; } var dx = point.x - xx; var dy = point.y - yy; return Math.sqrt(dx * dx + dy * dy); }; game.addRoadSegment = function () { var lastSegment = roadSegments[roadSegments.length - 1]; zigzag = !zigzag; var segment = roadContainer.attachAsset('roadSegment', { anchorX: 0.5 }); segment.width = segmentWidth; segmentWidth = Math.max(350, segmentWidth - 15); segment.height = i === 1 ? 3000 : Math.floor(Math.random() * (4000 - 1200 + 1)) + 1200; segment.rotation = zigzag ? -Math.PI - Math.PI / 4 : -Math.PI + Math.PI / 4; segment.y = currentY; segment.x = currentX; var adjustedHeight = segment.height - segmentWidth / 2; currentY += adjustedHeight * Math.cos(segment.rotation); currentX -= adjustedHeight * Math.sin(segment.rotation); segment.shadow = roadContainer.attachAsset('roadSegmentShadow', { anchorX: 0.5 }); segment.shadow.width = segment.width; segment.shadow.height = segment.height; segment.shadow.rotation = segment.rotation; segment.shadow.x = segment.x; segment.shadow.y = segment.y + 50; segment.shadow.alpha = 1; segment.used = false; roadSegments.push(segment); roadContainer.addChildAt(segment.shadow, 0); roadContainer.addChild(segment); }; game.setBackgroundColor(0xc39977); var particles = []; var gameStarted = false; var mainMenu = null; var playButton = null; var countdownStarted = false; var countdownValue = 3; var countdownText = null; function showMainMenu() { mainMenu = new Container(); mainMenu.x = 0; mainMenu.y = 0; var menuBackground = LK.getAsset('particle', { anchorX: 0, anchorY: 0, scaleX: 82, scaleY: 110 }); menuBackground.tint = 0x000000; menuBackground.alpha = 0.8; menuBackground.x = 0; menuBackground.y = 0; mainMenu.addChild(menuBackground); var titleText = new Text2('DRIFTING', { size: 200, fill: '#00FFFF', weight: '900', dropShadow: true, dropShadowColor: '#FF00FF', dropShadowBlur: 15, dropShadowAngle: Math.PI / 6, dropShadowDistance: 5 }); titleText.anchor.set(0.5, 0.5); titleText.x = 2048 / 2; titleText.y = 2732 / 2 - 200; mainMenu.addChild(titleText); playButton = LK.getAsset('particle', { anchorX: 0.5, anchorY: 0.5, scaleX: 15, scaleY: 6 }); playButton.tint = 0x4CAF50; playButton.x = 2048 / 2; playButton.y = 2732 / 2 + 100; mainMenu.addChild(playButton); var playText = new Text2('PLAY', { size: 100, fill: 0xFFFFFF, weight: '800' }); playText.anchor.set(0.5, 0.5); playText.x = 2048 / 2; playText.y = 2732 / 2 + 100; mainMenu.addChild(playText); playButton.down = function () { startCountdown(); }; game.addChild(mainMenu); } function startCountdown() { if (mainMenu) { mainMenu.destroy(); mainMenu = null; playButton = null; } countdownStarted = true; countdownValue = 3; countdownText = new Text2(countdownValue.toString(), { size: 300, fill: 0xFF0000, weight: '900', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 8, dropShadowAngle: Math.PI / 6, dropShadowDistance: 10 }); countdownText.anchor.set(0.5, 0.5); countdownText.x = 2048 / 2; countdownText.y = 2732 / 2; game.addChild(countdownText); var countdownTimer = LK.setInterval(function () { countdownValue--; if (countdownValue > 0) { countdownText.setText(countdownValue.toString()); } else if (countdownValue === 0) { countdownText.setText('GO!'); } else { LK.clearInterval(countdownTimer); countdownText.destroy(); countdownText = null; countdownStarted = false; gameStarted = true; LK.playMusic('backgroundMusic'); } }, 1000); } var mainContainer = game.addChild(new Container()); var roadContainer = mainContainer.addChild(new Container()); var roadSegments = []; var segmentLength = Math.floor(Math.random() * (1000 - 200 + 1)) + 200; var segmentWidth = 1200; var currentX = 2048 / 2; var currentY = 2732 / 2; var zigzag = true; for (var i = 1; i <= 15; i++) { game.addRoadSegment(); } var scoreText = new Text2('0', { size: 150, fill: 0xFFFFFF, weight: '800', dropShadow: true, dropShadowColor: '#373330', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6 }); scoreText.anchor.set(0, 0); LK.gui.top.addChild(scoreText); var recordText = new Text2('', { size: 200, fill: 0xFF0000, weight: '900', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 6, dropShadowAngle: Math.PI / 6, dropShadowDistance: 8 }); recordText.anchor.set(0.5, 0.5); recordText.x = 2048 / 2; recordText.y = 2732 / 2; recordText.visible = false; game.addChild(recordText); var congratulationsText = new Text2('CONGRATULATIONS', { size: 180, fill: '#FFD700', weight: '900', dropShadow: true, dropShadowColor: '#FF4500', dropShadowBlur: 10, dropShadowAngle: Math.PI / 6, dropShadowDistance: 8 }); congratulationsText.anchor.set(0.5, 0.5); congratulationsText.x = 2048 / 2; congratulationsText.y = 2732 / 2 - 300; congratulationsText.visible = false; congratulationsText.alpha = 0; congratulationsText.scaleX = 0.5; congratulationsText.scaleY = 0.5; game.addChild(congratulationsText); var highScore = storage.highScore || 0; var recordShown = false; var notificationTexts = ['Longing for her warm embrace', 'My love intensifies with each curve', 'Time slips away like smoke', 'Her voice echoes in my mind', 'Desperation sharpens every turn', 'Curves lead to her embrace', 'My passion grows with every turn', 'Time slips, but love persists', 'Desperation sharpens my every move', 'Reunion, the ultimate driving force', 'Is she waiting for me?', 'Where could she be?', 'Can I reach her in time?', 'Will she smile when I arrive?', 'Does she know I am coming?', 'Her embrace is my reward', 'Does she still remember me?', 'Will I see love in her eyes?', 'Does she feel my urgency?', 'Will our love grow stronger?', 'Her voice my guiding star', 'Do I still hold her heart?', 'Can I reach her in time?', 'Does she still believe in us?', 'Will our love conquer all?', 'How fast can I go?', 'Can I push my limits?', 'Will speed get me there?', 'Is haste my driving force?', 'Can I outpace the clock?', 'Is this a race against time?', 'Will acceleration save us?', 'Am I in the fast lane?', 'Can I set a new record?', 'Do I thrive on speed?', 'Will I leave time behind?', 'Am I the fastest driver?', 'Can I reach her swiftly?', 'Loves urgency fuels my speed', 'Every mile brings me closer?', 'Is this road endless or eternal?', 'The stars witness my journey', 'The road hums her name', 'The wind whispers her presence', 'Every turn tests my resolve', 'Her love fuels my engine', 'Can love overcome distance?', 'Is she watching the horizon?', 'Does she dream of our reunion?', 'Will my speed impress her?', 'Will the dawn find us together?', 'Can love conquer the road?', 'Each mile is a heartbeat closer', 'Am I chasing her or myself?', 'Does she feel my approach?', 'The moon guides me to her', 'The horizon holds her promise', 'Will she hear my engine roar?', 'Can I bridge the gap of time?', 'Is this love or obsession?', 'The journey defines our love', 'The asphalt hums beneath my wheels', 'The city fades into a blur', 'Her scent lingers in my memory', 'My headlights pierce the darkness', 'The road stretches like a heartbeat', 'Adrenaline sings through my veins', 'Her laughter fuels my resolve', 'Every corner tests my courage', 'The skyline hides her shadow', 'Is she the prize at the finish line?', 'Each second taunts my longing', 'Will the stars align for us tonight?', 'The road speaks in riddles', 'Do I drive toward hope or despair?', 'Her image dances in my mirrors', 'The engine growls with determination', 'The clock ticks louder with every shift', 'The wind carries her name to me', 'My tires trace a path to her heart', 'The road consumes my thoughts', 'Her love is the compass guiding me', 'Every red light feels like eternity', 'Will my speed match my yearning?', 'Every sign points me closer to her', 'Is this race for love or redemption?', 'The open road promises nothing', 'Her eyes pull me through the haze', 'The horizon burns with her absence', 'Every shadow hides a memory of her', 'The night swallows my doubt', 'Can I tame the chaos within me?', 'The distance mocks my devotion', 'Every street whispers her goodbye', 'The road winds like her gentle touch', 'My resolve tightens with every twist', 'The night’s chill cannot cool my fire', 'Every glance in the mirror spurs me forward', 'The speedometer measures my longing', 'Each turn carves her name into my soul', 'Her absence shapes the road ahead', 'Every second burns', 'Her cry echoes', 'The clock is screaming', 'I cant slow down', 'Her scent fades fast', 'The road bites back', 'Time cuts like a blade', 'She’s slipping away', 'The wind howls her name', 'My grip tightens', 'The tires scream urgency', 'Her face is fading', 'The night won’t wait', 'I’m running out of time', 'The engine roars her name', 'My heart is racing her', 'Every curve fights me', 'I can’t fail her', 'The darkness taunts me', 'Her voice is my lifeline', 'The horizon won’t come closer', 'Every second is agony', 'She needs me now', 'Fate’s breathing down my neck', 'Each turn steals time', 'Her warmth is slipping', 'I won’t let her go', 'The road fights back', 'I can’t be too late', 'Her heartbeat’s fading', 'The stars blur with speed', 'No brakes, just love', 'I’m chasing her shadow', 'Every light burns hope', 'This ride is life or death', 'Her embrace is slipping away', 'The night won’t forgive me', 'I’m on borrowed time', 'The road’s a battlefield']; var usedNotificationTexts = []; function getRandomNotificationText() { if (notificationTexts.length === 0) { notificationTexts = usedNotificationTexts.splice(0, usedNotificationTexts.length); } var index = Math.floor(Math.random() * notificationTexts.length); var text = notificationTexts.splice(index, 1)[0]; usedNotificationTexts.push(text); return text; } function showCustomGameOver() { isGameOver = true; gameOverMenu = new Container(); gameOverMenu.x = 2048 / 2; gameOverMenu.y = 2732 / 2; var menuBackground = LK.getAsset('particle', { anchorX: 0.5, anchorY: 0.5, scaleX: 80, scaleY: 60 }); menuBackground.tint = 0x000000; menuBackground.alpha = 0.8; gameOverMenu.addChild(menuBackground); var highScoreText = new Text2('Puntaje Máximo: ' + highScore, { size: 120, fill: 0xFFFFFF, weight: '800', dropShadow: true, dropShadowColor: '#373330', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6 }); highScoreText.anchor.set(0.5, 0.5); highScoreText.y = -200; gameOverMenu.addChild(highScoreText); continueButton = LK.getAsset('particle', { anchorX: 0.5, anchorY: 0.5, scaleX: 15, scaleY: 6 }); continueButton.tint = 0x4CAF50; continueButton.y = 100; gameOverMenu.addChild(continueButton); var continueText = new Text2('CONTINUAR', { size: 100, fill: 0xFFFFFF, weight: '800' }); continueText.anchor.set(0.5, 0.5); continueText.y = 100; gameOverMenu.addChild(continueText); continueButton.down = function () { restartGame(); }; game.addChild(gameOverMenu); } function restartGame() { if (gameOverMenu) { gameOverMenu.destroy(); gameOverMenu = null; continueButton = null; } isGameOver = false; gameStarted = false; score = 0; recordShown = false; showMainMenu(); scoreText.setText('0'); recordText.visible = false; congratulationsText.visible = false; car.x = 2048 / 2; car.y = 2732 / 2; car.speed = car.ORIGINAL_SPEED = 2; car.direction = 0; car.momentum = { x: 0, y: 0 }; mainContainer.x = 0; mainContainer.y = 0; segmentWidth = 1200; currentX = 2048 / 2; currentY = 2732 / 2; zigzag = true; for (var i = roadSegments.length - 1; i >= 0; i--) { roadSegments[i].shadow.destroy(); roadSegments[i].destroy(); roadSegments.splice(i, 1); } for (var i = 1; i <= 15; i++) { game.addRoadSegment(); } particles.forEach(function (particle) { particle.destroy(); }); particles = []; closestSegment = null; } var car = mainContainer.addChild(new Car()); car.x = 2048 / 2; car.y = 2732 / 2; var driver = LK.gui.addChild(new Driver()); driver.x = 250; driver.y = 1800; var isGameOver = false; var score = 0; var closestSegment = null; var gameOverMenu = null; var continueButton = null; showMainMenu(); game.on('down', function (x, y, obj) { if (gameStarted) { car.changeDirection(); } }); LK.on('tick', function () { if (isGameOver || !gameStarted) return; car._move_migrated(); var carIsOnRoad = false; var carPosition = { x: car.x, y: car.y }; var currentClosestSegment = null; var currentClosestDistance = Infinity; roadSegments.forEach(function (segment) { var segmentStart = { x: segment.x + Math.sin(segment.rotation) * 100, y: segment.y - Math.cos(segment.rotation) * 100 }; var segmentEnd = { x: segment.x - Math.sin(segment.rotation) * (segment.height - segment.width / 2), y: segment.y + Math.cos(segment.rotation) * (segment.height - segment.width / 2) }; var distance = game.calculateDistanceToPoint(carPosition, segmentStart, segmentEnd); if (distance < currentClosestDistance) { currentClosestDistance = distance; currentClosestSegment = segment; } if (distance < segment.width / 2 - 50) { carIsOnRoad = true; } }); if (closestSegment !== currentClosestSegment && !currentClosestSegment.used) { closestSegment = currentClosestSegment; closestSegment.used = true; score++; car.ORIGINAL_SPEED += 0.1; scoreText.setText(score.toString()); if (score > highScore && !recordShown) { storage.highScore = score; highScore = score; recordText.setText('¡RECORD!\n' + score); recordText.visible = true; recordShown = true; // Show congratulations message with animation congratulationsText.visible = true; congratulationsText.alpha = 0; congratulationsText.scaleX = 0.5; congratulationsText.scaleY = 0.5; // Animate congratulations text appearing tween(congratulationsText, { alpha: 1, scaleX: 1, scaleY: 1 }, { duration: 800, easing: tween.easeOut, onFinish: function onFinish() { // Keep it visible for a moment then fade out LK.setTimeout(function () { tween(congratulationsText, { alpha: 0, scaleX: 0.8, scaleY: 0.8 }, { duration: 600, easing: tween.easeIn, onFinish: function onFinish() { congratulationsText.visible = false; } }); }, 1500); } }); LK.setTimeout(function () { recordText.visible = false; }, 3000); } } if (!carIsOnRoad) { showCustomGameOver(); } else {} var particleOffsets = [{ x: 20, y: 140 }, { x: 20 + 100, y: 140 - 100 }, { x: 20 - 150, y: 140 - 150 }, { x: 20 - 150 + 100, y: 140 - 150 - 100 }]; for (var i = 0; i < particleOffsets.length; i++) { var alphaValue = Math.max(0, Math.min(1, Math.abs(car.nonTravelMomentum) / 5 - 0.5)); if (alphaValue > 0) { var particle = new Particle(); particle.alpha = alphaValue; var noiseX = (Math.random() - 0.5) * 10; var noiseY = (Math.random() - 0.5) * 10; particle.x = car.x + (car.direction === 0 ? -1 : 1) * particleOffsets[i].x + noiseX; particle.y = car.y + particleOffsets[i].y + noiseY; mainContainer.addChildAt(particle, 1); particles.push(particle); } } particles.forEach(function (particle, index) { particle.tick(); if (particle.lifetime <= 0) { particles.splice(index, 1); } }); var carLocalPosition = game.toLocal(car.position, car.parent); var offsetX = (2048 / 2 - carLocalPosition.x) / 20; var offsetY = (2732 - 450 - carLocalPosition.y) / 20; mainContainer.x += offsetX; mainContainer.y += offsetY; for (var i = roadSegments.length - 1; i >= 0; i--) { var segmentGlobalPosition = game.toLocal(roadSegments[i].position, roadSegments[i].parent); if (segmentGlobalPosition.y - roadSegments[i].height > 2732 * 2) { roadSegments[i].shadow.destroy(); roadSegments[i].destroy(); roadSegments.splice(i, 1); game.addRoadSegment(); } } });
===================================================================
--- original.js
+++ change.js
@@ -1,8 +1,9 @@
/****
* Plugins
****/
var storage = LK.import("@upit/storage.v1");
+var tween = LK.import("@upit/tween.v1");
/****
* Classes
****/
@@ -283,8 +284,26 @@
recordText.x = 2048 / 2;
recordText.y = 2732 / 2;
recordText.visible = false;
game.addChild(recordText);
+var congratulationsText = new Text2('CONGRATULATIONS', {
+ size: 180,
+ fill: '#FFD700',
+ weight: '900',
+ dropShadow: true,
+ dropShadowColor: '#FF4500',
+ dropShadowBlur: 10,
+ dropShadowAngle: Math.PI / 6,
+ dropShadowDistance: 8
+});
+congratulationsText.anchor.set(0.5, 0.5);
+congratulationsText.x = 2048 / 2;
+congratulationsText.y = 2732 / 2 - 300;
+congratulationsText.visible = false;
+congratulationsText.alpha = 0;
+congratulationsText.scaleX = 0.5;
+congratulationsText.scaleY = 0.5;
+game.addChild(congratulationsText);
var highScore = storage.highScore || 0;
var recordShown = false;
var notificationTexts = ['Longing for her warm embrace', 'My love intensifies with each curve', 'Time slips away like smoke', 'Her voice echoes in my mind', 'Desperation sharpens every turn', 'Curves lead to her embrace', 'My passion grows with every turn', 'Time slips, but love persists', 'Desperation sharpens my every move', 'Reunion, the ultimate driving force', 'Is she waiting for me?', 'Where could she be?', 'Can I reach her in time?', 'Will she smile when I arrive?', 'Does she know I am coming?', 'Her embrace is my reward', 'Does she still remember me?', 'Will I see love in her eyes?', 'Does she feel my urgency?', 'Will our love grow stronger?', 'Her voice my guiding star', 'Do I still hold her heart?', 'Can I reach her in time?', 'Does she still believe in us?', 'Will our love conquer all?', 'How fast can I go?', 'Can I push my limits?', 'Will speed get me there?', 'Is haste my driving force?', 'Can I outpace the clock?', 'Is this a race against time?', 'Will acceleration save us?', 'Am I in the fast lane?', 'Can I set a new record?', 'Do I thrive on speed?', 'Will I leave time behind?', 'Am I the fastest driver?', 'Can I reach her swiftly?', 'Loves urgency fuels my speed', 'Every mile brings me closer?', 'Is this road endless or eternal?', 'The stars witness my journey', 'The road hums her name', 'The wind whispers her presence', 'Every turn tests my resolve', 'Her love fuels my engine', 'Can love overcome distance?', 'Is she watching the horizon?', 'Does she dream of our reunion?', 'Will my speed impress her?', 'Will the dawn find us together?', 'Can love conquer the road?', 'Each mile is a heartbeat closer', 'Am I chasing her or myself?', 'Does she feel my approach?', 'The moon guides me to her', 'The horizon holds her promise', 'Will she hear my engine roar?', 'Can I bridge the gap of time?', 'Is this love or obsession?', 'The journey defines our love', 'The asphalt hums beneath my wheels', 'The city fades into a blur', 'Her scent lingers in my memory', 'My headlights pierce the darkness', 'The road stretches like a heartbeat', 'Adrenaline sings through my veins', 'Her laughter fuels my resolve', 'Every corner tests my courage', 'The skyline hides her shadow', 'Is she the prize at the finish line?', 'Each second taunts my longing', 'Will the stars align for us tonight?', 'The road speaks in riddles', 'Do I drive toward hope or despair?', 'Her image dances in my mirrors', 'The engine growls with determination', 'The clock ticks louder with every shift', 'The wind carries her name to me', 'My tires trace a path to her heart', 'The road consumes my thoughts', 'Her love is the compass guiding me', 'Every red light feels like eternity', 'Will my speed match my yearning?', 'Every sign points me closer to her', 'Is this race for love or redemption?', 'The open road promises nothing', 'Her eyes pull me through the haze', 'The horizon burns with her absence', 'Every shadow hides a memory of her', 'The night swallows my doubt', 'Can I tame the chaos within me?', 'The distance mocks my devotion', 'Every street whispers her goodbye', 'The road winds like her gentle touch', 'My resolve tightens with every twist', 'The night’s chill cannot cool my fire', 'Every glance in the mirror spurs me forward', 'The speedometer measures my longing', 'Each turn carves her name into my soul', 'Her absence shapes the road ahead', 'Every second burns', 'Her cry echoes', 'The clock is screaming', 'I cant slow down', 'Her scent fades fast', 'The road bites back', 'Time cuts like a blade', 'She’s slipping away', 'The wind howls her name', 'My grip tightens', 'The tires scream urgency', 'Her face is fading', 'The night won’t wait', 'I’m running out of time', 'The engine roars her name', 'My heart is racing her', 'Every curve fights me', 'I can’t fail her', 'The darkness taunts me', 'Her voice is my lifeline', 'The horizon won’t come closer', 'Every second is agony', 'She needs me now', 'Fate’s breathing down my neck', 'Each turn steals time', 'Her warmth is slipping', 'I won’t let her go', 'The road fights back', 'I can’t be too late', 'Her heartbeat’s fading', 'The stars blur with speed', 'No brakes, just love', 'I’m chasing her shadow', 'Every light burns hope', 'This ride is life or death', 'Her embrace is slipping away', 'The night won’t forgive me', 'I’m on borrowed time', 'The road’s a battlefield'];
var usedNotificationTexts = [];
@@ -358,8 +377,9 @@
recordShown = false;
showMainMenu();
scoreText.setText('0');
recordText.visible = false;
+ congratulationsText.visible = false;
car.x = 2048 / 2;
car.y = 2732 / 2;
car.speed = car.ORIGINAL_SPEED = 2;
car.direction = 0;
@@ -443,8 +463,38 @@
highScore = score;
recordText.setText('¡RECORD!\n' + score);
recordText.visible = true;
recordShown = true;
+ // Show congratulations message with animation
+ congratulationsText.visible = true;
+ congratulationsText.alpha = 0;
+ congratulationsText.scaleX = 0.5;
+ congratulationsText.scaleY = 0.5;
+ // Animate congratulations text appearing
+ tween(congratulationsText, {
+ alpha: 1,
+ scaleX: 1,
+ scaleY: 1
+ }, {
+ duration: 800,
+ easing: tween.easeOut,
+ onFinish: function onFinish() {
+ // Keep it visible for a moment then fade out
+ LK.setTimeout(function () {
+ tween(congratulationsText, {
+ alpha: 0,
+ scaleX: 0.8,
+ scaleY: 0.8
+ }, {
+ duration: 600,
+ easing: tween.easeIn,
+ onFinish: function onFinish() {
+ congratulationsText.visible = false;
+ }
+ });
+ }, 1500);
+ }
+ });
LK.setTimeout(function () {
recordText.visible = false;
}, 3000);
}
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.