User prompt
Увеличить силу толчков в 2 раза
User prompt
Увеличить силу толчков в 2 раза
User prompt
Уменьшить частоту толчков в 2 раза
User prompt
Уменьшить частоту толчков в 2 раза
User prompt
Уменьшить частоту толчков в 30 раз
User prompt
Персонажи по очереди толкают друг друга сильнее с каждым разом
User prompt
Персонажи не могут пройти сквозь друг друга
User prompt
Персонажи по очереди толкают сильнее обычного в 5 раз друг друга
User prompt
Персонажи хаотично побеждают друг друга
User prompt
Персонажи отталкивают при толчке и рывке друг друга на большое растояние быстро приближаясь сокращая растояние от толчка и рывка
User prompt
Персонажи отталкивают при толчке и рывке друг друга на большое растояние быстро приближаясь сокращая растояние от толчка и рывка
User prompt
Ассеты их по очереди передние и заслоняют друг друга
User prompt
asianGirl равная по силе norwegianGirl но передвигается сильными толчками
User prompt
norwegianGirl сильнее и рывками передвигается
User prompt
Ии берет на себя контроль над персонажами стараясь победить
User prompt
Ии берет контроль на себя. Один персонаж сильнее а другой быстрее. Наскакивают друг на друга стараясь вытолкать
User prompt
Please fix the bug: 'ReferenceError: strongerCharacter is not defined' in or related to this line: 'strongerCharacter.y -= 180;' Line Number: 63
User prompt
Please fix the bug: 'ReferenceError: strongerCharacter is not defined' in or related to this line: 'strongerCharacter.x += 180;' Line Number: 67
User prompt
Please fix the bug: 'ReferenceError: fasterCharacter is not defined' in or related to this line: 'fasterCharacter.x -= 180;' Line Number: 62
User prompt
Please fix the bug: 'ReferenceError: strongerCharacter is not defined' in or related to this line: 'if (strongerCharacter.intersects(leftWall) || fasterCharacter.intersects(rightWall)) {' Line Number: 94
User prompt
Please fix the bug: 'ReferenceError: strongerCharacter is not defined' in or related to this line: 'if (strongerCharacter.intersects(fasterCharacter)) {' Line Number: 89
User prompt
Please fix the bug: 'ReferenceError: fasterCharacter is not defined' in or related to this line: 'fasterCharacter.update();' Line Number: 87
User prompt
Please fix the bug: 'ReferenceError: strongerCharacter is not defined' in or related to this line: 'strongerCharacter.update();' Line Number: 86
User prompt
Please fix the bug: 'Uncaught ReferenceError: Enemy is not defined' in or related to this line: 'var enemy = game.addChild(new Enemy());' Line Number: 82
User prompt
Please fix the bug: 'Uncaught ReferenceError: Hero is not defined' in or related to this line: 'var hero = game.addChild(new Hero());' Line Number: 79
/**** * Classes ****/ var Enemy = Container.expand(function () { var self = Container.call(this); var enemyGraphics = self.attachAsset('asianGirl', { anchorX: 0.5, anchorY: 0.5 }); self.update = 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 }); self.update = function () { // Hero update logic here }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ var leftWall = game.addChild(LK.getAsset('leftWall', { x: 0, y: 1366 })); var rightWall = game.addChild(LK.getAsset('rightWall', { x: 2038, y: 1366 })); var tapCounter = 0; 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 % 8 === 0) { // The hero is stronger and moves in bursts hero.x += tapCounter % 2 === 0 ? 100 + tapCounter * 0.4 : 20 + tapCounter * 0.4; // The enemy is equal in strength but moves in strong bursts enemy.x -= tapCounter % 2 === 0 ? 100 + tapCounter * 0.4 : 20 + tapCounter * 0.4; } hero.update(); enemy.update(); // Collision detection and response if (hero.intersects(enemy)) { var overlap = hero.x + hero.width - enemy.x; hero.x -= overlap / 20; enemy.x += overlap / 20; if (hero.x > enemy.x) { hero.zIndex = 1; enemy.zIndex = 0; } else { hero.zIndex = 0; enemy.zIndex = 1; } } if (hero.intersects(leftWall) || enemy.intersects(rightWall)) { LK.showGameOver(); } });
===================================================================
--- original.js
+++ change.js
@@ -50,11 +50,11 @@
LK.on('tick', function () {
// AI control
if (LK.ticks % 8 === 0) {
// The hero is stronger and moves in bursts
- hero.x += tapCounter % 2 === 0 ? 50 + tapCounter * 0.2 : 10 + tapCounter * 0.2;
+ hero.x += tapCounter % 2 === 0 ? 100 + tapCounter * 0.4 : 20 + tapCounter * 0.4;
// The enemy is equal in strength but moves in strong bursts
- enemy.x -= tapCounter % 2 === 0 ? 50 + tapCounter * 0.2 : 10 + tapCounter * 0.2;
+ enemy.x -= tapCounter % 2 === 0 ? 100 + tapCounter * 0.4 : 20 + tapCounter * 0.4;
}
hero.update();
enemy.update();
// Collision detection and response
Душат друг друга за шею. 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.