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

Update the readme with Application example #3555

Merged
merged 1 commit into from
Jan 8, 2017
Merged

Conversation

bigtimebuddy
Copy link
Member

@bigtimebuddy bigtimebuddy commented Jan 6, 2017

Changes

Utilizes Application API in #3551 to create a simpler, more streamlined example in the readme.

Here's the version without comments:

var app = new PIXI.Application();
document.body.appendChild(app.view);
PIXI.loader.add('bunny', 'bunny.png').load(function(loader, resources) {
    var bunny = new PIXI.Sprite(resources.bunny.texture);
    bunny.x = app.renderer.width / 2;
    bunny.y = app.renderer.height / 2;
    bunny.anchor.x = 0.5;
    bunny.anchor.y = 0.5;
    app.stage.addChild(bunny);
    app.ticker.add(function() {
        bunny.rotation += 0.01;
    });
});

@bigtimebuddy bigtimebuddy added Difficulty: Easy 🥶 Low Priority Generally issues or PRs that don’t need to make it into the next release. 💾 v4.x (Legacy) Legacy version 4 support labels Jan 6, 2017
Copy link
Collaborator

@staff0rd staff0rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too legit ✌️

@bigtimebuddy bigtimebuddy merged commit 82436f1 into dev Jan 8, 2017
@bigtimebuddy bigtimebuddy deleted the readme-example branch January 8, 2017 13:46
Icemic pushed a commit to Icemic/pixi.js that referenced this pull request Jan 19, 2017
@lock
Copy link

lock bot commented Feb 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🥶 Low Priority Generally issues or PRs that don’t need to make it into the next release. 💾 v4.x (Legacy) Legacy version 4 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants