Code edit (1 edits merged)
Please save this source code
User prompt
create the conffetti anim when averageQuality >= 80
Code edit (2 edits merged)
Please save this source code
User prompt
show the conffetti anim when averageQuality >= 80
User prompt
create a Conffetti anim class
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'effect')' in or related to this line: 'LK.init.effect('confetti', {' Line Number: 297
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'effect')' in or related to this line: 'LK.init.effect('confetti', {' Line Number: 296
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'effect')' in or related to this line: 'LK.init.effect('confetti', {' Line Number: 296
User prompt
add a conffetti anim when averageQuality >= 80
User prompt
Please fix the bug: 'ReferenceError: currentQuality is not defined' in or related to this line: 'if (currentQuality < averageQuality) {' Line Number: 871
User prompt
in initScoreState at the end of the currentQuality anim, play a sound depending on the score : < 20 applauseBad >= 20 and < 80 applauseNormal >= 80 applause
User prompt
store the final averageQuality in the LK score
Code edit (1 edits merged)
Please save this source code
User prompt
in initScoreState, add a finalResultPopup
User prompt
set finalScoreTxt fill to black
User prompt
in initScoreState, use finalResultBackground as a background
User prompt
use finalResultBackground as a background in score state
Code edit (1 edits merged)
Please save this source code
User prompt
us , align: "center" for finascoretxt and set explicitly finascoretxt.visible to false in gameInitialize
User prompt
in initScoreState, use finalScoreTxt instead of scoreTxt
Code edit (1 edits merged)
Please save this source code
User prompt
init finalScoreTxt in gameInitialize like scoreTxt, but add it to the Gui center and set it none visible
Code edit (1 edits merged)
Please save this source code
User prompt
add a new global variable finalScoreTxt
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -293,9 +293,8 @@
/****
* Game Code
****/
-var confettiAnim;
/***********************************************************************************/
/********************************** TARGET MANAGER CLASS ***************************/
/***********************************************************************************/
var TargetManager = function TargetManager() {
@@ -521,8 +520,9 @@
var currentTarget;
var currentTargetAsset;
var currentTargetRevert = false;
var shotButton;
+var confettiAnim;
// Game layer variables
var photoFrameShadow;
var backgroundLayer;
var foregroundLayer;
a forest.
flying Red-bellied Woodpecker.
flying Yellow-headed Blackbird.
flying Painted Bunting.
Underwater. only water and corals. NO animals
Countryside. 1 flower in foreground.
A Butterfly flying.
a fish swimming.
full dragonfly flying to the right.
full drone flying to the right.
a full hot air balloon with a basket flying to the right.
roofs of an empty modern city. day light
a satellite.
stary dark space. NO OBJECTS
a multitude of polaroids in bulk, with photos of birds, fishes, butterflies, planes, hot air baloons, satelites, dragonflies.....
A flying owl.
A flying parrot.
hippocampe.
shark. lateral view
diodon hystrix swimming. lateral view
fighting fish swimming. lateral view
a hang glider flying. full lateral view
un cerf-volant multicolore.
une coccinelle volante.
un scarabée vert irisé volant. side view
une gueppe volante. side view
un astronaute volant. full side view
une navette spaciale volante. full side view
un astéroïde volant dans l'espace. full side view
remove