BAF2D
Capture the flag. Hold the line. Bring a rocket launcher.
BAF2D is a fast top-down shooter in crisp pixel art. Two teams, a handful of flags and a pool of tickets: capture and hold the flags, and make every enemy death count. The team that runs out of tickets loses.
You fight alongside (and against) AI soldiers that take cover, peek around corners, flank in pairs, throw grenades, pick up better weapons and jump into vehicles. Every match feeds your career: score points, climb 18 ranks from Private to General, and see where you ended up on the end-of-match leaderboard.
Features
- Capture the Flag with tickets. Raise your flag in contested zones: flags you hold drain the enemy's tickets, and every death costs your team one. Pick the ticket count before each match.
- Four large maps. The industrial Test Arena, Crossroads with its two avenues crossing at the centre, Desert Village: a windswept map with a ruined village, an oasis with palms, dry-stone walls and wide dirt roads built for vehicles, and Countryside: green farmland between two zig-zag trench lines with sandbag parapets, hedgerows, orchards, shell craters and a farmhouse in the middle. Every map is symmetric and has no dead ends: there is always another way round.
- Vehicles. Drive a fast jeep with a mounted machine gun or a heavy rocket tank, or take to the air in an attack helicopter with a chin cannon and rocket pods that flies over walls and trees. Armour shrugs off small arms fire: bring a rocket launcher or grenades. Ramming enemies works too.
- Weapons. Assault rifle, shotgun, pistol, frag grenades, and a shoulder-fired rocket launcher you carry next to your main gun. Fallen soldiers drop their weapons and grenades; map pickups respawn.
- Squad AI. Bots move in pairs and spread across the flags, use cover, suppress, flank, dodge grenades, go and fetch a rocket launcher when enemy armour shows up, and drive vehicles to the flags. Up to 8 vs 8.
- Career and ranks. Points for kills, assists, defending, capturing and destroying vehicles. Your rank is saved in the browser and grows from match to match, with a promotion screen when you rank up.
- Desktop and mobile. Keyboard and mouse, or twin virtual sticks on touch screens (landscape).
- English and Italian.
Controls
| Action | Keyboard & mouse | Touch (landscape) |
|---|---|---|
| Move | WASD / arrow keys | Left stick |
| Aim | Mouse | Right stick |
| Fire | Left click / Space | Push the right stick past the dashed ring |
| Reload | R | Reload button |
| Throw grenade | G | Grenade button |
| Pick up weapon / get in or out of a vehicle | E (or F) | Button that appears when available |
| Switch weapon (rocket launcher) | Q | Swap button (with two weapons) |
| Pause | Esc / P | Pause button |
In a vehicle: W/S accelerate and brake/reverse, A/D steer (on touch, push the left stick where you want to go); aim to turn the turret, fire for the machine gun, G for rockets, R to reload. In the helicopter: WASD flies in any direction and the nose follows your aim; E lands and gets you out (on open ground only). Keys can be remapped in Options, where you can also turn on auto reload.
Notes
- Progress (rank, medals, your soldier, settings) is stored in your browser's local storage.
- The main menu runs a live thermal-camera drone feed over a city at war.
- On phones, play in landscape: the game asks for fullscreen on the first tap.
- All graphics and sounds are generated in code: no external assets, about 0.5 MB to download.
Credits
Made with plain JavaScript and HTML5 Canvas, no engine or libraries.
Source code licensed under the GNU GPL v3.
| Updated | 1 day ago |
| Published | 2 days ago |
| Status | In development |
| Platforms | HTML5 |
| Author | Goliath86 |
| Genre | Shooter |
| Made with | LMMS |
| Tags | 2D, bots, capture-the-flag, mobile, Pixel Art, Retro, Singleplayer, Top down shooter |
| Code license | GNU General Public License v3.0 (GPL) |
| Average session | A few minutes |
| Languages | English, Italian |
| Inputs | Keyboard, Mouse, Touchscreen |
| Links | GitHub |
| AI Disclosure | AI Assisted, Code, Graphics, Sounds, Text |













