code for angelsprite project