User prompt
double the size of the framerate counter and put ut on the top center of the screen
User prompt
show the framerate counter
User prompt
make the framerate text black
User prompt
show the framerate counter uppfront all other asset
User prompt
fix the fraratecounter
User prompt
show the framerate counter text
User prompt
show a framerate counter at the top right off the screen
User prompt
the movement of the soldier is 20 percent slower and the fire rate of the bullet 30 percent more
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'destroy')' in this line: 'bullets[i].destroy();' Line Number: 140
User prompt
the bullet speed is 2 time faster and the soldier movement 30 percent faster
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in this line: 'if (bullets[i].intersects(target)) {' Line Number: 132
User prompt
the speed of the bullet is 3 time faster
User prompt
the soldiers move only when the battle is start and torward other team soldier
User prompt
all soldiers move randomly
User prompt
Blue soldier shoot toward red soldier and red soldier shoot torward blue soldier
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'destroy')' in this line: 'bullets[i].destroy();' Line Number: 125
User prompt
red soldier only shoot to the left
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'indexOf')' in this line: 'var targetIndex = event.detail.targetTeam.indexOf(event.detail.target);' Line Number: 52
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'indexOf')' in this line: 'var targetIndex = event.detail.target.team.indexOf(event.detail.target);' Line Number: 52
User prompt
red soldier shoot to the right
User prompt
blue soldier shoot to the left
User prompt
Fix Bug: 'TypeError: LK.dispatchEvent is not a function' in this line: 'LK.dispatchEvent('soldierHit', {' Line Number: 117
User prompt
blue soldier shoot to the right
User prompt
only shoot on the x axys
User prompt
you can add soldiers only before the battle is started
===================================================================
--- original.js
+++ change.js
@@ -63,15 +63,15 @@
});
var Game = Container.expand(function () {
var self = Container.call(this);
var frameRateText = new Text2('FPS: 0', {
- size: 50,
+ size: 100,
fill: '#000000',
- align: 'right'
+ align: 'center'
});
- frameRateText.x = 2048 - 10;
+ frameRateText.x = 2048 / 2;
frameRateText.y = 10;
- frameRateText.anchor.set(1, 0);
+ frameRateText.anchor.set(0.5, 0);
self.addChild(frameRateText);
self.setChildIndex(frameRateText, self.children.length - 1);
var lastTick = Date.now();
var frameCount = 0;
a big plain show from the top with a line right at the center of the plain to the top from the botom Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a blue toy soldier Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a red toy soldier Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A start Battle button Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A blue soldier toy Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A red soldier toy Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a bullet in an anime style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.