1. Real-Time Soft-Body Deformation (Hooke's Law)
In traditional games, characters are rigid cylinders with static skeletal meshes. In SLIME ONLINE, every slime is an active damped harmonic oscillator (SlimeSoftBodyDeformer).
The outer membrane responds dynamically to velocity, surface friction, and acceleration vectors:
- Velocity Teardrop Stretch: As your slime accelerates, its front vertex flattens against simulated air resistance while the rear body elongates into a fluid teardrop.
- Spring-Damper Jiggle: Rapid turns, hard landings, and sudden stops trigger elastic rebound waves that propagate through the spherical mesh and decay exponentially.
- Secondary Eye Inertia: The 3D pupils and eyelids carry physical lag relative to head velocity, creating charming visual feedback for jumps, turns, and impacts.
2. Volumetric Refraction Shader (`sh_slime_translucent`)
To produce the wet, gelatinous look of real jelly, the custom shader executes optical calculations per-fragment:
Screen-Space Refraction
Samples the scene texture behind the character (screen_tex), warping UV coordinates according to surface normals and an index of refraction of 1.33 (matching natural gelatin).
Subsurface Scattering (SSS)
Simulates interior photon dispersion. Light penetrates the jelly surface, illuminating a turquoise core and radiating rim specular highlights via Fresnel equations.
3. Transparent "You Are What You Eat" Belly Inventory
SLIME ONLINE eliminates traditional 2D inventory windows. Any swallowed item travels through the permeable membrane into the stomach container (node_belly_container).
When you pick up a Super Spring, Time-Bomb, or Slime Magnet, every rival on the field sees the item rotating inside your belly. This turns your slime's anatomy into an intuitive, real-time tactical display for all players.
4. Autonomous AI Bots with Finite State Machines (FSM)
Matches dynamically combine human players and up to 15 intelligent bots (SlimeBotController) running deterministic tactical logic:
- Resource Scavenging: Constantly scans nearby radius to claim unprotected mass orbs.
- Aggressive Predation: Chases smaller targets with leading aim to spit basalt rocks.
- Emergency Evasion: Immediately breaks away when larger slimes come within 6 meters.
- Hazard Avoidance: Detects platform drop-offs and molten lava lakes, initiating reflex jumps.