コード例 #1
0
ファイル: GameObject.cs プロジェクト: MadRubicant/GameDesign
 public virtual void Draw(SpriteBatch spriteBatch, float rotation)
 {
     spriteBatch.Draw(Texture, RotationCenter + TexturePosition, null, Color.White, rotation - RotationZero.Angle(), RotationCenter, 1f, SpriteEffects.None, 0f);
 }
コード例 #2
0
ファイル: GameObject.cs プロジェクト: MadRubicant/GameDesign
 public override void Draw(SpriteBatch spriteBatch)
 {
     Animations[currentAnimation].Draw(spriteBatch, this.TexturePosition, Color.White, Rotation.Angle() - RotationZero.Angle());
 }
コード例 #3
0
ファイル: GameObject.cs プロジェクト: MadRubicant/GameDesign
 /// <summary>
 ///
 /// </summary>
 /// <param name="spriteBatch"></param>
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(Texture, TexturePosition + RotationCenter, null, Color.White, Rotation.Angle() - RotationZero.Angle(), RotationCenter, 1f, SpriteEffects.None, 0f);
 }