If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Use mouse to move the Dolphin. Click mouse to dive. Hit the bubble to dive more deeper and increase score. Hit the Dolphin to get extra lives. Collect chest for bonus score.