User prompt
Make the background assets for the background
User prompt
Delete the track asset
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'setItem')' in or related to this line: 'localStorage.setItem('highestScore', highestScore);' Line Number: 109
User prompt
Save the highest score and update the highest score when an person made the score more than that of highest score
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'getItem')' in or related to this line: 'var highestScore = localStorage.getItem('highestScore') || 0;' Line Number: 64
User prompt
Save the highest score of the person.
User prompt
Make 1 point in 0.2 second
User prompt
Make 10 points in 0.1 second
User prompt
Show the score in top centre
User prompt
Show the score as default
User prompt
Show the score in middle
User prompt
Delete track and background assets
User prompt
Show the score in top right corner
User prompt
Add the points system and highest score
Initial prompt
Car race
===================================================================
--- original.js
+++ change.js
@@ -64,18 +64,20 @@
var pointsTxt = new Text2('Points: 0', {
size: 100,
fill: "#ffffff"
});
-pointsTxt.anchor.set(0.5, 0);
+pointsTxt.anchor.set(1, 0);
+pointsTxt.x = 2048;
LK.gui.top.addChild(pointsTxt);
// Display highest score
var highestScoreTxt = new Text2('Highest Score: 0', {
size: 100,
fill: "#ffffff"
});
-highestScoreTxt.anchor.set(0.5, 0);
+highestScoreTxt.anchor.set(1, 0);
+highestScoreTxt.x = 2048;
+highestScoreTxt.y = pointsTxt.height; // Position below points
LK.gui.top.addChild(highestScoreTxt);
-highestScoreTxt.y = 150; // Position below points
// Initialize track
var track = game.addChild(new Track());
track.x = 2048 / 2;
track.y = 2732 / 2;
An black background with text "car race with reverse controls" in white colour in the top left corner very simple and small text. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A super racing car like Porsche. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.