Skip to content

Instantly share code, notes, and snippets.

@rastating
Created January 23, 2014 22:38
Show Gist options
  • Save rastating/8588242 to your computer and use it in GitHub Desktop.
Save rastating/8588242 to your computer and use it in GitHub Desktop.
// 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