User prompt
From the score text, replace only the ''Depth'' part of the text for the Depth asset. However keep the '':'' and the actual meters that update.
User prompt
add five more waves
User prompt
add one second more between waves
User prompt
wave 4 should have more of the outline of a circle shape. empty center
User prompt
mvoe right flipper 20 piels right
User prompt
add obstacle3.
User prompt
obsctalce2 shoudl increase and decrease their size
User prompt
waves can nrandomly have any obstacle. but one wave will have all obstacles the same
User prompt
create obstacle2. this obstacles will not rotate but have a wiggly movement
User prompt
create 5 assets that will be used randomly in obstacles waves
User prompt
add an extra second between waves
User prompt
make fourth wave easier
User prompt
add a little more time btween waves
User prompt
add inerval of wait between waves
User prompt
do not wait fro obstacles to be destroyed before spawning next wave
User prompt
make waves spawn faster
User prompt
Please fix the bug: 'Timeout.tick error: scoreText.setText is not a function' in or related to this line: 'scoreText.setText('Depth: ' + score + 'm');' Line Number: 248
User prompt
replace only the text piece of scoretext that says Depth for the depth asset.
User prompt
show meters next to depth
User prompt
Please fix the bug: 'Timeout.tick error: scoreText.setText is not a function' in or related to this line: 'scoreText.setText('Depth: ' + score + 'm');' Line Number: 248
User prompt
replace Depth: text for depth asset
User prompt
add a previous wave that will only have 2 obstacles
User prompt
add 5 more waves of obstacles
User prompt
make depth text black
User prompt
make obstacles repel each other more and always to the outside
===================================================================
--- original.js
+++ change.js
@@ -222,14 +222,16 @@
;
// Initialize score
var score = 0;
// Create score text
-var scoreText = LK.getAsset('depth', {
- anchorX: 0.5,
- anchorY: 0.0
+var scoreText = new Text2('Depth: 0m', {
+ size: 150,
+ fill: "#ffffff"
});
scoreText.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreText);
+scoreText.anchor.set(0.5, 0);
+LK.gui.top.addChild(scoreText);
// Initialize a timer to update the score every second
var scoreUpdateInterval = LK.setInterval(function () {
score += 1;
if (scoreText) {
8bit. cartoon. jellyfish.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
empty 8 bit cartoon white circle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon. 8-bit. octopus. colorful.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon. 8-bit. sea urchin. colorful. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon 8bit stingray. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.