HTML5 CANVAS · ADAPTIVE ODE · RK4 / RK2 ECO · MULTI-PHYSICS LAB
Space Duel
A local space-combat laboratory for 1-vs-1, 2-vs-2 or 3-vs-3 battles with six ship classes, guided missiles, AI squadrons, RK4, binary gravity, heat and an eight-face directional shield.
1 VS 1 2 VS 2 3 VS 3 RK4 GUIDED MISSILES TACTICAL AI
⛶ FULL SCREEN
◆ MISSILE 0/0
BLUE 1 F A
BLUE 2 F A
BLUE 3 F A
RED 1 F A
RED 2 F A
RED 3 F A
WINGMAN · —
BLUE 2 /2 2 VS 2 RED 2 /2
RIVAL WING · —
SPACE DUEL READY
Distance 0
Adaptive ODE · RK4 / RK2 ECO
Field: free
60 FPS
LEFT: pilot · RIGHT: fire · MISSILE: auto-guided · ◀ SHIELD ▶: strong face
FLEET · 6 SHIPS
Battle mode 1 VS 1 2 VS 2 3 VS 3
Camera Stable tactical Follow pilot Auto squad
Your ship Interceptor Guardian Raider Lancer Bastion Spectre
Your AI wingman Random Interceptor Guardian Raider Lancer Bastion Spectre
AI ship Random Interceptor Guardian Raider Lancer Bastion Spectre
Rival AI wingman Random Interceptor Guardian Raider Lancer Bastion Spectre
Interceptor Very fast · light hull Rapid fire Overdrive
Guardian Heavy armor · slow Heavy cannon Shockwave
Raider Balanced · high energy Twin plasma EMP
Lancer Precision · long range Rail cannon Hunter missile
Bastion Fortress · very heavy Siege cannon Heavy torpedo
Spectre Ultra-agile · fragile Rapid plasma Micro missile
ONLINE ARENA
Connecting to matchmaking…
You play the AI while waiting. As soon as a second player arrives, both ships are automatically warped into the same arena.
Online 1 Waiting 1
Re-enter arena
Players are paired two by two. The winner automatically returns to the queue for the next challenger; the loser is eliminated until choosing to re-enter.
CONTROLS ← / A Rotate left → / D Rotate right ↑ / W Thrust SPACE Primary weapon F Guided missile SHIFT / E Special pulse C / V Rotate reinforced shield face Q Tractor field R Repulsor field TOUCH The MISSILE button launches the class guided secondary weapon. ×2 Double tap or two fingers: special pulse.
BATTLE In team battles, destroy every red ship. Your squad fights independently; if your craft falls, control transfers automatically to a surviving blue craft. The next battle starts only with the New battle button.
AI difficulty Easy Normal Hard
New battle Reset score
PHYSICS TELEMETRY
Mass 0 kg
Fuel 0%
Heat 0%
Shield 0%
Reinforced face FRONT · STRONG
Missiles 0/0
Speed 0
Kinetic E. 0
Gravity accel. 0
Engine 100%
Weapon 100%
Prediction RK4 · 4 s
SYSTEMS Automatic web matchmaking pairs visitors two by two into a synchronized human arena; winners stay queued for the next duel. Smooth adaptive zoom keeps both ships visible. Finite square arena with symmetrical left/right and top/bottom boundaries. Six ship classes with distinct silhouettes, handling, armor, primary weapons, special abilities and missiles. Guided missiles with progressive homing, gravity, explosive payloads, class-specific EMP effects, continuous collision detection and automatic reloading. Shield divided into eight independent faces: the selected face concentrates the largest reserve and absorbs substantially more damage than the other sectors. Class-specific regenerating energy systems. Both ship trajectories are calculated as a coupled 8-state ODE system using Runge–Kutta 4 integration. Two orbiting gravity wells with capture zones and approximate Lagrange points. RK4 future-path prediction plus a perturbed chaos-ghost trajectory. Fuel-dependent mass, engine/weapon heat, radiative cooling and dynamic shields. Kinetic-energy collision damage, damaged modules, asymmetric torque and persistent debris. Near-body atmosphere with drag and heating. Crossing either gravity-well capture radius triggers orbital collapse and ends the duel. Asteroids use continuous collision detection (CCD), solid impacts and progressive weapon destruction: cracks, integrity loss, chipping and final fragmentation. Weapon kills can release collectible bonuses: repair, shield surge, reactor cell or weapon overdrive. Asteroids destroyed naturally by planet impacts, atmosphere or asteroid collisions also have a smaller salvage-drop chance. Original implementation inspired by the classic space-duel genre; no Star Control artwork or characters are reproduced.
Portfolio project: standalone Canvas 2D game-laboratory combining RK4 ODEs, binary gravity, thermal/energy systems, modular damage, class-specific tactical AI and procedural rendering without an external game engine.
DEPLOYMENT INTEGRITY
Expected 52e22302ad9b9ce99bbafa382ed4ab29deb598fd7bf2dcc44adfd5c886ed7182
Received from server …
Checking…