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

Added Background Color Support #10

Merged
merged 3 commits into from
Feb 27, 2015
Merged

Conversation

JakeSiegers
Copy link
Contributor

Added background color support for scenes that aren’t filling the entire frame in sprites.

The idea for setting a custom color for the transparency of the transition was from jpdev.
I just removed the selectable color, and just made it the current background color for simplicity.

Added background color support for scenes that aren’t filling the
entire frame in sprites.
The idea for setting a custom color in the transparency was from jpdev.
I just removed the selectable color, and just made it the current
background color for simplicity.
tempGraphic.lineStyle(1,this.game.stage.backgroundColor, 1);
tempGraphic.drawRect(0, 0, this.game.width, this.game.height);
tempGraphic.endFill();
this._texture.renderXY(tempGraphic, 0, 0); //adding it to the texture before the world render
Copy link
Owner

Choose a reason for hiding this comment

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

Can you move the comments above the execution line. I'm just nit-picking.

@cristianbote
Copy link
Owner

Awesome work! See my comment, do changes and I'm gonna merge it

Jake Siegers added 2 commits February 27, 2015 03:24
@JakeSiegers
Copy link
Contributor Author

Comments moved!

cristianbote added a commit that referenced this pull request Feb 27, 2015
Added Background Color Support
@cristianbote cristianbote merged commit 0e00914 into cristianbote:master Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants