mhamon1992 / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

如何让图片全屏显示? #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
public class GameLayout extends CCLayer {
    private CCSprite background;
    public GameLayout(){
        this.background = new CCSprite("bg.png");
        this.addChild(background);
        background.setPosition(0, 480);
    }
}
the picture bg.png's size is 480x800, why the backgound is not fullscreen?
how should I do?

Original issue reported on code.google.com by chenzhen...@126.com on 30 Apr 2014 at 2:57

Attachments: