Tank Combat
1970s Multiplayer Shooter — Inspired by the 1977 Atari 2600 classic "Combat." Teaches 2-player local multiplayer, projectile physics, wall collisions, screen wrapping, and multiple game mode states.
Tank vs Tank
Concept: Two tanks on screen, each controlled by a player (WASD vs arrows). Tank body rotates left/right, thrust moves in facing direction. Each fires a shell with space/enter. Direct hit = point.
Projectile Physics
Concept: Shells travel at fixed speed in the direction the tank was facing when fired. Shell bounce off walls at reflection angle. Limited range — shells despawn after max distance. Ricochet sound effect.
Maze Walls
Concept: Procedural and preset maze layouts. Rectangular wall segments. Tanks bounce off walls. Shells ricochet off walls. Multiple maze templates loaded per round.
Game Modes
Concept: Multiple modes selectable from a menu: Basic (open arena), Maze (walls), Invisible Tank (tank invisible except when firing), Warp (teleport mechanic), Speed (faster tanks).
Scoring & Rounds
Concept: First to N kills wins the round. Round restart with intermission screen. Win tracking across rounds. Game over screen with final score.
Complete Game
Concept: Title screen, mode select, AI opponent (single-player bot with basic targeting), color palette options, difficulty settings (shell speed, tank speed), Web Audio sound effects.
6 steps · Teaches 2-player local multiplayer, projectile physics, game mode state machines