User prompt
you added visibility to the score multiplier, but it should be the other way round than it is now. make it visible while the coin is stopped and invisible while the coin is spinning
User prompt
make the score invisible while the coin is spinning. only display the score multiplier while the coin is not spinning
User prompt
if the player chooses a coin option before the win / loose animations has stopped, remove the win / lose assets from the screen as soon as the player presses any of the buttons, without waiting for the whole animation to go through until it stops
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
change the flip duration to be valued in miliseconds instead of seconds
Code edit (5 edits merged)
Please save this source code
User prompt
Use fixed pixel offsets to center multiplier score. Don't use any variables etc. Make this value X = 0 y = 250
Code edit (8 edits merged)
Please save this source code
User prompt
increase the moving speed of the background animation
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
make the background animation last 100 miliseconds longer
User prompt
the win and loss triggers seems to be connected to the wrong trigger as they seem to display the wrong message. Ensure the assets are shown at the same moment the coin lands on the final side and not before. so if a life is deducted, that means the UI_Loss should be shown. if no life has been deducted, that means the choice was correct thus show the UI_Won asset.
User prompt
the WIN_UI is shown incorectly. it's shown when I make a wrong prediction, it should instead be shown when I make a right prediction. the UI_Loss asset should be shown when making the wrong choice
User prompt
there's a bug where the UI_Loss asset is shown when the coin lands on the tails side. even though I guessed correctly, I was shown the Loss UI, but instead I should have recieved the WonUI since I guessed correctly
Code edit (5 edits merged)
Please save this source code
User prompt
decrease the feedback time to 1 sec
User prompt
Fix Bug: 'Timeout.tick error: self.gameInstance.updateMultiplierDisplay is not a function' in or related to this line: 'self.gameInstance.updateMultiplierDisplay();' Line Number: 102
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'updateLives')' in or related to this line: 'game.livesDisplay.updateLives(game.lives);' Line Number: 93
User prompt
Fix Bug: 'Timeout.tick error: game.updateLivesDisplay is not a function' in or related to this line: 'game.updateLivesDisplay();' Line Number: 93
User prompt
Fix Bug: 'Uncaught TypeError: game.updateMultiplierDisplay is not a function' in or related to this line: 'game.updateMultiplierDisplay();' Line Number: 229
User prompt
the feedbacl UI elements are not displayed on the screen anymore
User prompt
now I cant see the feedback UI elements anymore
===================================================================
--- original.js
+++ change.js
@@ -23,18 +23,18 @@
self.tails = new TailsAsset();
self.addChild(self.heads);
self.addChild(self.tails);
self.currentSide = 'heads';
- self.flipDuration = 60;
- self.maxDuration = 660;
+ self.flipDuration = 10;
+ self.maxDuration = 300;
self.flipInterval = null;
self.flipTimeout = null;
self.flip = function (onFlipEnd) {
var flipCoin = function flipCoin() {
self.currentSide = self.currentSide === 'heads' ? 'tails' : 'heads';
self.heads.headsGraphics.visible = self.currentSide === 'heads';
self.tails.tailsGraphics.visible = self.currentSide === 'tails';
- self.flipDuration *= 1.5;
+ self.flipDuration *= 1.1;
if (self.flipDuration <= self.maxDuration) {
self.flipInterval = LK.setTimeout(flipCoin, self.flipDuration);
} else {
LK.clearTimeout(self.flipInterval);
isometric silver coin with a pirate monkey face. pirate themed. pixelated. 8 bit. viewed from the top as if the coin is resting flat.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
clean isometric silver doubloon. pirate themed. pixelated. 8 bit. viewed from the top as if the coin is resting flat.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
isometric tiny mini pirate island that floats in the sky. an red painted X marks the spot located in the center of the map. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
isometric doubloon copper coin icon featuring a skull. shaped like a heart. pirate themed. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
text saying "Arghhh". pirate themes. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
simple golden text saying "WIN". text is bursting out of the treasure chest with golden coins bursting behind the text. pirate themed banner. pixelated. 8 bit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.