I think this is all covered in the manual. You also might want to consider downloading Dissipate and seeing how everything was done there (that is one of its purposes as an example game, after all.) If I recall correctly, some aspects of it aren't quite up to date, but it should for the most part show you exactly how you should set up your sprites.