User prompt
restaure alpha of all BuildableItemIcons when building id finished
User prompt
during building, reduce alpha of all BuildableItemIcons
User prompt
during building, diable all BuildableItemIcons
Code edit (2 edits merged)
Please save this source code
User prompt
the progressDisplay should be displayed on the BuildableItemIcon in the board
User prompt
during building construction, display a buildingProgress above the BuildableItemIcon
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: window[buildableInfo.className] is not a constructor' in or related to this line: 'var building = new window[buildableInfo.className](currentSelection.cellX, currentSelection.cellY, player1.playerId);' Line Number: 285
Code edit (1 edits merged)
Please save this source code
User prompt
in enqueueBuildable add the construction of the provided type
Code edit (3 edits merged)
Please save this source code
User prompt
like the terrain and the buildings, the selectionMarker should move when user drags the map
Code edit (1 edits merged)
Please save this source code
User prompt
in handleDragEnd, don't clear the selection if user clicks in the board
Code edit (1 edits merged)
Please save this source code
User prompt
when user clicks a buildable icon in the board, call a new enqueueBuildable() global function
User prompt
in updateActionBoard, hide BuildableItems when selection is cleared
Code edit (7 edits merged)
Please save this source code
User prompt
call displayBuildableItems inside updateActionBoard
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: buildableRepository is not defined' in or related to this line: 'var buildableInfo = buildableRepository.getBuildableInfo(type);' Line Number: 28
User prompt
in BuildableItemIcon display name instead of type using the BuildableRepository
User prompt
add a BuildableRepository class to store reference information about all buildables
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'self.asset = self.attachAsset(type, {' Line Number: 18
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'undefined')' in or related to this line: 'if (LK.assets[type]) {' Line Number: 18
===================================================================
--- original.js
+++ change.js
@@ -246,8 +246,11 @@
/****
* Game Code
****/
+function enqueueBuildable(type) {
+ console.log("enqueueBuildable...", type);
+}
function displayBuildableItems() {
if (!currentSelection || !currentSelection.buildable) {
return;
}
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