public override void Draw(SceneGame scene, DrawPass pass) { var fireBig = SpriteLoader.Instance.AddSprite("content/fire_big"); var middle = new Vector2(8, 12); scene.DrawSpriteExt(fireBig, scene.AnimationFrame(fireBig, Frame, FrameEnd), Position - middle, middle, Angle, SpriteEffects.None, 0); }
public override void Draw(SceneGame scene, DrawPass pass) { var punchStraight = SpriteLoader.Instance.AddSprite("content/punch"); var punchAngle = Angle; if (Mirror.HasFlag(SpriteEffects.FlipHorizontally)) { punchAngle = -punchAngle; } scene.DrawSpriteExt(punchStraight, scene.AnimationFrame(punchStraight, Frame, FrameEnd), Position - punchStraight.Middle, punchStraight.Middle, punchAngle, Mirror, 0); }
public override void Draw(SceneGame scene, DrawPass pass) { var crit = SpriteLoader.Instance.AddSprite("content/crit"); scene.DrawSpriteExt(crit, scene.AnimationFrame(crit, Frame, FrameEnd), Position - crit.Middle, crit.Middle, Angle, SpriteEffects.None, 0); }
public override void Draw(SceneGame scene, DrawPass pass) { var wallBreak = SpriteLoader.Instance.AddSprite("content/rockfall_end"); scene.DrawSpriteExt(wallBreak, scene.AnimationFrame(wallBreak, Frame, FrameEnd), Position - wallBreak.Middle, wallBreak.Middle, 0, Vector2.One, SpriteEffects.None, Color, 0); }
public override void Draw(SceneGame scene, DrawPass pass) { var bloodSpatter = SpriteLoader.Instance.AddSprite("content/blood_spatter"); scene.DrawSpriteExt(bloodSpatter, scene.AnimationFrame(bloodSpatter, Frame, FrameEnd), Position - bloodSpatter.Middle, bloodSpatter.Middle, Angle, SpriteEffects.None, 0); }
public override void Draw(SceneGame scene, DrawPass pass) { var breathPoison = SpriteLoader.Instance.AddSprite("content/breath_poison"); scene.DrawSpriteExt(breathPoison, scene.AnimationFrame(breathPoison, Frame, FrameEnd), Position - breathPoison.Middle, breathPoison.Middle, (float)Math.Atan2(Velocity.X, Velocity.Y) + MathHelper.Pi, SpriteEffects.None, 0); }
public override void Draw(SceneGame scene, DrawPass pass) { var spriteExplosion = SpriteLoader.Instance.AddSprite("content/explosion"); scene.DrawSprite(spriteExplosion, scene.AnimationFrame(spriteExplosion, Frame, FrameEnd), Position - spriteExplosion.Middle, SpriteEffects.None, 0); }