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
});