public void DrawPacman(SpriteBatch spriteBatch) { if(Direction == DIRECTION.LEFT) spriteBatch.DrawAnimation(PacmanAnimation, new Vector2(Globals.SCREENSIZE.X / 4, Globals.SCREENSIZE.Y / 4), 0, SpriteEffects.FlipHorizontally); if(Direction == DIRECTION.RIGHT) spriteBatch.DrawAnimation(PacmanAnimation, new Vector2(Globals.SCREENSIZE.X / 4, Globals.SCREENSIZE.Y / 4), 0); if(Direction == DIRECTION.UP) spriteBatch.DrawAnimation(PacmanAnimation, new Vector2(Globals.SCREENSIZE.X / 4, Globals.SCREENSIZE.Y / 4), 0.8f % MathHelper.Pi * 2, SpriteEffects.FlipHorizontally); if (Direction == DIRECTION.DOWN) spriteBatch.DrawAnimation(PacmanAnimation, new Vector2(Globals.SCREENSIZE.X / 4, Globals.SCREENSIZE.Y / 4), 0.8f % MathHelper.Pi * 2); }