How to fill CCLayer with a background image?

aimorescaimoresc DEUniversity ✭✭
edited June 13 in General
public GameLayer ()
        {
            CCSprite sprite = new CCSprite("img.png");
            AddChild(sprite);
        }`

After adding my image located in the resources I notice that my image appears only at the left bottom of the screen and in a reduced size.

How to fill the image as background on my CLLayer?

Sign In or Register to comment.