// Draws the layer to the screen using x and y as the corner coordinates func (l *Layer) Draw(screen *sdl.Surface, x, y int) { cam := &Camera{Offset{x, y}, screen.W(), screen.H()} l.DrawCamera(screen, cam) }