SPERMS.RUN

A dynamic sperm racing simulation built with js, featuring AI-controlled competitors, procedural road generation, and real-time physics.

[PHYSICS ENGINE]

Experience cutting-edge force-based physics simulation:

  • Vector-based movement system
  • Velocity & acceleration dynamics
  • Real-time collision detection
  • Procedural road generation via Perlin noise
  • Dynamic boundary constraints
$ force = mouse.sub(middle)
$ force.setMag(maxVelocity)
$ applyForce(force)

Tail Animation: Sine wave-based tail movement creates realistic biological motion with wave propagation.

[AI RACING SYSTEM]

Advanced autonomous competitor behavior:

  • Path-following algorithms
  • Steering accuracy optimization
  • Obstacle avoidance logic
  • State-based behavior management
  • Real-time leaderboard tracking
$ for waypoint in path:
$  steering = target - location
$  applyForce(steering)

Race Detection: Finish line collision triggers winner detection with real-time position tracking.

[OBSTACLE DYNAMICS]

RED JAMMERS

Collision-based speed reduction. Sperms lose velocity when hitting jammers, creating strategic navigation challenges.

if distance < radius:
  velocity *= slowDownFactor

YELLOW JELLIES

Repulsive force obstacles. Generate outward forces that push sperms away, requiring precise steering.

force = location - jelly.location
force.mult(repulsionForce)

UTERUS MAGNETIC PULL

Attractive force field near egg target

Distance-based force: F = k / d²

[GAME MODES]

  • PLAYER MODE: Control your sperm with mouse input
  • RACE MODE: Watch 20+ AI sperms compete
  • SPECTATOR: Dynamic camera following leaderboard
  • MINI-MAP: Real-time race overview

[TECHNICAL SPECS]

  • Built with p5.js
  • Entity-based architecture
  • Optimized rendering pipeline
  • 30-60 FPS performance
  • Cross-platform compatible

[READY TO RACE?]

Enter the microscopic arena and compete in the ultimate biological simulation.

PLAY NOW VIEW SOURCE X