Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container dimensions wrong #202

Open
ekelokorpi opened this issue Aug 23, 2018 · 0 comments
Open

Container dimensions wrong #202

ekelokorpi opened this issue Aug 23, 2018 · 0 comments
Labels
Milestone

Comments

@ekelokorpi
Copy link
Owner

ekelokorpi commented Aug 23, 2018

game.createScene('Main4', {
    init: function(key) {
        var container = new game.Container();
        container.position.set(100, 100);
        container.addTo(this.stage);
        
        var sprite = new game.Sprite('circle.png');
        sprite.position.set(100, 100);
        sprite.addTo(container);
        
        var container = new game.Container();
        container.position.set(100, 300);
        container.addTo(this.stage);
        
        var text = new game.Text('Hello Panda');
        text.position.set(100, 100);
        text.addTo(container);
        
        var container = new game.Container();
        container.position.set(300, 100);
        container.addTo(this.stage);
        
        var grap = new game.Graphics();
        grap.drawRect(0, 0, sprite.width, sprite.height);
        grap.position.set(100, 100);
        grap.addTo(container);
    }
});

screen shot 2018-10-04 at 13 18 12

@ekelokorpi ekelokorpi added this to the 2.10.0 milestone Aug 23, 2018
@ekelokorpi ekelokorpi added the bug label Aug 24, 2018
@ekelokorpi ekelokorpi changed the title Container dimensions wrong when adding Graphics Container dimensions wrong Oct 4, 2018
@ekelokorpi ekelokorpi modified the milestones: 2.10.0, 2.11.0 Nov 28, 2018
@ekelokorpi ekelokorpi modified the milestones: 2.11.0, 2.13.0 Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant