User prompt
LK.effects.flashObject(self, 0xff0000, 500); doesn't work. fix it
User prompt
in th Building damage function, add a red flash when hit
Code edit (1 edits merged)
Please save this source code
User prompt
Unit keep Firing at target even after it's destroyed! fix it
Code edit (2 edits merged)
Please save this source code
User prompt
in Building damage, Remove building from the gameMap cells
User prompt
the log indicates "Building Construction Yard destroyed" but it is still visible ! fix this
User prompt
in Building damage function, game.removeChild(self); seems wrong. fix it
User prompt
in calculateAngle, add 90° to the result
Code edit (1 edits merged)
Please save this source code
User prompt
in Building class, retrieve health from BuildableRepository instead of fixed value 99
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: destinationX is not defined' in or related to this line: 'console.log("AttackActionLogic...", destinationX, ',', destinationY);' Line Number: 1210
Code edit (1 edits merged)
Please save this source code
User prompt
implement the function calculateAngle
Code edit (1 edits merged)
Please save this source code
User prompt
implement the calculateDistance function
Code edit (1 edits merged)
Please save this source code
User prompt
in attackActionLogic, theUnit.range doesn't exist, retreive the range from UnitRepository
Code edit (10 edits merged)
Please save this source code
User prompt
in findAvailableCellAtRange, return the absolute cell instead of the relative move
User prompt
update findAvailableCellAtRange to take into account the range.
Code edit (1 edits merged)
Please save this source code
User prompt
in harvester stopOtherActions function, restore the unit tint
User prompt
when click on an action without target, highlightBorder for 1 second
===================================================================
--- original.js
+++ change.js
@@ -872,9 +872,9 @@
}
};
self.fire = function () {
// Code to perform firing action
- console.log("Firing at target!");
+ console.log("Firing at target!", self.attackTarget);
if (self.attackTarget) {
self.attackTarget.damage(self.attackDamage);
}
// Reduce target's health or perform other actions
a tileable sand terrain tile.
A square tileable rock terrain tile WITHOUT BBORDER. Single Game Texture. In-Game asset. 2d. No shadows. No Border
Zenith view of Dune's Wind Trap power facility square fence. Ressembles a bit to Sydney's Opera. Zenith view Directly from above.
grey cancel icon. UI
thin white circle empty.
0x5e86ff
Zenith view of a white rectangular Harvester shape of a garbage truck with a triangular head. Harvesting on sand, with flowing spice in the back. inside a square fence. Zenith view. Directly overhead. Plumb view.
Minimal Ui icon of an right sign aside with an icon of a target. sand background
Minimal icon of a home with direction icon pointing to the home. sand background
3 white flat isometric concentric circles like a target.
Remove background
Gray background
Minimal Ui icon of target sign on a fire icon.. sand background
top view of an explosion effect.
Simple heavy army tank factory buiding a tank with a crane. Square fence... Zenith view Directly overhead. Plumb view.
an empty black popup UI. UI