User prompt
Upgrading towers should cost 50 gold. Also, there should be no need to click the "build tower" button to place a tower. Clicking anywhere on the roadside should automatically add a tower.
User prompt
Upgrading towers should cost 50 gold. Also, there should be no need to click the "build tower" button to place a tower. Clicking anywhere on the roadside should automatically add a tower.
User prompt
The initial power of the enemies should be reduced (a tower should be strong enough to kill an enemy with two hits at the beginning). Also, enemy waves should come automatically. To upgrade the towers, just double click on the towers. To place a tower, just click anywhere on the side of the screen.
User prompt
The initial power of the enemies should increase. Also, the waves should come automatically. To upgrade the towers, just double click on the towers.
User prompt
Our towers should have more initial power.
User prompt
When we kill an enemy, we should automatically earn 10 gold.
Code edit (1 edits merged)
Please save this source code
User prompt
Medieval Path Defenders
Initial prompt
I want to make a medieval-themed tower defense game. In this game, there should be paths, towers, enemies, and gold that drops when enemies are killed. We should start the game with 100 gold, and every time we place a tower, we should lose 50 gold. It should also be possible to upgrade towers (clicking on a placed tower again should upgrade it), which should cost 25 gold. When we kill an enemy, we should automatically earn 5 gold. Our total amount of gold should be displayed in the top right corner of the screen and should update according to the gold earned or spent. Enemies should attack in waves, and each wave should consist of 10 enemies. After a wave is defeated, another one should begin after a short delay — but each new wave should be stronger than the previous one.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});