The original Line Rider is a self-contained Flash animation — it doesn't install anything, doesn't reach out to the network, and has no mechanism for delivering a virus.
The realistic risk isn't the game, it's the download. Copycat sites bundling "Line Rider" with toolbars or fake players are a far bigger problem than the game itself, so grab it from a source you trust and you'll be fine.