Code edit (1 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
User prompt
Migrate to the latest version of LK
User prompt
In the top right corner of the screen it should say little orange “Glaud”.
User prompt
beyaz yap kesik çizgiyi
User prompt
boy olarak biraz daha kısalt
User prompt
boy olarakta kısalt
User prompt
kesik çizgiyi beyaz yap ve boyutunu baya küçült
User prompt
ama road segment olmayan yerde olmasın kesik çizgi sadece road segmente olsun
User prompt
şimdi roadsegmentin üzerine simetrik olcak şekilde kesik çizgi ekle
User prompt
oyun mekanikleri bozuldu düzelt
User prompt
arka planı değiştirme seçeneği ekle yolu ve arka plan rengi için 3 seçenek olsun
User prompt
lastik aşınması olsun
Remix started
Copy Drifting Love
/**** * Classes ****/ var Car = Container.expand(function () { var self = Container.call(this); var carGraphics = self.attachAsset('car', { anchorX: 0.5, anchorY: 0.5 }); self.speed = 5; self.direction = 0; self._move_migrated = function () { if (self.direction === 0) { self.x += self.speed; } else { self.x -= self.speed; } }; self.changeDirection = function () { self.direction = self.direction === 0 ? 1 : 0; }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ var car = game.addChild(new Car()); car.x = 2048 / 2; car.y = 2732 - car.height; var isGameOver = false; game.on('down', function (x, y, obj) { car.changeDirection(); }); LK.on('tick', function () { car._move_migrated(); if (car.x < 0 || car.x > 2048) { isGameOver = true; } if (isGameOver) { LK.effects.flashScreen(0xff0000, 1000); LK.showGameOver(); } });
===================================================================
--- original.js
+++ change.js
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.