Code edit (5 edits merged)
Please save this source code
User prompt
in preselect(), use addChildAt to set the preselected operation front
Code edit (1 edits merged)
Please save this source code
User prompt
in updateOperations, preselect operation at index 0
Code edit (13 edits merged)
Please save this source code
User prompt
in applyOperation, implement the removal of used operation
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'withOffset is not defined' in or related to this line: 'levelText.x = centerX + (withOffset ? 2048 : 0);' Line Number: 230
Code edit (3 edits merged)
Please save this source code
User prompt
when background animate Transition ends, restore initial positions of graphics
Code edit (1 edits merged)
Please save this source code
User prompt
when changing level, call animateTransition on backgroundImage
User prompt
in BackgroundImage add a new function animateTransition() that animates the move of the 4 graphics with a delta of -2048 for x and -2732 for y
Code edit (8 edits merged)
Please save this source code
User prompt
create a class for levelNumberText and use it
Code edit (13 edits merged)
Please save this source code
User prompt
update levelNumberText when changing level
Code edit (1 edits merged)
Please save this source code
User prompt
add a new levelNumberText Text: - declare levelNumberText global - initialize it in initializeGame function, very big and at the screen center. set its text to the current Level number. not visible. - make it visible in initNewRoundState
Code edit (1 edits merged)
Please save this source code
User prompt
play operationSelect when dragNode is set to operation
Code edit (5 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -550,10 +550,10 @@
return dx === 1 && dy === 0 || dx === 0 && dy === 1 || dx === 1 && dy === 1;
};
self.createOperations = function () {
self.operations = [];
- var baseX = centerX + 900;
- var baseY = 2620;
+ var baseX = centerX + 1000;
+ var baseY = 2580;
for (var i = 0; i < self.levelData.operations.length; i++) {
var opType = self.levelData.operations[i];
var operation = new OperationButton(opType, i);
self.operations.push(operation);
tick
Sound effect
tileEntrance
Sound effect
tileRemove
Sound effect
operationSelect
Sound effect
operationCancel
Sound effect
tileChangeValue
Sound effect
resetSound
Sound effect
levelFailed
Sound effect
menuLevelSelect
Sound effect
menuCellEnter
Sound effect
applause
Sound effect
bgMusic
Music
tada
Sound effect