User prompt
the undernotification asset is a property of the notification text, thus is should always appear under the text. it's part of the UI. right now it remains stuck to the ground
User prompt
I cant see the asset under the notification text. ensure it is under the text but above the road
User prompt
add an asset under the notification text layer
User prompt
start with a new random notification from the list at the start of every game, then go through them randomly
User prompt
after showing a text in the notifications, don't show it again until exhausting all from the list
Code edit (1 edits merged)
Please save this source code
User prompt
move the notifications 50 pixels higher
User prompt
move the notifications 50 pixels higher
Code edit (1 edits merged)
Please save this source code
User prompt
instead of updating the notifications after every point, update them once every 2 points
User prompt
make the notification text 50% larger
Code edit (1 edits merged)
Please save this source code
User prompt
great, now make the notification font half the size, and add a black outline to it
User prompt
perfect, now I can see the text, but I want to make that whole part a notification area, so that the text changes after every point added to the score. once a point is added to the score, a new random line should appear, from a list I will provide "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."
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(memoriesText);' Line Number: 143
User prompt
the text is still not present in the game, make it visible
User prompt
the text "Her memories fuel my speed." is not present on the screen, I cant see it. it needs to be visible inside the screen area towards the bottom part of the screen
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(memoriesText);' Line Number: 144
User prompt
add a new text box at the bottom side of the screen that says "Her memories fuel my speed."
User prompt
I can't see the text I asked you to add. pls display it 100 pixels above the bottom side of the screen, so it appears at the bottom part of the screen
User prompt
display the following text at the bottom of the screen "Her memories fuel my speed."
User prompt
the text is sitll not displayed, show it at the bottom of the screen after each added point pls
User prompt
display the text I provided at the bottom of the screen, as instructed
User prompt
after each gained pointed, display this text at the bottom of the screen "Her memories fuel my speed."
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(scoreNotification);' Line Number: 202
===================================================================
--- original.js
+++ change.js
@@ -1,4 +1,27 @@
+var MemorySpeedBoostNotification = Container.expand(function () {
+ var self = Container.call(this);
+ var notificationText = new Text2('Her memories fuel my speed.', {
+ size: 100,
+ fill: '#ffffff',
+ weight: '800',
+ dropShadow: true,
+ dropShadowColor: '#000000',
+ dropShadowBlur: 4,
+ dropShadowAngle: Math.PI / 6,
+ dropShadowDistance: 6
+ });
+ notificationText.anchor.set(0.5, 0);
+ self.addChild(notificationText);
+ self.y = 2732 - 100;
+ self.alpha = 1;
+ self.animate = function () {
+ self.alpha -= 0.05;
+ if (self.alpha <= 0) {
+ self.destroy();
+ }
+ };
+});
var ScoreNotification = Container.expand(function () {
var self = Container.call(this);
var notificationText = new Text2('+1', {
size: 100,
@@ -197,12 +220,12 @@
closestSegment.used = true;
score++;
car.ORIGINAL_SPEED += 0.1;
scoreText.setText(score.toString());
- var scoreNotification = new ScoreNotification();
- LK.gui.addChild(scoreNotification);
+ var memorySpeedBoostNotification = new MemorySpeedBoostNotification();
+ LK.gui.addChild(memorySpeedBoostNotification);
LK.setTimeout(function () {
- scoreNotification.animate();
+ memorySpeedBoostNotification.animate();
}, 1000 / 60);
}
if (!carIsOnRoad) {
LK.showGameOver();
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.