How I Developed Late Gate: Archer Defense in Unity

Developing Late Gate: Archer Defense began with a focused idea: create a fantasy defense game in which a lone archer protects the last barrier between a fortress and an advancing army of monsters.

I wanted the action to be immediately understandable. Enemies appear on the right side of the battlefield, advance toward the fortress, and attack the defensive wall if they survive long enough to reach it. The archer automatically selects targets and fires, while the player makes the strategic decisions that determine whether the wall survives.

I developed the game in Unity 6000.3.15f1, using the Built-in Render Pipeline and targeting WebGL as its primary platform. The final structure combines automatic combat, wave progression, temporary abilities, permanent upgrades, boss encounters, daily missions, and saved campaign progress.

Play Late Gate: Archer Defense on Lalo.games

Establishing the Core Defense Concept

The central objective of Late Gate: Archer Defense is the Bonewall, a barricade positioned in front of the fortress entrance.

The player controls a hooded ranger stationed beside the wall. However, this is not a traditional action game where the player moves the character or manually aims every shot. The ranger remains in position, automatically identifies the closest valid enemy, and fires visible arrow projectiles toward it.

This allowed me to concentrate the player’s attention on three important decisions:

  • Monitoring the condition of the wall
  • Choosing the right temporary power
  • Improving permanent statistics between runs

The character does not have a separate personal health bar. The red health bar in the upper-left corner represents the barricade, so every enemy that reaches it becomes an immediate threat to the entire run.

If the Bonewall loses all its health, the current attempt ends. The player can then retry the saved wave instead of returning to the beginning of the campaign.

Creating the Fantasy Setting

The story presents the player as a guardian of a threatened fantasy realm. The Shadow Forest has awakened, and creatures from the Veil are marching toward the Bonewall. The ranger must prevent them from breaking through the fortress entrance.

I divided this journey into 10 themed areas:

  1. Mystic Forest
  2. Autumn Ruins
  3. Mist Swamp
  4. Frozen Pass
  5. Sun Temple
  6. Volcanic Gate
  7. Moonlit Grove
  8. Crystal Cavern
  9. Storm Citadel
  10. Shadow Citadel

Each stage has its own illustrated environment and introduces increasingly dangerous enemy combinations. This structure gives the campaign a visible sense of movement. The player is not defending one background repeatedly; the battle progresses through forests, ruins, swamps, frozen landscapes, volcanic areas, caverns, and fortresses.

Completing the final stage produces the “FOREST SAVED!” victory sequence, confirming that the player has survived all 10 stages and 100 waves.

Designing Automatic Archery Combat

One of the most important design choices was making both aiming and shooting automatic.

During combat, the ranger searches for the closest living enemy and fires physical arrow projectiles at it. Each arrow has visible travel time instead of applying damage instantly. The projectile can slightly adjust its direction toward a moving target while it is in the air.

This makes the battlefield easier to read because the player can see:

  • Which enemy the ranger is attacking
  • How quickly the arrow travels
  • When the projectile connects
  • How much damage it causes
  • Whether the attack becomes a critical hit

The ranger has idle, aiming, firing, damage-reaction, and celebration poses. A subtle breathing animation prevents the character from feeling completely static while waiting for the next shot.

Because the player does not control movement or aiming, I used upgrades as the primary interaction during battle. Automatic combat provides accessibility, while the ability system introduces the strategy.

Building the Enemy Spawn System

Enemies do not simply appear without warning. Every arrival begins with a portal effect at a reserved position on the right side of the battlefield.

The effect includes a colored ground portal, a rune ring, rotating marks, particles, and a short charging animation. After approximately half a second, the enemy materializes and immediately begins moving toward the barricade.

Enemies also adjust vertically when the battlefield becomes crowded. This helps them form more readable groups instead of occupying precisely the same position.

All active campaign enemies are melee attackers. They do not stop at a distance and shoot projectiles. They must reach the Bonewall before they can deal damage. Once in range, an enemy stops moving and performs repeated physical attacks until it dies or destroys the wall.

This creates a clear priority: every monster is a moving deadline.

Introducing Different Enemy Families

The campaign gradually unlocks 13 normal enemy families.

The Crawler is a light introductory enemy, while the Brute is slower and considerably more durable. The internally named Flier moves quickly despite its current spider-like appearance.

Later stages introduce more specialized threats:

  • Thorn Boars combine speed and durability.
  • Exploders rush toward the wall and die after delivering a powerful contact attack.
  • Mushroom Goblins act as balanced melee attackers.
  • Frost Wolves are fast predators.
  • Crystal Golems are extremely durable heavy enemies.
  • Swamp Lizards provide balanced late-stage pressure.
  • Moon Bats are among the fastest enemies.
  • Crystal Beetles serve as armored medium-heavy opponents.
  • Storm Minotaurs have very high health and damage.
  • Void Hounds combine late-game speed with substantial attack power.

