User prompt
Make the background for the current map be some sort of beach gradient.
User prompt
Use the sound effect MAP when the MAP button is pressed.
User prompt
Make sure when TurtleRed is selected, the correct sprite TurtleSuitJump gets activated if the TurtleRed is jumping.
User prompt
Use the object TurtleJump if the TurtleDefault is jumping. If the TurtleSuit is jumping, use TurtleSuitJump instead.
User prompt
Make sure you actually use the mapButton object for the mapButton and not the otherButton object.
User prompt
rename the blue turtle to regular turtle jump and rename the red turtle to suit turtle and the purple turtle to suit turtle jump create for the suit turtle a own hit and a own jump sound
User prompt
Add a map button with a different button texture below the skins button.
User prompt
Delete the palm tree objects.
User prompt
Make sure that the hitbox of the boulder is exactly the same size as its graphical part.
User prompt
make spikes appear more often and rename them to boulders
User prompt
Make sure that those palm tree objects appear and are the biggest elements in the entire game, yet since they are trees after all. Make sure that a palm tree FG cannot appear.
User prompt
make two objects background palm tree and foreground palm tree the background palm tree can only appear in the background and the foreground palm tree only in the foreground but so that it does not hide an obstacle making it evil for players
User prompt
Make sure that only green and red are selectable as skins.
User prompt
Move the purple turtle from the shop.
User prompt
Make the obstacles appear more often, remove the pink turtle from existence and turn the red turtle player into the purple turtle instead when jumping. And also make the spikes appear more often and make them a bit larger, like 1.5 times.
User prompt
Could you please fix an issue where the player could turn himself into a thing and towards turning the... Make it so that the game can't use the camera and the game is... well, and the background is always black. Thank you.
User prompt
Make it so that the game can't use the camera and the game is always black. Thank you.
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'facekit.start();' Line Number: 232 ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'facekit.start();' Line Number: 232 ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
Move the puppet, Hutter.
User prompt
If the green turtle jumps, turn it into the blue turtle, and if the red turtle jumps, turn it into the pink turtle.
User prompt
Make sure that the boulders, so the obstacles, appear more frequently, and they are visible, so that the player can jump over them. Also, remove blue and red turtle from the shop selection.
User prompt
make the spikes smaller again and make the turtles jump a bit higher also make sure that the ground where the turtle touches the ground on the bottom on the top of the grounds right
User prompt
Make sure that the play and the shop button don't overlap. Also make sure that the ground is below the turtle and make the spike obstacles much bigger as well so that they are easily visible.
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'skinButton.graphics.tint = 0x90ee90;' Line Number: 219
/****
* Plugins
****/
var tween = LK.import("@upit/tween.v1");
var storage = LK.import("@upit/storage.v1");
/****
* Classes
****/
var BackgroundPalmTree = Container.expand(function () {
var self = Container.call(this);
self.speed = -12; // Slower than spikes for parallax effect
var treeGraphics = self.attachAsset('palmtree_bg', {
anchorX: 0.5,
anchorY: 1.0
});
self.update = function () {
self.x += self.speed;
};
return self;
});
var Boulder = Container.expand(function () {
var self = Container.call(this);
self.speed = -24;
self.passed = false;
var boulderGraphics = self.attachAsset('boulder', {
anchorX: 0.5,
anchorY: 1.0,
scaleX: 1.5,
scaleY: 1.5
});
// Set the container's dimensions to match the scaled graphics
self.width = boulderGraphics.width;
self.height = boulderGraphics.height;
self.update = function () {
self.x += self.speed;
};
return self;
});
var ForegroundPalmTree = Container.expand(function () {
var self = Container.call(this);
self.speed = -24; // Same speed as spikes
var treeGraphics = self.attachAsset('palmtree_fg', {
anchorX: 0.5,
anchorY: 1.0
});
self.update = function () {
self.x += self.speed;
};
return self;
});
var MenuButton = Container.expand(function (text, callback) {
var self = Container.call(this);
var buttonGraphics = self.attachAsset('menuButton', {
anchorX: 0.5,
anchorY: 0.5
});
var buttonText = new Text2(text, {
size: 120,
fill: 0xFFFFFF
});
buttonText.anchor.set(0.5, 0.5);
self.addChild(buttonText);
self.down = function () {
if (callback) callback();
};
return self;
});
var SkinButton = Container.expand(function (skinType, callback) {
var self = Container.call(this);
var buttonGraphics = self.attachAsset('skinButton', {
anchorX: 0.5,
anchorY: 0.5
});
self.graphics = buttonGraphics;
var skinPreview = self.attachAsset(skinType, {
anchorX: 0.5,
anchorY: 0.5,
scaleX: 0.6,
scaleY: 0.6
});
self.down = function () {
if (callback) callback();
};
return self;
});
var Turtle = Container.expand(function () {
var self = Container.call(this);
self.skinType = 'turtle_default';
self.originalSkin = 'turtle_default';
self.isJumping = false;
self.jumpSpeed = 0;
self.groundY = 0;
self.gravity = 2.4;
self.jumpPower = -72;
self.graphics = null;
self.setSkin = function (skinType) {
if (self.graphics) {
self.removeChild(self.graphics);
}
self.skinType = skinType;
self.originalSkin = skinType;
self.graphics = self.attachAsset(skinType, {
anchorX: 0.5,
anchorY: 1.0
});
};
self.jump = function () {
if (!self.isJumping) {
self.isJumping = true;
self.jumpSpeed = self.jumpPower;
LK.getSound('jump').play();
// Change skin when jumping
var jumpSkin = self.originalSkin;
if (self.originalSkin === 'turtle_default') {
jumpSkin = 'turtle_blue';
} else if (self.originalSkin === 'turtle_red') {
jumpSkin = 'turtle_purple';
}
if (jumpSkin !== self.skinType) {
if (self.graphics) {
self.removeChild(self.graphics);
}
self.skinType = jumpSkin;
self.graphics = self.attachAsset(jumpSkin, {
anchorX: 0.5,
anchorY: 1.0
});
}
}
};
self.update = function () {
if (self.isJumping) {
self.jumpSpeed += self.gravity;
self.y += self.jumpSpeed;
if (self.y >= self.groundY) {
self.y = self.groundY;
self.isJumping = false;
self.jumpSpeed = 0;
// Restore original skin when landing
if (self.skinType !== self.originalSkin) {
if (self.graphics) {
self.removeChild(self.graphics);
}
self.skinType = self.originalSkin;
self.graphics = self.attachAsset(self.originalSkin, {
anchorX: 0.5,
anchorY: 1.0
});
}
}
}
};
return self;
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
/****
* Game Code
****/
// Game states
var gameState = 'menu'; // 'menu', 'playing', 'gameOver'
var currentSkin = storage.selectedSkin || 'turtle_default';
// Game elements
var turtle = null;
var boulders = [];
var ground = null;
var scoreText = null;
var gameScore = 0;
var lastBoulderTime = 0;
var boulderInterval = 400; // milliseconds - reduced for more frequent spawning
var minBoulderInterval = 150; // reduced minimum interval
var backgroundPalmTrees = [];
var foregroundPalmTrees = [];
var lastBgPalmTime = 0;
var lastFgPalmTime = 0;
var bgPalmInterval = 2000; // milliseconds
var fgPalmInterval = 3000; // milliseconds
// Menu elements
var menuContainer = null;
var skinMenuContainer = null;
// Initialize ground
ground = game.addChild(LK.getAsset('ground', {
anchorX: 0,
anchorY: 0,
x: 0,
y: 2732 - 270
}));
// Initialize score display
scoreText = new Text2('0', {
size: 300,
fill: 0xFFFFFF
});
scoreText.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreText);
scoreText.y = 50;
function createMainMenu() {
menuContainer = game.addChild(new Container());
// Title
var titleText = new Text2('Turtle Run', {
size: 360,
fill: 0xFFFFFF
});
titleText.anchor.set(0.5, 0.5);
titleText.x = 2048 / 2;
titleText.y = 800;
menuContainer.addChild(titleText);
// Play button
var playButton = menuContainer.addChild(new MenuButton('PLAY', function () {
startGame();
}));
playButton.x = 2048 / 2;
playButton.y = 1200;
// Skins button
var skinsButton = menuContainer.addChild(new MenuButton('SKINS', function () {
showSkinMenu();
}));
skinsButton.x = 2048 / 2;
skinsButton.y = 1500;
// High score display
var highScore = storage.highScore || 0;
var highScoreText = new Text2('High Score: ' + highScore, {
size: 180,
fill: 0xFFFFFF
});
highScoreText.anchor.set(0.5, 0.5);
highScoreText.x = 2048 / 2;
highScoreText.y = 2100;
menuContainer.addChild(highScoreText);
}
function showSkinMenu() {
if (menuContainer) {
menuContainer.visible = false;
}
skinMenuContainer = game.addChild(new Container());
// Title
var titleText = new Text2('Choose Skin', {
size: 240,
fill: 0xFFFFFF
});
titleText.anchor.set(0.5, 0.5);
titleText.x = 2048 / 2;
titleText.y = 600;
skinMenuContainer.addChild(titleText);
// Skin options
var skins = ['turtle_default', 'turtle_red'];
var startX = 2048 / 2 - 600;
var startY = 900;
for (var i = 0; i < skins.length; i++) {
var skinButton = skinMenuContainer.addChild(new SkinButton(skins[i], function (skin) {
return function () {
currentSkin = skin;
storage.selectedSkin = skin;
hideSkinMenu();
};
}(skins[i])));
skinButton.x = startX + i * 600;
skinButton.y = startY;
// Highlight selected skin
if (skins[i] === currentSkin) {
skinButton.graphics.tint = 0x90ee90;
}
}
// Back button
var backButton = skinMenuContainer.addChild(new MenuButton('BACK', function () {
hideSkinMenu();
}));
backButton.x = 2048 / 2;
backButton.y = 1400;
}
function hideSkinMenu() {
if (skinMenuContainer) {
skinMenuContainer.destroy();
skinMenuContainer = null;
}
if (menuContainer) {
menuContainer.visible = true;
}
}
function startGame() {
gameState = 'playing';
gameScore = 0;
lastBoulderTime = 0;
boulderInterval = 600; // reduced from 1000 for more frequent spawning
// Hide menu
if (menuContainer) {
menuContainer.visible = false;
}
// Create turtle
turtle = game.addChild(new Turtle());
turtle.setSkin(currentSkin);
turtle.x = 300;
turtle.y = ground.y;
turtle.groundY = ground.y;
// Clear existing boulders
for (var i = boulders.length - 1; i >= 0; i--) {
boulders[i].destroy();
}
boulders = [];
// Clear existing palm trees
for (var j = backgroundPalmTrees.length - 1; j >= 0; j--) {
backgroundPalmTrees[j].destroy();
}
backgroundPalmTrees = [];
for (var k = foregroundPalmTrees.length - 1; k >= 0; k--) {
foregroundPalmTrees[k].destroy();
}
foregroundPalmTrees = [];
// Update score display
scoreText.setText(gameScore);
}
function gameOver() {
gameState = 'gameOver';
// Update high score
if (gameScore > (storage.highScore || 0)) {
storage.highScore = gameScore;
}
// Play hit sound
LK.getSound('hit').play();
// Flash screen red
LK.effects.flashScreen(0xff0000, 500);
// Show game over after delay
LK.setTimeout(function () {
LK.showGameOver();
}, 500);
}
function resetGame() {
gameState = 'menu';
// Clean up turtle
if (turtle) {
turtle.destroy();
turtle = null;
}
// Clean up boulders
for (var i = boulders.length - 1; i >= 0; i--) {
boulders[i].destroy();
}
boulders = [];
// Clean up palm trees
for (var j = backgroundPalmTrees.length - 1; j >= 0; j--) {
backgroundPalmTrees[j].destroy();
}
backgroundPalmTrees = [];
for (var k = foregroundPalmTrees.length - 1; k >= 0; k--) {
foregroundPalmTrees[k].destroy();
}
foregroundPalmTrees = [];
// Show menu
if (menuContainer) {
menuContainer.visible = true;
} else {
createMainMenu();
}
}
// Touch input for jumping
game.down = function (x, y, obj) {
if (gameState === 'playing' && turtle) {
turtle.jump();
}
};
// Main game loop
game.update = function () {
if (gameState === 'playing') {
// Spawn background palm trees
if (LK.ticks - lastBgPalmTime > bgPalmInterval) {
var bgPalm = game.addChild(new BackgroundPalmTree());
bgPalm.x = 2048 + 240;
bgPalm.y = ground.y;
backgroundPalmTrees.push(bgPalm);
lastBgPalmTime = LK.ticks;
bgPalmInterval = 2000 + Math.random() * 2000; // Random interval between 2-4 seconds
}
// Spawn boulders
if (LK.ticks - lastBoulderTime > boulderInterval) {
var boulder = game.addChild(new Boulder());
boulder.x = 2048 + 100;
boulder.y = ground.y + 90;
boulders.push(boulder);
lastBoulderTime = LK.ticks;
// Increase difficulty
if (boulderInterval > minBoulderInterval) {
boulderInterval -= 15; // faster difficulty increase
}
}
// Foreground palm trees disabled
// Update background palm trees
for (var b = backgroundPalmTrees.length - 1; b >= 0; b--) {
var bgTree = backgroundPalmTrees[b];
if (bgTree.x < -300) {
bgTree.destroy();
backgroundPalmTrees.splice(b, 1);
}
}
// Update boulders and check collisions
for (var i = boulders.length - 1; i >= 0; i--) {
var boulder = boulders[i];
// Remove off-screen boulders
if (boulder.x < -100) {
boulder.destroy();
boulders.splice(i, 1);
continue;
}
// Check if boulder was passed for scoring
if (!boulder.passed && boulder.x < turtle.x) {
boulder.passed = true;
gameScore++;
scoreText.setText(gameScore);
}
// Check collision with turtle
if (turtle && turtle.intersects(boulder)) {
gameOver();
return;
}
}
// Foreground palm trees disabled
}
};
// Initialize main menu
createMainMenu(); ===================================================================
--- original.js
+++ change.js
@@ -28,8 +28,11 @@
anchorY: 1.0,
scaleX: 1.5,
scaleY: 1.5
});
+ // Set the container's dimensions to match the scaled graphics
+ self.width = boulderGraphics.width;
+ self.height = boulderGraphics.height;
self.update = function () {
self.x += self.speed;
};
return self;
The sand ground of some sort of beach. In-Game asset. 2d. High contrast. No shadows
A small world map. In-Game asset. 2d. High contrast. No shadows
I land turtle with googly eyes wearing a suit and looking to the right. In-Game asset. 2d. High contrast. No shadows
Irregular old land turtle wearing a suit with a red tie in a jumping position. In-Game asset. 2d. High contrast. No shadows
A settings button I can without any background it’s a gear. In-Game asset. 2d. High contrast. No shadows
The beach of a tropical island, though the ocean is not to be seen in the background there is just a vibrant jungle. In-Game asset. 2d. High contrast. No shadows
A lush and vibrant jungle. In-Game asset. 2d. High contrast. No shadows
A area filled with lava and a sky two it’s still pretty vibrant but make sure it can loop without looking bad. In-Game asset. 2d. High contrast. No shadows
Junglee grass ground which is a bit overgrown. In-Game asset. 2d. High contrast. No shadows
Volcanic rocks for a ground. In-Game asset. 2d. High contrast. No shadows
I completely dark red square with some orange parts more in the middle representing a lava block. In-Game asset. 2d. High contrast. No shadows
A crazy almost neon green plant that can grow both on in the jungles and on beaches. In-Game asset. 2d. High contrast. No shadows
A golden land turtle with googly eyes looking to the right. In-Game asset. 2d. High contrast. No shadows
A golden turtle with googly eyes in the jumping position. In-Game asset. 2d. High contrast. No shadows
A pile of burn ash. In-Game asset. 2d. High contrast. No shadows
A trophy without any background. In-Game asset. 2d. High contrast. No shadows
A sterile space station background But it’s still futuristic and definitely seems like it’s made out of metal. In-Game asset. 2d. High contrast. No shadows
A metal plate working as the ground for a space station. In-Game asset. 2d. High contrast. No shadows
A swampy background with mangrove trees and overall overgrown but lush aesthetics. In-Game asset. 2d. High contrast. No shadows
A muddy swamp ground. In-Game asset. 2d. High contrast. No shadows
A background, this picture of a flash eating plant Not eating flesh at least not yet. In-Game asset. 2d. High contrast. No shadows
The street ground of a city. In-Game asset. 2d. High contrast. No shadows
A white car. In-Game asset. 2d. High contrast. No shadows
The skyline of a modern city. In-Game asset. 2d. High contrast. No shadows
Evening image of a mountain range easily looping. In-Game asset. 2d. High contrast. No shadows
The tropical ocean with the shore of an island in the far background easily looping itself. In-Game asset. 2d. High contrast. No shadows
A pirate. In-Game asset. 2d. High contrast. No shadows
The wooden floor of a pirate ship. In-Game asset. 2d. High contrast. No shadows
The pillar of an ancient jungle temple. In-Game asset. 2d. High contrast. No shadows
Ancient trap able to dispense arrows to PS it’s target. In-Game asset. 2d. High contrast. No shadows
The ground for an ancient jungle temple. In-Game asset. 2d. High contrast. No shadows
The background for the inside of an ancient jungle temple. In-Game asset. 2d. High contrast. No shadows
Fully soaked and wet grass and the dirt for the ground element oven to the jump and run. In-Game asset. 2d. High contrast. No shadows
Just a tree. In-Game asset. 2d. High contrast. No shadows
An open space of grass with dark rainy clouds up above Easily looper. In-Game asset. 2d. High contrast. No shadows
hit
Sound effect
jump
Sound effect
Map
Sound effect
Lever
Sound effect
Gear
Sound effect
Land
Sound effect
Secret
Sound effect
celebrate
Sound effect
Started
Sound effect
landing_jungle
Sound effect
landing_volcano
Sound effect
hit_lava_geyser
Sound effect
hit_palm_tree
Sound effect
trophy_bronze
Sound effect
trophy_gold
Sound effect
trophy_silver
Sound effect
Beach
Music
Jungle
Music
Volcano
Music
Warning
Sound effect
Alarm
Sound effect
Memories
Sound effect
Trophy
Sound effect
hit_laser_wall
Sound effect
Space
Music
landing_space
Sound effect
landing_swamp
Sound effect
hit_carnivorous_plant
Sound effect
Swamp
Music
City
Music
hit_car
Sound effect
landing_city
Sound effect
landing_silhouette_mountain
Sound effect
hit_dripstone
Sound effect
hit_pirate
Sound effect
pirate_landing
Sound effect
hit_arrow_trap
Sound effect
landing_ancient_temple
Sound effect
landing_thunderplanes
Sound effect
hit_thundertree
Sound effect
Thunderplanes
Music
thunder
Sound effect