User prompt
Add new units: skeleton swordsman (melee); Skeleton archer (range)
User prompt
Add new human enemies: Guard of the village, Millitia archer; they start appearing on the fifth village
User prompt
Rookie uses skeletonRookie asset; meanwhile Trainee archer uses skeletonTraineearcher asset
User prompt
Upgrading is REMOVED! instead, it's replaced with research which changes the buttons to make them spawn the new and stronger units instead of the old units; researching uses gold
User prompt
Skeleton millitia turns into skeleton rookie
User prompt
The new skeletons use their respective assets!
User prompt
Now you can upgrade your units by tapping them! This will cost gold, obviously. Example of upgrading: Tap on millitia, it will turn into rookie [example]. Units (from weakest to stronghest): melee: Millitia, Rookie, Swordsman; Ranged: Slinger, Trainee archer, archer
User prompt
Here's how upgrading works: Tap on a millitia, it will turn into a rookie (Skeletons[from weakest to stronghest]: Melee: millitia, rookie, swordsman; Ranged: slinger, trainee archer, archer
User prompt
Now you can upgrade your units by tapping them! This will cost gold, obviously
User prompt
Now you gain more gold the more enemies you kill
User prompt
Humans gain more units the more you win
User prompt
You start out with 10 gold
User prompt
You start with a millitia
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'for (var i = 0; i < enemyArray.length; i++) {' Line Number: 86
Code edit (1 edits merged)
Please save this source code
User prompt
Skeleton War: Village Raid
Initial prompt
Skeleton war: a game where you are the leader of an army of Skeletons. You need to take revenge from humans that have destroyed your castle. You start with some weak skeletonsbbut, by destroying enemy villages, you get gold that can be used to buy more skeletons or upgrade your other skeletons (Skeletons(from weakest to stronghest): Melee: skeleton millitia, skeleton rookie, skeleton swordsman; Ranged: Skeleton slinger, skeleton trainee archer, skeleton archer; Defender: Skeleton spearman, skeleton holpite, skeleton conniesur; Melee cavaliry: Skeleton scout, light skeleton rider, skeleton rider) (Humans (enemies from weakest to stronghest): Melee: Farmer, swordsman; Ranged: Slinger, archer; Defender: shieldman, holpite; Melee cavaliry: Scout, light rider)
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
Skeleton with a wooden sword. In-Game asset. 2d. High contrast. No shadows
Skeleton facing left with a slingshot. In-Game asset. 2d. High contrast. No shadows
Farmer with a pitchfork. In-Game asset. 2d. High contrast. No shadows
Farmer with a slingshot. In-Game asset. 2d. High contrast. No shadows
Skeleton with copper sword, copper helmet and copper shield. In-Game asset. 2d. High contrast. No shadows
A skeleton with a bow. In-Game asset. 2d. High contrast. No shadows
Skeleton with Iron sword, iron helmet and a Reinforced wooden shield. In-Game asset. 2d. High contrast. No shadows
Skeleton with a reinforced bow and a hood. In-Game asset. 2d. High contrast. No shadows
Human with copper Armor, a copper sword and shield. In-Game asset. 2d. High contrast. No shadows
A human with a bow and a quiver. In-Game asset. 2d. High contrast. No shadows
Human with Iron Armor, iron sword and iron shield. In-Game asset. 2d. High contrast. No shadows
A human with a reinforced bow, iron helmet and a bucket full of arrows. In-Game asset. 2d. High contrast. No shadows
Skeleton holding a big copper shield with both hands. In-Game asset. 2d. High contrast. No shadows
Skeleton with an Iron helmet, Iron spear and a big iron shield. In-Game asset. 2d. High contrast. No shadows
A golden pig. In-Game asset. 2d. High contrast. No shadows
Human with a big iron shield. In-Game asset. 2d. High contrast. No shadows
Human with a big Copper shield. In-Game asset. 2d. High contrast. No shadows
Skeleton with a blue hoodie and cape, golden sword and a reinforced iron shield. In-Game asset. 2d. High contrast. No shadows
Skeleton with a dead wolf's head as a hood, a Crossbow and a big quiver. In-Game asset. 2d. High contrast. No shadows
Skeleton with it's skull covered with a dark helmet, a dark axe and a shield with a red skull in the middle. In-Game asset. 2d. High contrast. No shadows
Skeleton with a bomb. In-Game asset. 2d. High contrast. No shadows
Pumpkin catapult made out of bones. In-Game asset. 2d. High contrast. No shadows
Skeleton with a blue hoodie and cape riding a skeleton dragon. In-Game asset. 2d. High contrast. No shadows
A knight with golden armour, golden shield and golden sword. In-Game asset. 2d. High contrast. No shadows
A human with a golden helmet, crossbow and a big bucket full of arrows in his back. In-Game asset. 2d. High contrast. No shadows
Human with a BIG golden shield and shining reinforced golden armor. In-Game asset. 2d. High contrast. No shadows
Human with a bomb. In-Game asset. 2d. High contrast. No shadows
Cannon. In-Game asset. 2d. High contrast. No shadows
Trebuchet on wheels. In-Game asset. 2d. High contrast. No shadows