Code edit (18 edits merged)
Please save this source code
User prompt
add a 500 miliseconds delay before showing the win or loss feedback assets
Code edit (1 edits merged)
Please save this source code
User prompt
the background animation is broken, it's not visible in the screen area during the coin flipping animation. so make sure it works correctly. the background starts in it's original centered position, move downward by 1000 pixels once a selection has been made, then slides back up the same 1000 pixels to return to it's original position
User prompt
the background has an animation which I want to change the behavior off. instead of it sliding all the way from the bottom of the screen when the choice buttons are pressed, I want it to have 2 distinct sliding animations. The background starts as now from the center of the screen, and as soon as the player makes a choice, the background slides vertically downwards by 1000 pixels in a period of 1 second, then takes 2 seconds to slide back upwards to it's original position
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
===================================================================
--- original.js
+++ change.js
@@ -24,9 +24,9 @@
self.addChild(self.heads);
self.addChild(self.tails);
self.currentSide = 'heads';
self.flipDuration = 10;
- self.maxDuration = 300;
+ self.maxDuration = 500;
self.flipInterval = null;
self.flipTimeout = null;
self.flip = function (onFlipEnd) {
var flipCoin = function flipCoin() {
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.