Skip to content

adilsondias-engineer/InvasionDefender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Invasion Defender - Real-Time C++ Game Engine

A strategic space tower defense game where humanity's survival depends on your tactical prowess A performance-optimized game demonstrating low-latency programming techniques applicable to electronic trading systems

Platform Engine Language Status

Invasion Defender is a space tower defense game where you command humanity's last line of defense against an overwhelming alien invasion. Deploy strategic ship formations, manage resources, and upgrade your fleet to protect Earth and reclaim the galaxy.


๐Ÿ“– Story

An alien armada is sweeping across the galaxy, conquering planet after planet. Earth stands in their path.

As Commander, you must:

  • ๐Ÿ›ก๏ธ Protect the construction of the Armageddon - humanity's ultimate weapon
  • ๐ŸŒ Defend space stations and planets from relentless alien waves
  • ๐Ÿ” Scan and reclaim conquered worlds
  • โš”๏ธ Eliminate alien headquarters before they establish a foothold
  • ๐Ÿ’ฅ Find and destroy the alien homeworld

The fate of humanity rests in your hands.


๐ŸŽฎ Gameplay

Core Mechanics

Invasion Defender combines classic tower defense with space combat strategy:

  • Strategic Deployment: Position defensive ships at key chokepoints to intercept enemy waves
  • Resource Management: Earn currency by destroying enemies; spend wisely to deploy more powerful ships
  • Progressive Difficulty: Face increasingly challenging waves with smarter AI and tougher enemies
  • Multiple Ship Classes: Choose from light, medium, and heavy fighters, each with unique roles
  • Upgrade System: Enhance ships with improvements to damage, armor, shields, speed, and more

๐Ÿ›ธ Ship Classes

Light Fighters

Fast, agile interceptors perfect for early-game defense and swarm tactics.

  • Examples: Wolf, H'bakoran, Vzencar, Wordvlu
  • Strengths: Low cost, high speed, quick deployment
  • Weaknesses: Light armor, lower firepower

Medium Fighters

Balanced all-purpose ships that form the backbone of your fleet.

  • Examples: Tzaykan, Kherlir, Xenon, J'kapilax
  • Strengths: Versatile, good damage-to-cost ratio
  • Weaknesses: No extreme specialization

Heavy Fighters

Devastating capital ships with powerful weapons and thick armor.

  • Examples: Uzanyx, Cromwell, Typhoon, Nexus
  • Strengths: High damage, extreme durability, shields
  • Weaknesses: Expensive, slower deployment

โšก Upgrade System

Customize your ships with strategic upgrades:

Upgrade Effect Trade-off
Speed Increases movement speed May reduce stability
Fire Range Extends weapon reach May decrease fire rate
Damage Boosts weapon power May increase energy consumption
Fire Rate Increases shots per second May reduce accuracy
Armor Improves hull durability May slow the ship
Shield Adds energy shielding May reduce other stats

Choose wisely - each upgrade affects ship balance and requires strategic planning.

๐ŸŽฏ Mission Types

  1. Construction Defense ๐Ÿ—๏ธ
    Protect the space station while it constructs the Armageddon mothership

  2. Scanning Operations ๐Ÿ”ญ
    Guard the destroyer as it searches for conquered planets

  3. Planet Destruction ๐Ÿ’ฃ
    Escort the Armageddon while it destroys enemy-controlled worlds

  4. Planetary Defense ๐ŸŒŽ
    Intercept alien invasion forces before they conquer new colonies


โœจ Features

  • โœ… 12+ Unique Player Ships - Each with distinct stats, turrets, and upgrade paths
  • โœ… 15+ Enemy Types - Light scouts, heavy cruisers, and challenging boss encounters
  • โœ… Story-Driven Campaign - Immersive narrative with mission dialogs
  • โœ… Strategic Depth - Balanced gameplay requiring tactical thinking
  • โœ… Multiple Difficulty Levels - Progressive challenge as enemies grow stronger
  • โœ… Bilingual Support - English and Simplified Chinese
  • โœ… Cross-Platform - iOS, Android, Windows, Linux

๐Ÿ‘พ Enemy Forces

