Created
January 23, 2014 22:38
-
-
Save rastating/8588242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If the player is coliding with the enemy turn the screen red | |
if (this.player.IsColliding(this.enemy)) | |
{ | |
GraphicsDevice.Clear(Color.Red); | |
} | |
// Draw the player to the screen | |
spriteBatch.Draw(this.player.Texture, | |
this.player.Position, | |
null, | |
Color.White, | |
this.player.Rotation, | |
this.player.Origin, | |
1.0f, | |
SpriteEffects.None, | |
0.0f); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment