Exemplo n.º 1
0
        public void Draw()
        {
            var position = _map.Tile2Positon(Position);

            Drawing.DrawLine(
                position.X, position.Y, position.X + _map.TileSize, position.Y, _map.TileSize, Color.Yellow);
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 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));
        }