User prompt
haz que arrow continue su camino y no se bugue en la misma posicioĢn
User prompt
haz que la posicioĢn inicial de player sea el centro
User prompt
haz que el primer arrow tarde 5 segundos en empezar el movimiento
User prompt
haz que enemy arrow al aparecer verifique la ultima posicioĢn actual de player en su aparicioĢn y se diriga a esa posicioĢn
User prompt
haz que este gire a la direccioĢn de player
User prompt
haz que arrow player persiga a player con una velocidad constante
User prompt
haz que enemyArrow vaya a posicioĢn de player cuando este es creado
User prompt
haz que enemyArrow vaya la ultima posicioĢn de player cuando este es creado
User prompt
Please fix the bug: 'selft is not defined' in or related to this line: 'selft.y = 200;' Line Number: 34
Code edit (1 edits merged)
Please save this source code
User prompt
haz que cuando se haga 60 segundos pase a 1 minuto
User prompt
agrega un contador de tiempo en la parte superior
Code edit (1 edits merged)
Please save this source code
User prompt
haz que ranged limiter este en el centro
User prompt
Please fix the bug: 'Rangerlimited is not defined' in or related to this line: 'var rangerlimited = game.addChild(new Rangerlimited());' Line Number: 78
Code edit (2 edits merged)
Please save this source code
User prompt
haz el movimiento mnĢas fluido
User prompt
mejora aun mas la logica para que el movimiento no pegue saltos de una posicion a otra cuando
User prompt
mejora aun maĢs la logica de movimiento para evitar vibraciones por parte de la camara
User prompt
mejora la movilidad de player para que sea mas fluida
User prompt
haz que la posicioĢn de background sea el centro
Code edit (1 edits merged)
Please save this source code
User prompt
agrega dos clases nueva Ranged limiter y background
Code edit (2 edits merged)
Please save this source code
User prompt
y al soltar que regrese a la normalidad
/****
* Plugins
****/
var facekit = LK.import("@upit/facekit.v1");
/****
* Classes
****/
var Background = Container.expand(function () {
var self = Container.call(this);
var backgroundGraphics = self.attachAsset('Background', {
anchorX: 0.5,
anchorY: 0.5
});
self.x = 2048 / 2; // Set the x position to the center of the screen
self.y = 2732 / 2; // Set the y position to the center of the screen
});
var Player = Container.expand(function () {
var self = Container.call(this);
var faceGraphics = self.attachAsset('faceObject', {
anchorX: 0.5,
anchorY: 0.5
});
self.update = function () {
// Update the position of the face follower to follow the nose tip
self.x = facekit.noseTip.x;
self.y = facekit.noseTip.y;
// Adjust the range of movement for the faceFollower object to be within a square in the middle of the screen
var leftBound = (2048 - 1000) / 2;
var rightBound = leftBound + 1000;
var topBound = (2732 - 1000) / 2;
var bottomBound = topBound + 1000;
if (self.y < topBound) {
self.y = topBound;
} else if (self.y > bottomBound) {
self.y = bottomBound;
}
if (self.x < leftBound) {
self.x = leftBound;
} else if (self.x > rightBound) {
self.x = rightBound;
}
};
});
var RangedLimiter = Container.expand(function () {
var self = Container.call(this);
var limiterGraphics = self.attachAsset('RangedLimiter', {
anchorX: 0.5,
anchorY: 0.5
});
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
/****
* Game Code
****/
var background = game.addChild(new Background());
var player = game.addChild(new Player());
game.up = function (x, y, obj) {
player.scaleX = 1;
player.scaleY = 1;
};
game.down = function (x, y, obj) {
player.scaleX = 0.5;
player.scaleY = 0.5;
}; ===================================================================
--- original.js
+++ change.js
@@ -11,8 +11,10 @@
var backgroundGraphics = self.attachAsset('Background', {
anchorX: 0.5,
anchorY: 0.5
});
+ self.x = 2048 / 2; // Set the x position to the center of the screen
+ self.y = 2732 / 2; // Set the y position to the center of the screen
});
var Player = Container.expand(function () {
var self = Container.call(this);
var faceGraphics = self.attachAsset('faceObject', {
ButtomSound
Sound effect
InitialLevel
Sound effect
ArrowCreated
Sound effect
sawcreated
Sound effect
Sawcharge
Sound effect
Ninjacreated
Sound effect
Ninjasepare
Sound effect
StarCreated
Sound effect
CircleCreated
Sound effect
HexagonCreated
Sound effect
GameplayMusic
Music