Prepare to face diverse alien threats:

  • ๐Ÿ›ธ Light Scouts - Fast, evasive, overwhelming in numbers
  • ๐Ÿš€ Medium Cruisers - Balanced firepower and durability
  • ๐Ÿ›ฐ๏ธ Heavy Battleships - Devastating weapons, high health pools
  • ๐Ÿ‘ฝ Boss Units - Multi-turret behemoths with unique abilities
  • ๐Ÿ“ˆ Progressive Scaling - Enemies grow stronger in later missions

๐Ÿ› ๏ธ Technical Details

Detail Info
Engine Cocos2d-x
Languages C++, Objective-C
Platforms iOS, Android, Windows, Linux
Development January 2014 - September 2015
Developer Adilson Dias

Technical Highlights

Performance Features

  • Lock-free multithreading for game state updates
  • Memory pool allocation to avoid garbage collection pauses
  • Cache-friendly data structures for optimal CPU performance
  • SIMD optimizations for vector calculations
  • Sub-millisecond frame timing consistency

Architecture

  • Event-driven architecture similar to order matching engines
  • Deterministic game loop for predictable latency
  • Efficient collision detection algorithms
  • Real-time rendering pipeline with minimal jitter

Key Algorithmic Patterns

  • Spatial hashing for fast collision queries (similar to order book lookups)
  • Priority queues for event scheduling
  • Object pooling for memory efficiency
  • State machines for game logic

Project Structure

InvasionDefender/
โ”œโ”€โ”€ Classes/              # Core game source code
โ”‚   โ”œโ”€โ”€ core/             # Game systems (ships, bullets, levels, waves)
โ”‚   โ”œโ”€โ”€ enemy/            # Enemy AI and behaviors
โ”‚   โ”œโ”€โ”€ player/           # Player ships, stations, planets
โ”‚   โ”œโ”€โ”€ gui/              # User interface components
โ”‚   โ””โ”€โ”€ hud/              # Heads-up display elements
โ”œโ”€โ”€ Resources/            # Game assets and data
โ”‚   โ”œโ”€โ”€ gamedata.xml      # Ship configurations and stats
โ”‚   โ”œโ”€โ”€ dialogs.xml       # Story text and mission briefings
โ”‚   โ””โ”€โ”€ sound/            # Audio and music files
โ”œโ”€โ”€ scenes/               # Cocos Studio scene files
โ”œโ”€โ”€ proj.ios_mac/         # iOS and macOS projects
โ”œโ”€โ”€ proj.android/         # Android project files
โ”œโ”€โ”€ proj.win32/           # Windows project files
โ””โ”€โ”€ proj.linux/           # Linux project files

๐Ÿ“Š Ship Statistics

Each ship features detailed attributes:

  • Damage - Base weapon power per shot
  • Armor - Hull integrity and hit points
  • Fire Rate - Shots per second
  • Fire Range - Maximum engagement distance
  • Shield - Energy shield capacity
  • Move Speed - Movement rate multiplier
  • Deploy Cost - Resources required to deploy
  • Upgrade Slots - Available enhancement slots
  • Turret Config - Weapon positions and projectile types

๐Ÿ“ฑ Download

Invasion Defender is available on the Apple App Store for free.

Download on the App Store

โš ๏ธ Note: The game was released in 2015 and may not function correctly on modern devices after 10 years.


๐Ÿ”ง Building from Source

โš ๏ธ Archive Notice: This repository contains the original source code and assets. Not all dependencies are included, and the project may not build in its current state without additional setup.

Prerequisites

  • Cocos2d-x framework (original version used during development)
  • Platform-specific build tools (Xcode, Android Studio, Visual Studio, etc.)
  • Required dependencies and libraries

๐Ÿ“„ License

ยฉ 2015 Adilson Dias. All rights reserved.


๐Ÿ‘จโ€๐Ÿ’ป Credits

Developer: Adilson Dias
Years: 2014-2015
Framework: Cocos2d-x


๐Ÿ™ Acknowledgments

Special thanks to the Cocos2d-x community and all players who supported Invasion Defender during its release.


Made with โค๏ธ and lots of โ˜•

Defend. Upgrade. Conquer.

About

My game Invasion Defender

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published