Code edit (4 edits merged)
Please save this source code
User prompt
in prepareMap, add 2 WindTraps for player 2
Code edit (1 edits merged)
Please save this source code
User prompt
if displayActionItems, also check if unit health > 0 before displaying actions
Code edit (1 edits merged)
Please save this source code
User prompt
in fire(), if target element health <=0 return to attackMode = 0
User prompt
in setOnElement, if element health <=0 hide the selector
User prompt
in findPath return the best path even if it doest reach the destination
Code edit (3 edits merged)
Please save this source code
User prompt
in findPath pathfinding algorithm avoid also cells with units
Code edit (1 edits merged)
Please save this source code
User prompt
complete the guard function to find ennemies (= other player) units at sightRange
Code edit (1 edits merged)
Please save this source code
User prompt
on unit destruction...remove self.assetEffect
Code edit (3 edits merged)
Please save this source code
User prompt
in unit damage, when it is destroyed, remove it from corresponding plauer units
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'isDestroyed')' in or related to this line: 'if (self.isDestroyed && self.isDestroyed) {' Line Number: 2143
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'isDestroyed')' in or related to this line: 'if (self.isDestroyed) {' Line Number: 2143
Code edit (1 edits merged)
Please save this source code
User prompt
Apply all damage the logic used in Building for Unit
Code edit (18 edits merged)
Please save this source code
User prompt
in displayActionItems, don't show actions if unit isn't of player 1
User prompt
in prepareMap, spawn a Quad for player 2 next to its ConstructionYard
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -1758,9 +1758,9 @@
var windTrap1 = new WindTrap(rockIlot2Center.x + 2, rockIlot2Center.y, 2);
gameMap.cells[rockIlot2Center.x + 2][rockIlot2Center.y].building = windTrap1;
applyCellOccupation(rockIlot2Center.x + 2, rockIlot2Center.y);
player2.addBuilding(windTrap1);
- var windTrap2 = new WindTrap(rockIlot2Center.x + 4, rockIlot2Center.y, 2);
+ var windTrap2 = new WindTrap(rockIlot2Center.x - 4, rockIlot2Center.y, 2);
gameMap.cells[rockIlot2Center.x + 4][rockIlot2Center.y].building = windTrap2;
applyCellOccupation(rockIlot2Center.x + 4, rockIlot2Center.y);
player2.addBuilding(windTrap2);
// Spawn a Quad for player 2 next to its ConstructionYard
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