Skip to content
Workflowswim-io

Swim.io

A fish-eat-fish game inspired by agar.io with responsive controls, collision detection, and growth mechanics in a vibrant underwater environment.

stack

  • Java
  • JavaFX
← All projects
Architecture
  • Collision detection — bounding circles with size-based resolution
  • Spatial partitioning — grid-based; collisions checked only within same or adjacent cells
  • Growth mechanics — size grows with consumed prey, unlocking new map areas
  • Responsive controls — mouse/keyboard input with momentum-based movement
  • AI fish behavior — seek, flee, and wander steering scaled by size relative to the player
  • Underwater rendering — layered backgrounds with parallax scrolling
Results
  • 60fps gameplay with 50+ active fish
  • Spatial partitioning for efficient collision detection
  • Momentum-based movement and parallax backgrounds
Action · Send message

Hiring for a remote AI engineering role?

Contact me