an example taken from pygame for tryaround on ruby