egeball/egeball.cpp: 简化实现；调整格式。

Signed-off-by: FrankHB <frankhb1989@gmail.com>