Code edit (1 edits merged)
Please save this source code
User prompt
in the same way, use the ratios for resultTargetGraphics
User prompt
in MovingTarget; get the target using the asset parameter then use 1024 * wRatio and 1024*hRatio for width and height
Code edit (3 edits merged)
Please save this source code
User prompt
for each target in TargetManager.targets add 2 properties wRatio and hRatio defaulting to 1.0
Code edit (2 edits merged)
Please save this source code
User prompt
be careful, you duplicated the settimout
User prompt
use the same settimeout
User prompt
in initResultState show tapToContinue after 1sec
User prompt
in gameInitialize, instanciate tapToContinueTxt with text "Tap to continue..." with visible false
Code edit (1 edits merged)
Please save this source code
User prompt
prevenu multiple clicks in menu
Code edit (5 edits merged)
Please save this source code
User prompt
in cleanMenuState animate alpha to 0 for menuBackground, menuPopup and startText
User prompt
in cleanMenuState fade out menuBackground, menuPopup and startText by animating alpha to 0
User prompt
in cleanMenuState fade out menuBackground, menuPopup and startText progressivelly
Code edit (1 edits merged)
Please save this source code
User prompt
in cleanMenuState remove startText, menuPopup and menuBackground
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
in initMenuState add text "Start"
User prompt
in initMenuState add the finalResultPopup asset
User prompt
in initMenuState add the menuBackground asset
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'update')' in or related to this line: 'currentTarget.update();' Line Number: 947
===================================================================
--- original.js
+++ change.js
@@ -304,9 +304,9 @@
this.targets = {
'bird1': {
assetName: 'bird1',
startCorners: [1, 3, 4, 5, 7, 8],
- wRatio: 1.0,
+ wRatio: 0.5,
hRatio: 1.0
},
'bird2': {
assetName: 'bird2',
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