Beispiel #1
0
 public Dart(Player player, int segment, int multiplier)
 {
     Player = player;
     Segment = segment;
     Multiplier = multiplier;
 }
Beispiel #2
0
        private void drawMark(SpriteBatch spriteBatch, CricketSegment segment, Player player, Vector2 position,
            float scaling)
        {
            var marks = segment.GetScoredMarks(player);
            var segmentColor = Color.White;

            if (marks > 0)
            {
                if (!segment.IsOpen)
                {
                    segmentColor *= 0.33f;
                }

                spriteBatch.Draw(_markTexture[Math.Min(marks, 3)], position, null, segmentColor, 0,
                    _markTextureSize*0.5f, scaling, SpriteEffects.None, 0);
            }
        }