User prompt
no cambia de color
User prompt
no funciona
User prompt
haz que los planetas visitados su texto de nombre sea verde
User prompt
crea un marcador para los planetas visitados
User prompt
Crea un marcado que aparezca en la parte inferior derecha de los planetas para diferenciarlos de los no visitados
User prompt
agrega una logica para que tambien cambien su tamaño
User prompt
Crea una logica para que los sistemas puedan aparecer con un asset aleatorio desde el 1 al 3
User prompt
rename all solarsistem asset para que tengan un nombre escalonado
User prompt
rename SolarSysten1 -> solarsystem2
User prompt
rename solarSystem asset para que se llamen de solarsistem 1->3
User prompt
haz que cada sistema pueda aparecer con un diseño distinto
User prompt
elimina el codigo para la transición de visited solar system
User prompt
cambia el nombre de los asset visitedSolarSystem a SolarSystem1 y agrega solarsistem 3
User prompt
haz que button se elimine cuando spaceship no este más en el sistema
User prompt
El boton se sigue mostrando
User prompt
el boton se sigue mostrando despues de salir de su sistema
User prompt
haz que el botondialog desaaprezca despues de salir de su sistema
User prompt
haz que show dialog text se muestre inside del boton
User prompt
haz que al estar en un sistema aparezca un boton que salte un dialogo
User prompt
arregla el bug que nunca mestra el button dialogo
User prompt
el boton dialogo nunca aparece
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'var dialogButton = foregroundContainer.addChild(new DialogButton());' Line Number: 124
User prompt
haz que al estar en un sistema aparezca un boton que salte un dialogo. Cuando no se este en el sistema desaparezca
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'foregroundContainer.addChild(solarSystemButton);' Line Number: 126
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'foregroundContainer.addChild(solarSystemButton);' Line Number: 126
===================================================================
--- original.js
+++ change.js
@@ -77,11 +77,9 @@
return self;
});
var SolarSystem = Container.expand(function () {
var self = Container.call(this);
- var designs = ['SolarSystem1', 'SolarSystem3', 'solarSystem']; // Array of different designs
- var randomDesign = designs[Math.floor(Math.random() * designs.length)]; // Randomly select a design
- var solarSystemGraphics = self.attachAsset(randomDesign, {
+ var solarSystemGraphics = self.attachAsset('solarSystem1', {
anchorX: 0.5,
anchorY: 0.5
});
return self;
@@ -183,9 +181,9 @@
if (distanceInitial < 600) {
validPosition = false;
}
} while (!validPosition);
- var solarSystem = midgroundContainer.addChild(LK.getAsset('solarSystem', {
+ var solarSystem = midgroundContainer.addChild(LK.getAsset('solarSystem1', {
anchorX: 0.5,
anchorY: 0.5,
x: x,
y: y