User prompt
haz que este 5 pixeles más abajo
User prompt
haz que la posición del jugador sea 1/4 del ancho de la pantalla
User prompt
500 0 pixeles
User prompt
haz que a posición del jugador sea 1000 pixeles a la izquierda
User prompt
ajusta la posición para que no se encuentre tanto a la izquierda
User prompt
Parece que el jugador rompe el movimiento del fondo
User prompt
el jugador se cae
User prompt
hay un periodo donde ve todo negro, haz que siempre se vea el fondo
User prompt
crea un clon de background que este pegado a su derecha así el movimiento se vea continuo
User prompt
haz que el desplazamiento del fondo sea de derecha a izquierda
User prompt
no se mueve
User prompt
haz que ground se desplace hacia la izquierda para generar un efecto de movimiento
User prompt
haz que ground no se vea
User prompt
haz que suelo sea transparente y sea igual de largo que fondo
User prompt
Please fix the bug: 'ReferenceError: ground is not defined' in or related to this line: 'if (self.intersects(ground)) {' Line Number: 24
User prompt
ellimina los asset suelo y base
User prompt
ajusta la posición del jugador a la isquierda
User prompt
sobrepone la imagen base
User prompt
baja un poco al player
User prompt
agregale un colisionador a base
User prompt
haz que player colisionee con base
User prompt
crea un jugador
User prompt
agrega el asset background al juego y que este por debajo de base
User prompt
Agrega ground al medio de la pantalla
User prompt
Reinicia el proyecto
/**** * Classes ****/ // Create a Player class var Player = Container.expand(function () { var self = Container.call(this); // Attach a shape asset to represent the player var playerGraphics = self.attachAsset('character', { anchorX: 0.5, anchorY: 0.5 }); // Set player speed self.speed = 5; // This is automatically called every game tick, if the player is attached! self.update = function () { self.y += self.speed; if (self.intersects(ground)) { self.speed = 0; ground.collider = true; } }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ // Initialize a player asset // Create a background asset var background = LK.getAsset('background', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 }); // Add the background to the game game.addChild(background); // Create a ground asset var ground = LK.getAsset('Ground', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 }); // Add the ground to the game game.addChild(ground); // Create a player instance and add it to the game var player = game.addChild(new Player()); // Position player at the center of the screen player.x = 2048 / 2; player.y = 2732 / 2 + 100; ;
===================================================================
--- original.js
+++ change.js
@@ -53,5 +53,6 @@
// Create a player instance and add it to the game
var player = game.addChild(new Player());
// Position player at the center of the screen
player.x = 2048 / 2;
-player.y = 2732 / 2;
\ No newline at end of file
+player.y = 2732 / 2 + 100;
+;
\ No newline at end of file
que no contenga sombras ni luces
una cabeza de moai redonda. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una esfera de hierro. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una esfera de oro. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
una piedra redonda musgosa. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
la bandera de argentina redonda. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
moneda de cobre. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
moneda de silver. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
moneda de gold. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
diamante Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una rueda de carretilla medieval. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
pelota de basquetbal modelo Molten. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
pelota de futbol hecha de hielo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Bola disco. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una bola de voley de planta. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una bola de pinchos. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una bola de lana. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Agrega una esfera que dentro contenga un cielo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una esfera con la via láctea. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
proporción 1000-2000, marios más robustos y sin tanto relieve
Un papel medieval con una enorme flecha hacia la izquierda de pintura en medio. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Esfera del dragon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Esfera demoniaca. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Esfera de hada. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
una manzana redonda. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Un capiraba redondo como una pelota. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Un armadillo hecho bolita. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Una estrella redondita. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Mejorar el diseños de lás casas para que sean más medievales y aumentar su calidad, más arboles y mejorar la calidad del cesped