on the bg layer is at the top left of the screen. You can also do things like rotate layers but try the basics out first. If you have scrolling you will probably want functions to map between background and screen coordinate and between tile and pixel coordinates. It can get confusing. Sprites unlike background tiles can be placed at a specific pixel coordinate on screen and move independently.