User prompt
Establece inicial solarystem colo solarsystem 1
User prompt
agrega un display del numero del sistema encima
User prompt
Asigna una lista para los sistemas asi se organizan por numero
User prompt
arregla el bug que hace que no conecten los sistemas
User prompt
haz que la unión no sea directo con el sistema inicial si no del sistema de donde viene area
User prompt
haz que solo se cree una coneción por planeta para evitar retraso
User prompt
haz que se muestre los planetas disponibles para viajar dentro del rango de area, que se muestre con el asset conection uniendo un sistema de otro
User prompt
haz que solo sea 1 objeto y no cree más
User prompt
Please fix the bug: 'ReferenceError: connectionGraphics is not defined' in or related to this line: 'connection.scaleX = Math.sqrt(Math.pow(solarSystem.x - areaPunter.lastX, 2) + Math.pow(solarSystem.y - areaPunter.lastY, 2)) / connectionGraphics.width;' Line Number: 72
User prompt
cuando areapunter viaje de un sistema solar a otro que se crea una unión
Code edit (1 edits merged)
Please save this source code
User prompt
agrega una mecanica de conección
User prompt
haz que la transparencia de areapunter sea 0 mientras colisione con solarsystem
Code edit (2 edits merged)
Please save this source code
User prompt
create a BackgroundContainer, MidgroundContainer and ForegroundContainer in that order and attaching new instances to one of them, instead of attaching directly to the game Container and sorting them.
User prompt
suaviza la transición ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
haz el nuevo asset aparezca con 0 y escale a 1 su alpha ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
suaviza la transición para que no tenga cooldown en el cambio ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
haz que la transición de cuando solarsystem llegue a 0 y empieza a aumentar el alpha sea inmediata
User prompt
haz que mientras solarsystem vaya a 0 visited vaya a 1 para que no aparezca un momento que se vea negro
User prompt
haz que no desaparezca el objeto
User prompt
agregale una transición al cambio entre solarSystem y VisitedSolarSystem ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
cuando este start menu, gameplay no es visible
User prompt
cuando se toque que cambie la pagina de gameplay -> start menu / viceversa
===================================================================
--- original.js
+++ change.js
@@ -58,9 +58,9 @@
var connection = new Connection();
connection.x = (areaPunter.lastX + solarSystem.x) / 2;
connection.y = (areaPunter.lastY + solarSystem.y) / 2;
connection.rotation = Math.atan2(solarSystem.y - areaPunter.lastY, solarSystem.x - areaPunter.lastX);
- connection.scaleX = Math.sqrt(Math.pow(solarSystem.x - areaPunter.lastX, 2) + Math.pow(solarSystem.y - areaPunter.lastY, 2)) / connectionGraphics.width;
+ connection.scaleX = Math.sqrt(Math.pow(solarSystem.x - areaPunter.lastX, 2) + Math.pow(solarSystem.y - areaPunter.lastY, 2)) / connection.children[0].width;
midgroundContainer.addChild(connection);
}
});
}
@@ -81,9 +81,9 @@
var connection = new Connection();
connection.x = (solarSystemA.x + solarSystemB.x) / 2;
connection.y = (solarSystemA.y + solarSystemB.y) / 2;
connection.rotation = Math.atan2(dy, dx);
- connection.scaleX = distance / connectionGraphics.width;
+ connection.scaleX = distance / connection.children[0].width;
midgroundContainer.addChild(connection);
}
}
}