public override void Draw(GraphicsDevice graphics) { int drawX = (int)Math.Round(position.X) - game.IntCameraX; int drawY = (int)Math.Round(position.Y) - game.IntCameraY; graphics.DrawImageRotateAdd(GameImage.PlayerBullet, 32, 32, 0, animation, drawX, drawY, 28, 16, (int)Math.Round(direction), 255); }
public override void Draw(GraphicsDevice graphics) { int drawX = (int)Math.Round(position.X) - game.IntCameraX; int drawY = (int)Math.Round(position.Y) - game.IntCameraY; graphics.DrawImageRotateAdd(GameImage.PlayerBullet, 32, 32, 5, animation, drawX, drawY, 28, 16, (int)Math.Round(direction), 255); }
public override void Draw(GraphicsDevice graphics) { int drawX = (int)Math.Round(position.X) - game.IntCameraX; int drawY = (int)Math.Round(position.Y) - game.IntCameraY; int r = (color <= 1 || color == 5) ? 255 : 0; int g = (color >= 3 && color <= 5) ? 255 : 0; int b = (color >= 1 && color <= 3) ? 255 : 0; if (stateCount < timer) { graphics.DrawImageAdd(GameImage.EnemyBullet, 32, 32, 2, stateCount / 2 % 8, drawX - 16, drawY - 16, 255, r, g, b); } else { graphics.DrawImageRotateAdd(GameImage.EnemyBullet, 64, 32, 0, 3, drawX, drawY, 48, 16, (int)Math.Round(direction * 180 / Math.PI), 255, r, g, b); } }
public override void Draw(GraphicsDevice graphics) { int drawX = (int)Math.Round(position.X) - game.IntCameraX; int drawY = (int)Math.Round(position.Y) - game.IntCameraY; int r = (color <= 1 || color == 5) ? 255 : 0; int g = (color >= 3 && color <= 5) ? 255 : 0; int b = (color >= 1 && color <= 3) ? 255 : 0; if (stateCount < timer) { graphics.DrawImageAdd(GameImage.EnemyBullet, 32, 32, 2, stateCount / 2 % 8, drawX - 16, drawY - 16, 255, r, g, b); } else { graphics.DrawImageRotateAdd(GameImage.EnemyBullet, 64, 32, 0, 3, drawX, drawY, 48, 16, (int)Math.Round(direction * 180 / Math.PI), 255, r, g, b); } }