— ROLES
Gameplay Programmer, Producer
— TECHNOLOGIES
Unity, C#
— DURATION
10 weeks
Summary:
This game was developped over 10 weeks as part of the Ubisoft Game Lab Competition 2026.
Counter Invaders is a cooperative, two player shoot'em all game, which aims to bring back the classic gameplay of the 80's arcades, while adding a touch of modernity through its extration shooter mechanics and crisp pixelart.
Team:
8 (3 Programmers, 3 Game Designers, 2 Artists)
Contributions:
- Project Leader: Managed Git Repository, scope, tasks assignements, communications
- Implemented player movements
- Implemented all player abilities
- Implemented damage system
- Implemented Cinemachine camera
- Integrated visual effects
Sources:
A simple 2D controller. I took great care of exposing every relevant parameter so game-designers could fine tune the Mech's movements to their liking.
> Movement
I use a rigidbody, velocity based control system to move the player around.
> Dash
The dash is applied via an IEnumerator, lasting _dashDuration, during which I apply a factor _dashSpeedFactor to the base speed of the Mech. Since the dash must allow the Mech to go through some walls, I use a LayerMask so that the Mech's colliders ignore all the colliders on the selected layers.
Since the dash is just a speed change, it is applied in the current direction of the Mech. Should the pilot dash while stationnary, I apply the dash according to the last non-zero movement input from the player.
> Melee Attack
A simple but efficient CircleOverlapAll which I apply with a LayerMask.
I implemented both a simple and a complex shooting mechanic, and the player can switch between them in the game options. I also exposed relevant parameters in the editor so they could be tuned by the game-designers.
> Aim mode: simple Rotation
Simple rotation using transform.Rotate(0f, 0f, -rotDir * _mechaTopRotSpeed * Time.deltaTime) where rotDir is the x component of the Vector2 read from the D-PAD.
> Aim mode: Reticle
In this fire mode, the gunner moves a reticle on the map, and the Mech's gun aim at the reticle, making it a slightly more complex system. This also gave me the opportunity to over-engineer this firing system, which includes both linear and angular shot dispersion over time, a synchronous fire mode and an asynchronous one, as well as a system to keep the reticle in a defined area around the mech.
> Shockwave
Yet another simple OverlapCircleAll applied with a LayerMask.
This ability is made of two systems, the missiles and the missile launcher itself.
> The Launcher
In order for the ultimate to bue used, I first check if there are enemies on the screen. If so, every target will be assigned to a target at random, for now. I plan to sort the targets according to a priority setting later. I use an IEnumerator for the launch sequence. I exposed the parameters so that from the Editor, one can defined the number of missiles launched, the interval between them, with how much force they are ejected from their tubes.
> The Missiles
The missiles direct themselves toward their target using a mathematical conversion from the direction of the target from the missile, to an angle, using Mathf.Atan2. The missiles can have their speeed, rotation speed, damage configured from the editor. I also introduced “holdMovementTimer” and “holdRotationTimer” variables so that a delay can be applied separately before the missile start to move and rotate respectively. This gave us this cool “cold launch effect”. Finally, if the original target of the missiles is destroyed, it will then look for a new target in range of its sensors.
Damage interface
I implemented a damage Interface which every damageable entity in the game uses. This ensures code clarity, modularity and scalability.