Code edit (5 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
add a stroke to the messagetext ui text
Code edit (11 edits merged)
Please save this source code
User prompt
once all the messages in the list have been exhausted. refresh the list and start displaying them randomly once again. this cycle repeats infinitely
User prompt
now let's add more text messages to the text message system. once every 3 collected points, so when the score shows 3,6,9, etc, change the text message to one random one from the list. once that text has been used, ensure a new one is used, until the entire list has been depleted. here's the list of messages (Find peace in each breath. Balance is the path. Harmony within the moment. Inhale, exhale, be here now. Zen master tranquility. Flow like a gentle stream. Mind still as tranquil waters. Breathe in, let go.)
Code edit (1 edits merged)
Please save this source code
User prompt
ensure the text message appears above all other elements
User prompt
I cant see the textmessage, make sure it's z layer is above the background
User prompt
i still cant see the messagetext UI. place it in the center of the screen
User prompt
why cant I see the messagetxt UI? are you sure it's displayed above the background z layer?
===================================================================
--- original.js
+++ change.js
@@ -105,9 +105,9 @@
size: 100,
fill: "#ffffff"
});
messageTxt.anchor.set(0.5, 0.5);
-messageTxt.x = game.width / 2;
+messageTxt.x = game.width / 3;
messageTxt.y = game.height / 2;
LK.gui.top.addChild(messageTxt);
// Handle the tap event to toggle the hero's color
game.on('down', function (obj) {
minimalist meditation background. no elements. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. High contrast. No shadows.
black 8-ball biliard ball. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white round ball with black edges. has a black infinity logo inprinted on it. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
round black circle. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle with a thin black paintbrushed outline. minimalist. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.