Enemy health increases according to the current stage and wave. The campaign therefore becomes more challenging through both variety and numerical scaling.

Later waves also spawn monsters more frequently. After the fourth wave, some spawn sequences can introduce two enemies instead of one, creating denser groups and making area abilities increasingly valuable.

Developing 100 Waves of Progression

Late Gate: Archer Defense contains 10 waves in each of its 10 stages, producing 100 campaign waves in total.

The opening wave begins with seven enemies. Later ordinary waves grow steadily, reaching as many as 24 enemies. Spawn delays become shorter, additional enemy families enter the selection pool, and stronger combinations appear.

I gave every stage two important milestones:

  • Wave 5 contains a guardian encounter.
  • Wave 10 contains the stage boss.

Completing a normal wave triggers a celebration sequence with cyan particles, a central halo, a horizontal light sweep, a completion banner, and a short hero animation. The barricade is partially repaired before the next wave begins.

After completing wave 10, the player receives a stage reward, unlocks the next area, restores the wall, resets temporary run progression, changes the environment, and begins the next stage.

Play Late Gate: Archer Defense on Lalo.games

Creating Guardian and Boss Encounters

Guardians and bosses use a larger dark rock-creature design with glowing cracks and horns. Each stage gives its boss a different name and color treatment.

The 10 stage bosses are:

  • Ancient Guardian
  • Ruin Colossus
  • Swamp Devourer
  • Frost Tyrant
  • Sunstone Behemoth
  • Magma Sovereign
  • Moonfang Elder
  • Crystal Warden
  • Tempest King
  • Void Emperor

Boss battles have dedicated warning messages, names, health bars, roars, impact particles, shockwaves, and camera shake.

When a boss falls below half health, it enters an enraged state. Its movement speed and damage increase, while its attack interval becomes shorter. This makes the second half of the encounter more dangerous than the first.

Bosses in later stages can also summon reinforcements. The types of summoned enemies become stronger as the campaign advances, which prevents late-game boss battles from becoming simple single-target damage checks.

Turning Experience into Player Decisions

Every defeated enemy awards experience. A small blue XP star appears near the defeated monster and follows a curved path into the HUD.

Standard enemies provide 10 XP, heavy enemies give 18 XP, and bosses award 75 XP. The experience is applied when the star reaches the XP bar, which visually connects defeating a monster with character progression.

When the bar fills, the game pauses and presents three upgrade cards. Each card shows:

  • Ability name
  • Rarity
  • Description
  • Current rank
  • Duration
  • Whether it is new or being improved

The player chooses one power, and combat resumes. A free refresh button can generate another selection once during that level-up.

Most powers last for 10 seconds and can reach five ranks. Selecting another temporary power ends the currently active one. This prevents the player from accumulating every ability simultaneously and makes each selection relevant to the current battlefield.

Designing Offensive Abilities

The upgrade system contains several approaches to dealing damage.

Double Arrow and Triple Arrow allow one release to target multiple enemies. These abilities are useful during crowded waves because the ranger can pressure several approaching monsters at once.

Quick Draw increases the firing rate, while Hunter’s Strength raises arrow damage. Hunter’s Focus improves critical-hit chance and critical damage.

Piercing Arrow allows a projectile to continue toward another enemy after striking its first target. The continued arrow deals reduced damage, but it becomes useful when monsters are aligned or tightly grouped.

Explosive Arrow can damage surrounding enemies when its target is defeated. Fire Arrow applies additional immediate fire damage, while Poison Arrow slows approaching monsters rather than dealing recurring poison damage.

I also included abilities that operate independently from ordinary arrows. Lightning Arrow repeatedly strikes several enemies from the sky, and Fire Stone drops a blazing projectile onto an enemy cluster. Fire Stone includes a ground warning, descending object, impact flash, particles, area damage, and camera shake.

Spirit Orb periodically launches automatic magical projectiles, while Combo Volley gives attacks a chance to release a follow-up shot.

The strongest ability is Forest’s Judgment. This legendary power combines multishot arrows, increased firing speed, lightning attacks, and repeated Fire Stones for 10 seconds. It is not an instant victory button, but it can transform a dangerous boss encounter or crowded wave.

Balancing Offense with Wall Protection

A defense game needs more than damage upgrades. Players must also be able to respond when monsters reach the barricade.

Stone Repair immediately restores a large amount of wall health. Heart of Oak combines healing with temporary damage reduction, while Thorn Guard reduces incoming damage and reflects part of it toward melee attackers.

These abilities create meaningful tradeoffs. A powerful offensive card may eliminate enemies faster, but choosing it when the wall is nearly destroyed could end the run. A defensive card may not clear the battlefield immediately, but it can provide enough time for the ranger’s normal attacks to recover control.

The wall also receives partial repairs between waves, with larger recovery amounts before important guardian and boss encounters.

Adding Permanent Progression

