The method described here is simple: load Sonic onto an iPod, bring it to school, and slip out to the restroom when you want to play. Nobody follows up on a bathroom trip.
It works, though it's worth remembering that sneaking off during class tends to catch up with you eventually.