public void Draw()
        {
            var position = _map.Tile2Positon(Position);

            Drawing.DrawLine(
                position.X, position.Y, position.X + _map.TileSize, position.Y, _map.TileSize, Color.Yellow);
        }
        public void Draw()
        {
            var first = true;

            foreach (var tile in Body)
            {
                var position = _map.Tile2Positon(tile);
                Drawing.DrawLine(
                    position.X, position.Y, position.X + _map.TileSize, position.Y, _map.TileSize,
                    first ? Color.Gray : Color.White);
                first = false;
            }
        }
Beispiel #3
0
        public void Draw()
        {
            var position = _map.Tile2Positon(new Tile(0, -2));

            Drawing.DrawText(position.X, position.Y, Color.GreenYellow, string.Format("Score: {0}", Points));
        }