Defeated enemies provide yellow stars in addition to XP. Standard enemies award one star, heavy enemies award three, and bosses provide 25.

Stage completion and daily missions add larger rewards. Players can spend their collected stars on three permanent statistics:

  • Bow increases base arrow damage.
  • Wall increases maximum barricade health.
  • Draw increases the ranger’s firing rate.

Upgrade prices rise with each purchase. This encourages players to consider whether they want to specialize or distribute stars across damage, survivability, and attack speed.

The game also contains daily missions such as defeating 100 enemies, reaching wave 10, and activating Fire Stone or the ultimate counter several times. These objectives create additional reasons to return and provide another source of permanent progression currency.

Saving Progress and Supporting Difficult Waves

I used Unity’s PlayerPrefs system to preserve local progress.

The game stores information including:

  • Current stage and checkpoint wave
  • Highest unlocked stage
  • Experience and current level
  • Stars and permanent upgrades
  • Kill count and run time
  • Daily mission progress
  • Music and sound preferences

A defeat therefore does not erase the entire campaign. The player can retry the current checkpoint wave.

I also implemented an adaptive retry system called the Guardian Boost. Repeatedly losing the same wave gradually increases player damage, maximum wall health, and starting recovery. The boost is capped and removed after the wave is successfully completed.

This allows difficult waves to remain threatening while reducing the chance that a player becomes permanently stuck.

Play Late Gate: Archer Defense on Lalo.games

Building the Interface for Clear Information

The HUD separates information according to importance.

The upper-left area contains the ranger portrait, barricade health, numerical wall health, XP bar, and player level. The center displays the stage, stage name, current wave, timer, and active ability countdown. The upper-right section contains the current stars, speed control, and settings button.

Boss encounters introduce a dedicated boss name and health bar, including an enraged-state indicator.

Players can switch between normal and double gameplay speed. The faster setting is useful when replaying easier waves, while normal speed provides more time to read battlefield changes.

The pause screen includes Resume, End Run, Sound, and Music controls. Sound effects and background music can be enabled independently, and both preferences are saved.

Although the game begins directly in combat, a menu can be reached through End Run. It contains stage navigation, the current checkpoint, daily missions, permanent upgrades, total stars, and the best wave reached.

Adding Visual and Audio Feedback

I used a colorful illustrated 2D fantasy style with dark teal interface panels and bright cyan, gold, red, green, and purple accents.

Combat is supported by several layers of feedback:

  • Portal spawning animations
  • Visible arrow trails
  • Impact particles
  • Floating damage numbers
  • Critical-hit colors
  • Enemy recoil
  • Death poses and dissolve effects
  • Magical ability particles
  • Camera shake during powerful attacks
  • Wave-complete celebrations
  • Boss roars and shockwaves

Defeated enemies do not simply disappear. They react to the final hit, collapse, fade, release particles, and finish with a cyan vanish effect.

The audio system separates music from sound effects and includes sounds for bow releases, enemy attacks, deaths, spawning, XP collection, upgrades, lightning, explosions, wave completion, bosses, victory, and defeat.

Preparing the Game for WebGL and Mobile Browsers

The primary target for Late Gate: Archer Defense is Unity WebGL. The reference resolution is 1280 × 720, and the interface scales for different landscape displays.

Desktop players use the mouse to select abilities, change speed, pause, manage upgrades, and navigate the menus. No keyboard input is required because combat is automatic.

Touchscreen players use the same interface through taps. There is no joystick, dragging, or swiping. When the game detects a portrait-shaped display, it pauses the action and asks the player to rotate the device.

WebGL data caching is enabled, and the game runs without a direct gameplay network dependency after its required files have loaded.

The Final Result

Late Gate: Archer Defense grew into a complete 100-wave fantasy campaign built around a simple but expandable foundation.

The player immediately understands the objective: defend the wall. Automatic shooting keeps the controls accessible, while randomized abilities, permanent upgrades, enemy variety, boss phases, daily missions, and saved progression provide the depth needed for longer play.

The part I find most important is how the systems support one another. Enemies provide XP, XP produces ability decisions, enemies also provide stars, and stars improve future attempts. Stronger stages introduce new monsters, while guardians and bosses test whether the player’s temporary and permanent upgrades are keeping pace.

The finished structure includes 10 distinctive environments, 13 normal enemy families, guardian encounters, 10 named bosses, defensive and offensive abilities, adaptive retry assistance, and a final objective that takes the player from the Mystic Forest to the Shadow Citadel.

With Late Gate: Archer Defense, I created an original Lalo Games browser title that combines automatic archery, wave survival, fantasy presentation, and upgrade strategy in a format that is easy to start but increasingly demanding to master.

Ready to defend the last gate? Play Late Gate: Archer Defense online on Lalo.games and see if your archer can survive all 100 waves.

Leave a Reply

Your email address will not be published. Required fields are marked *