Code edit (1 edits merged)
Please save this source code
User prompt
reduce the distance between cursor and the dragged tower!
User prompt
when i buy tower drag it with same position of the cursor
User prompt
Create healthbar for the enemy red color
User prompt
Fix double buildable tiles by ensuring each tile is only marked once
User prompt
Do one line on each side of the roads with the buildabletile
User prompt
make the dragging towers distance closer to the cursor its far from it.
User prompt
the tower clicking detection is not working!
User prompt
add drag to the 3 towers icons to be dragged after buying
User prompt
Buy tower directly when i click on it duplicate the same image of it with the cursor to be placed.
User prompt
make the buying directly by clicking on the towers assets.
User prompt
center the tower_1 in its Uibutton.
User prompt
the towers assets are not in the middle of their UIbuttons!
User prompt
the towers assets are not in the middle of their buttons!
User prompt
If i click on any tower to buy it duplicate it to the cursor to be placed to the grid cell
User prompt
if i click on a tower stop the dragging of the gamebackground to place a tower
User prompt
Make the towers in the middle of their grids cells buttons
User prompt
fix the dragging of towers to be dragged to the cursor not in the top left corner!
User prompt
Please fix the bug: 'Uncaught TypeError: towerButton1.containsPoint is not a function' in or related to this line: 'if (towerButton1.containsPoint(uiContainer.toLocal({' Line Number: 378
Code edit (1 edits merged)
Please save this source code
User prompt
Serpent Siege
Initial prompt
Make a game about tower defense, do a background for the game can be dragged to see max distance of it, size of the gamebackground 3000x4000, do the road with many squares of 200x200 from top of background to bottom as serpent shape where enemies walk, do tower button can be clicked and dragged to the grid 1x1 around the road like one grid cell for one tower in each corner, towers can bought by score each tower by 50 score,do 2 other buttons of towers to buy by score but they are hard a bit from first to 3rd and by more score secondtower by 100 score, 3rd by 150 score.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});