User prompt
Добавь ассет с движущимися ногами и руками
User prompt
Migrate to the latest version of LK
User prompt
Ассеты могут наслаиватся друг на друга
User prompt
Персонажи при толчке далеко отталкивают друг друга
User prompt
При каждом толчке персонажи подпрыгивают и далеко отлетают
User prompt
При каждом толчке персонажи подпрыгивают и отлетают
User prompt
При каждом толчке оппонент подпрыгивает и отлетает
User prompt
Уменьшить частоту толчков в 5 раз
User prompt
Увеличить силу толчков и уменьшить частоту
User prompt
Крен персонажей в обратную сторону
User prompt
Добавить ручное управление тапом для каждой стороны
User prompt
Добавить рандомность силы крена
User prompt
Уменьшить частоту толчков в 5 раз
User prompt
Увеличить силу крена персонажей в 3 раза
User prompt
Добавить физику крена персонажа вокруг своей оси от толчка и возвращение на место
User prompt
Уменьшить частоту толчков в 5 раз
User prompt
Уменьшить частоту толчков в 5 раз
User prompt
Уменьшить силу толчков в 3 раза
User prompt
Увеличить частоту толчков в 10 раз
User prompt
От каждого толчка персонаж подпрыгивает
User prompt
Увеличить планость в 4 раза
User prompt
От каждого толчка забирается 5 хитпоинтов у оппонента, у кого кончатся хитпоинты тот проиграл
User prompt
Увеличить плавность толчков в 25 раз
User prompt
Please fix the bug: 'Uncaught TypeError: Graphics is not a constructor' in or related to this line: 'self.graphics = new Graphics();' Line Number: 33
User prompt
Сделать ограничитель клетку стенки
/**** * Classes ****/ var Enemy = Container.expand(function () { var self = Container.call(this); var enemyGraphics = self.attachAsset('asianGirl', { anchorX: 0.5, anchorY: 0.5 }); var movingLegs = self.attachAsset('movingLegs', { anchorX: 0.5, anchorY: 0.5 }); var movingArms = self.attachAsset('movingArms', { anchorX: 0.5, anchorY: 0.5 }); self._update_migrated = function () { // Enemy update logic here }; }); var Hero = Container.expand(function () { var self = Container.call(this); var heroGraphics = self.attachAsset('norwegianGirl', { anchorX: 0.5, anchorY: 0.5 }); var movingLegs = self.attachAsset('movingLegs', { anchorX: 0.5, anchorY: 0.5 }); var movingArms = self.attachAsset('movingArms', { anchorX: 0.5, anchorY: 0.5 }); self._update_migrated = function () { // Hero update logic here }; }); var Wall = Container.expand(function () { var self = Container.call(this); var wallGraphics = self.attachAsset('wall', { anchorX: 0.5, anchorY: 0.5 }); }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Walls removed // Wall assets removed var tapCounter = 0; var leftWall = game.addChild(new Wall()); var rightWall = game.addChild(new Wall()); rightWall.x = 2038; var hero = game.addChild(new Hero()); hero.x = 1024; // Position at the center hero.y = 1366; // Center vertically var enemy = game.addChild(new Enemy()); enemy.x = 1024; // Position at the center enemy.y = 1366; // Center vertically LK.on('tick', function () { // AI control if (LK.ticks % (Math.floor(Math.random() * 3.2) * 12.5) === 0) { // The hero is stronger and moves in bursts hero.x += Math.random() * ((500 + tapCounter * 0.4) / 3); // The enemy is equal in strength but moves in strong bursts enemy.x -= Math.random() * ((500 + tapCounter * 0.4) / 3); } hero._update_migrated(); enemy._update_migrated(); // Collision detection and response if (hero.intersects(enemy)) { var overlap = hero.x + hero.width - enemy.x; var displacement = Math.random() * overlap * 2; hero.x -= displacement; enemy.x += displacement; // Allow assets to overlap each other // Increase the tilt effect when the characters are pushed by a random factor hero.rotation = -Math.random() * 0.3; enemy.rotation = Math.random() * 0.3; // Add jump and push back effect hero.y -= 50; enemy.y -= 50; LK.setTimeout(function () { hero.rotation = 0; enemy.rotation = 0; hero.y += 50; enemy.y += 50; }, 200); } // Collision detection with walls if (hero.x - hero.width / 2 < leftWall.x + leftWall.width) { hero.x = leftWall.x + leftWall.width + hero.width / 2; } if (hero.x + hero.width / 2 > rightWall.x) { hero.x = rightWall.x - hero.width / 2; } if (enemy.x - enemy.width / 2 < leftWall.x + leftWall.width) { enemy.x = leftWall.x + leftWall.width + enemy.width / 2; } if (enemy.x + enemy.width / 2 > rightWall.x) { enemy.x = rightWall.x - enemy.width / 2; } });
===================================================================
--- original.js
+++ change.js
@@ -6,8 +6,16 @@
var enemyGraphics = self.attachAsset('asianGirl', {
anchorX: 0.5,
anchorY: 0.5
});
+ var movingLegs = self.attachAsset('movingLegs', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ var movingArms = self.attachAsset('movingArms', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
self._update_migrated = function () {
// Enemy update logic here
};
});
@@ -16,8 +24,16 @@
var heroGraphics = self.attachAsset('norwegianGirl', {
anchorX: 0.5,
anchorY: 0.5
});
+ var movingLegs = self.attachAsset('movingLegs', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ var movingArms = self.attachAsset('movingArms', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
self._update_migrated = function () {
// Hero update logic here
};
});
@@ -38,10 +54,10 @@
/****
* Game Code
****/
-// Wall assets removed
// Walls removed
+// Wall assets removed
var tapCounter = 0;
var leftWall = game.addChild(new Wall());
var rightWall = game.addChild(new Wall());
rightWall.x = 2038;
Душат друг друга за шею. Beautiful angry girls female lady. Ужас и боль. Спортивные кофты с контрастными вставками. Захват за шею . Две девушки брюнетка против блондинки. Одетые в блестящие сатиновые спортивные костюмы красный против голубого. Боль страх отчаяние в глазах. Дерутся кулаками и ногами, Cartoon oldschool comics. Grabs Collarfight collarshake collargrappled in tracksuit satin track jacket. Girls blonde vs brunette. Cartoon comics oldshcool retro. Red satin tracksuit adidas track jacket asian brunette young women. Blue satin tracksuit kappa track jacket blone scandinavian young women beauty. Grabs collar each other. Beautiful girls. Fight kick hit strike to head. Хитпоинты урон. Наносят удары урон, драка. Душат друг друга за шею. Beautiful angry girls female lady. . Cartoon oldschool comics. Grabs Collarfight collarshake collargrappled in tracksuit satin track jacket. Girls blonde vs brunette. Cartoon comics oldshcool retro. Red satin tracksuit adidas track jacket asian brunette young women. Blue satin tracksuit kappa track jacket blone scandinavian young women beauty. Grabs collar each other. Beautiful girls. Beautiful girls female lady. Cartoon oldschool comics. Grabs Collarfight collarshake collargrappled in tracksuit satin track jacket. Girls blonde vs brunette. Cartoon comics oldshcool retro. Red satin tracksuit adidas track jacket asian brunette young women. Cartoon comics oldshcool retro. Red satin tracksuit adidas track jacket asian brunette young women. Blue satin tracksuit kappa track jacket blone scandinavian young women beauty. Grabs collar each other. Beautiful girls. Beautiful girls female lady. Захват за шею . Cartoon oldschool comics. Grabs Collarfight collarshake collargrappled in tracksuit satin track jacket. Girls blonde vs brunette. Cartoon comics oldshcool retro. Red satin tracksuit adidas track jacket asian brunette young women. Blue satin tracksuit kappa track jacket blone scandinavian young women beauty. Grabs collar each other. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.