User prompt
compact CatchPresentDisplay code
Code edit (1 edits merged)
Please save this source code
User prompt
for moving asset, if destroyed then wait 4 seconds and run again. keep running until popuptextbox is closed
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'self.parent.addChild(particleEffect);' Line Number: 11
User prompt
attach to the moving asset particle effect that generates as the asset moves across teh screen
User prompt
in catchpresentdisplay add a routine that rotates through the catchpresent list once every 3 seconds
Code edit (6 edits merged)
Please save this source code
User prompt
add fadein to secondImage also on popuptext
Code edit (8 edits merged)
Please save this source code
User prompt
for text on popuptextbox make this fade in and add particle effects behind it as it does
Code edit (1 edits merged)
Please save this source code
User prompt
in popuptext box add asset that moves from left to right across top part of screen
Code edit (1 edits merged)
Please save this source code
User prompt
add a random shuffle to the way presents are displayed in catchPresentDisplay
User prompt
clean up CatchPresentDisplay code
User prompt
correct catchpresentdisplay code based upon the above response
Code edit (1 edits merged)
Please save this source code
User prompt
change updateList to shuffle catchPresentList to allow a random present type to be displayed
User prompt
change updatelist to shuffle catchPresentList in random order rather than taking a slice
User prompt
change updatelist to shuffle catchPresentList. present match should be against asset type only and not index id
Code edit (4 edits merged)
Please save this source code
User prompt
change updatelist to shuffle catchPresentList rather than taking a slice of it in order to get a random Asset type
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = array.length - 1; i > 0; i--) {' Line Number: 9
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -2,9 +2,9 @@
var self = Container.call(this);
self.x = 10;
self.y = 10;
self.catchPresentsList = [];
- self.displayLimit = LevelManager.getCurrentLevel();
+ self.displayLimit = 30;
self.updateList = function (catchPresents) {
self.catchPresentsList = catchPresents.slice(0, self.displayLimit);
for (var i = self.catchPresentsList.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
basic snowflake. white Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
open top of Santa's sack. wrapped presents with ribbons and box, vivid colours, candy canes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
close up of a Snow covered roof, Winter scene, star lit night sky, brick chimbly on right hand side, Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stary night sky.dark blue. no land. only sky Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Candy cane, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
old paper scroll, blank with no writing, Single Game Texture. In-Game asset. 2d. transparent Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
rudolf the red nose raindeer Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, bright colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
gift wrapped box, bright light colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
Santa's sleigh with a team of reindeer moving across a star light sky. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.