unity開發(fā)之3d網(wǎng)格地圖(二)

前面一章實現(xiàn)了地圖的分割,下面來實現(xiàn)點擊網(wǎng)格地圖的選中狀態(tài)。當某個網(wǎng)格被選中時,在相應(yīng)的位置繪制一個mesh,來達到選中的效果。

實現(xiàn)效果圖如下:

正方形.png
正六邊形.png

1.地圖網(wǎng)格控制類(進行了擴展)

public enum GridShapeType
{
    /// <summary>
    /// 正方形
    /// </summary>
    Square,
    /// <summary>
    /// 正六邊形
    /// </summary>
    RegularHexagon,
}

public class MapGridCtr: MonoBehaviour
{

    private const float MAXDIS = 10000001f;

    public static MapGridCtr mIns;

    /// <summary>
    /// 網(wǎng)格線是否顯示
    /// </summary>
    public bool showGrid = true;

    /// <summary>
    /// 網(wǎng)格線寬度
    /// </summary>
    public float gridLine = 0.1f;

    /// <summary>
    /// 網(wǎng)格線顏色
    /// </summary>
    public Color gridColor = Color.red;

    /// <summary>
    /// 網(wǎng)格線
    /// </summary>
    private GameObject[,] m_lines;

    /// <summary>
    /// 一個網(wǎng)格的基數(shù)
    /// </summary>
    public int coefficient = 8;

    /// <summary>
    /// 當前地圖地形
    /// </summary>
    public Terrain m_terrian;

    /// <summary>
    /// 當前地圖地形行數(shù)
    /// </summary>
    private int m_arrRow = 0;

    public int ArrRow
    {
        get
        {
            return this.m_arrRow;
        }
    }

    /// <summary>
    /// 當前地圖地形寬度
    /// </summary>
    private int m_arrCol = 0;

    public int ArrCol
    {
        get
        {
            return this.m_arrCol;
        }
    }

    /// <summary>
    /// 當前地圖vector3數(shù)據(jù)
    /// </summary>
    private Vector3[,] m_array;

    public Vector3[,] Array
    {
        get
        {
            return this.m_array;
        }
    }

    /// <summary>
    /// 網(wǎng)片
    /// </summary>
    private GameObject m_defaultMesh;

    private GameObject m_mesh
    {
        get
        {
            if (m_defaultMesh == null)
                m_defaultMesh = new GameObject();
            return m_defaultMesh;
        }
    }

    /// <summary>
    /// 網(wǎng)片形狀
    /// </summary>
    public GridShapeType m_meshType;

    /// <summary>
    /// 網(wǎng)片顏色
    /// </summary>
    private Color m_color = Color.yellow;

    public Mesh CurrenMesh { get; private set; }

    /// <summary>
    /// 網(wǎng)片緩存
    /// </summary>
    private Dictionary<int, Dictionary<int,Mesh>> meshCaches = new Dictionary<int, Dictionary<int, Mesh>>();

    protected void Awake()
    {
        mIns = this;
    }

    protected void Start()
    {
        this.LoadMap();
    }

    /// <summary>
    /// 加載地圖數(shù)據(jù)
    /// </summary>
    public void LoadMap()
    {
        if (this.m_terrian == null)
        {
            Debug.Log("Terrian is null!");
            return;
        }
        if (this.m_meshType == GridShapeType.Square && this.coefficient < 2)
        {
            Debug.Log("If the shape of mesh is square, coefficient must be bigger than 2!");
            return;
        }

        TerrainData data = m_terrian.terrainData;
        int mapz = (int)(data.size.x / data.heightmapScale.x);
        int mapx = (int)(data.size.z / data.heightmapScale.z);

        this.m_arrRow = Math.Min(data.heightmapWidth, mapz);
        this.m_arrCol = Math.Min(data.heightmapHeight, mapx);

        float[,] heightPosArray = data.GetHeights(0, 0, this.m_arrRow, this.m_arrCol);

        this.m_array = new Vector3[this.m_arrRow, this.m_arrCol];

        for (int i = 0; i < this.m_arrRow; ++i)
        {
            for (int j = 0; j < this.m_arrCol; ++j)
            {
                this.m_array[i, j] = new Vector3(j * data.heightmapScale.x, heightPosArray[i, j] * data.heightmapScale.y, i * data.heightmapScale.z);
            }
        }

        if (this.showGrid)
        {
            this.ShowGrid();
        }
        
    }

    /// <summary>
    /// 顯示地圖網(wǎng)格
    /// </summary>
    private void ShowGrid()
    {
        switch (m_meshType)
        {
            case GridShapeType.Square:
                {
                    this.ShowSquareGird();
                    break;
                }
            case GridShapeType.RegularHexagon:
                {
                    this.ShowRegularHexagon();
                    break;
                }
            default:
                {
                    Debug.LogError("暫不支持此形狀! m_meshType: " + m_meshType);
                    break;
                }
        }
        
    }

    /// <summary>
    /// 顯示正方形網(wǎng)格
    /// coefficient代表邊的網(wǎng)格數(shù),最小為2
    /// </summary>
    private void ShowSquareGird()
    {
        Vector3[] pos;
        int rn = this.m_arrRow / (this.coefficient - 1);
        int cn = this.m_arrCol / (this.coefficient - 1);
        if (this.m_arrRow % (this.coefficient - 1) > 0)
            ++rn;
        if (this.m_arrCol % (this.coefficient - 1) > 0)
            ++cn;
        this.m_lines = new GameObject[rn, cn];

        for (int i = 0; i < this.m_arrRow - 1;)
        {
            int lastr = i + this.coefficient - 1;
            if (lastr >= this.m_arrRow)
            {
                lastr = this.m_arrRow - 1;
            }

            for (int j = 0; j < this.m_arrCol - 1;)
            {
                int lastc = j + this.coefficient - 1;
                if (lastc >= this.m_arrCol)
                {
                    lastc = this.m_arrCol - 1;
                }

                if (lastr < this.m_arrRow - 1 && lastc < this.m_arrCol - 1)
                {
                    pos = new Vector3[this.coefficient * 4];
                    for (int k = 0; k < this.coefficient; ++k)
                    {
                        pos[0 * this.coefficient + k] = this.m_array[i, j + k];
                        pos[1 * this.coefficient + k] = this.m_array[i + k, lastc];
                        pos[2 * this.coefficient + k] = this.m_array[lastr, lastc - k];
                        pos[3 * this.coefficient + k] = this.m_array[lastr - k, j];
                    }
                    this.CreatLine(i / (this.coefficient - 1), j / (this.coefficient - 1), pos);
                }
                else
                {
                    int cr = lastr - i + 1;
                    int cl = lastc - j + 1;
                    pos = new Vector3[(cr + cl) * 2];
                    for (int k = 0; k < cr; ++k)
                    {
                        pos[cl + k] = this.m_array[i + k, lastc];
                        pos[cr + 2 * cl + k] = this.m_array[lastr - k, j];
                    }
                    for (int k = 0; k < cl; ++k)
                    {
                        pos[k] = this.m_array[i, j + k];
                        pos[cr + cl + k] = this.m_array[lastr, lastc - k];
                    }
                    this.CreatLine(i / (this.coefficient - 1), j / (this.coefficient - 1), pos);
                }
                j = lastc;
            }
            i = lastr;
        }
    }

    /// <summary>
    /// 顯示正六邊形網(wǎng)格
    /// 正六邊形邊長最小為5,coefficient表示倍率
    /// </summary>
    private void ShowRegularHexagon()
    {
        this.coefficient = this.coefficient / 5;
        Vector3[] pos_1;
        Vector3[] pos_2;
        int num_1 = this.m_arrCol / (this.coefficient * (3 + 5)) * (this.coefficient * 5 + 1);
        int num_2 = this.m_arrCol % (this.coefficient * (3 + 5));
        if (num_2 > 0)
        {
            if (num_2 < 3 * this.coefficient)
            {
                num_2 = 1;
            }
            else
            {
                num_2 = num_2 - 3 * this.coefficient + 2;
            }
        }
        
        pos_1 = new Vector3[num_1 + num_2];
        pos_2 = new Vector3[num_1 + num_2];

        int rn = this.m_arrRow / (this.coefficient * (3 + 5));
        this.m_lines = new GameObject[rn, 2];
        for (int i = 4 * this.coefficient; i < this.m_arrRow;)
        {
            int index_1 = 0;
            int index_2 = 0;
            int r_1 = i - 4 * this.coefficient;
            int r_2 = i + 4 * this.coefficient;
            bool flag_1 = true;
            bool flag_2 = false;
            if (r_2 >= this.m_arrRow)
            {
                flag_1 = false;
            }

            for (int j = 0; j < this.m_arrCol;)
            {
                if (j % (this.coefficient * (3 + 5)) == 0)
                {
                    flag_2 = !flag_2;
                    if (flag_2)
                    {
                        pos_1[index_1++] = this.m_array[i, j];
                        if (flag_1)
                        {
                            pos_2[index_2++] = this.m_array[i, j];
                        }
                    }
                    else
                    {
                        pos_1[index_1++] = this.m_array[r_1, j];
                        if (flag_1)
                        {
                            pos_2[index_2++] = this.m_array[r_2, j];
                        }
                    }
                    
                    j += 3 * this.coefficient;
                }
                else
                {
                    if (flag_2)
                    {
                        pos_1[index_1++] = this.m_array[r_1, j];
                        if (flag_1)
                        {
                            pos_2[index_2++] = this.m_array[r_2, j];
                        }
                    }
                    else
                    {
                        pos_1[index_1++] = this.m_array[i, j];
                        if (flag_1)
                        {
                            pos_2[index_2++] = this.m_array[i, j];
                        }
                    }   
                    ++j;
                }
            }

            this.CreatLine(i / (2 * 4 * this.coefficient), 0, pos_1);
            if (flag_1)
            {
                this.CreatLine(i / (2 * 4 * this.coefficient), 1, pos_2);
            }

            i += (4 * this.coefficient * 2);
        }
    }

    /// <summary>
    /// 創(chuàng)建網(wǎng)格線
    /// </summary>
    private void CreatLine(int row, int col, Vector3[] pos)
    {
        if(this.m_lines[row, col] != null)
        {
            GameObject.Destroy(this.m_lines[row, col]);
        }
        this.m_lines[row, col] = new GameObject();

        LineRenderer _lineRenderer = this.m_lines[row, col].AddComponent<LineRenderer>();
        _lineRenderer.material = new Material(Shader.Find("Particles/Additive"));
        _lineRenderer.SetColors(this.gridColor, this.gridColor);
        _lineRenderer.SetWidth(this.gridLine, this.gridLine);
        _lineRenderer.useWorldSpace = true;
        _lineRenderer.SetVertexCount(pos.Length);
        for (int i = 0; i < pos.Length; ++i)
        {
            _lineRenderer.SetPosition(i, pos[i]);
        }

        this.m_lines[row, col].name = "CreateLine " + row + "  " + col;
    }

    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            RaycastHit hit;
            Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
            if (Physics.Raycast(ray, out hit))
            {
                //Debug.LogError("select point " + hit.point);
                this.CreatMesh(hit.point);
            }

        }
    }

    /// <summary>
    /// 創(chuàng)建面片
    /// </summary>
    public void CreatMesh(Vector3 pos)
    {
        if(this.meshCaches.Count == 0)
            this.m_mesh.name = "CreateMesh";

        this.DrawMesh(pos);
    }


    /// <summary>
    /// 繪制面片
    /// </summary>
    private void DrawMesh(Vector3 pos)
    {
        try
        {
            KeyValuePair<int, int> rw = this.GetRowColByPos(pos);

            if (rw.Key > this.m_arrRow || rw.Value > this.m_arrCol)
            {
                Debug.LogError("選擇的區(qū)域已出邊界!");
                return;
            }

            MeshFilter filter = this.m_mesh.GetComponent<MeshFilter>();
            if (filter == null)
                filter = this.m_mesh.AddComponent<MeshFilter>();


            Mesh mesh = filter.mesh;
            MeshRenderer renderer = this.m_mesh.GetComponent<MeshRenderer>();
            if (renderer == null)
                renderer = this.m_mesh.AddComponent<MeshRenderer>();

            if (renderer.material == null)
            {
                Material material = new Material(Shader.Find("Diffuse"));
                renderer.sharedMaterial = material;
            }

            Mesh CacheMesh = TryGetMesh(rw);
            if (CacheMesh != null && CacheMesh != mesh)
            {
                filter.mesh = CacheMesh;
                this.CurrenMesh = CacheMesh;
            }
            else if (mesh == null || CacheMesh == null)
            {
                if (this.m_meshType == GridShapeType.RegularHexagon)
                {
                    mesh = RegularHexagonGrid.Create<RegularHexagonGrid>(pos).mesh;
                }
                else
                {
                    mesh = SquareGrid.Create<SquareGrid>(pos).mesh;
                }

                if (mesh == null)
                {
                    Debug.LogError("該區(qū)域不能選擇!");
                    return;
                }

                if (mesh.vertices.Length > 300)
                    Debug.LogErrorFormat("頂點數(shù)據(jù)過大 {0} :{1}", rw.Key, rw.Value);

                mesh.RecalculateNormals();
                mesh.RecalculateBounds();

                filter.mesh = mesh;
                this.CurrenMesh = mesh;
                this.TryAddMesh(rw, mesh);

            }
        }
        catch (Exception ex)
        {
            Debug.LogException(ex);
        }
    }

    /// <summary>
    /// 根據(jù)世界坐標位置獲取對應(yīng)網(wǎng)格行列
    /// </summary>
    public KeyValuePair<int, int> GetRowColByPos(Vector3 pos)
    {
        TerrainData data = this.m_terrian.terrainData;
        int col = Mathf.FloorToInt(pos.x / data.heightmapScale.x);
        int row = Mathf.FloorToInt(pos.z / data.heightmapScale.z);

        int ncol = col;
        int nrow = row;

        switch (m_meshType)
        {
            case GridShapeType.Square:
                {
                    ncol = col / (this.coefficient - 1) * (this.coefficient - 1);
                    nrow = row / (this.coefficient - 1) * (this.coefficient - 1);
                    break;
                }
            case GridShapeType.RegularHexagon:
                {

                    int rn = row / (2 * 4 * this.coefficient);
                    int cn = (col - (this.coefficient * 3 + this.coefficient * 5 / 2 + this.coefficient * 5 % 2)) / ((3 + 5) * this.coefficient);

                    int x_1 = this.coefficient * 2 * 4 * rn + 4 * this.coefficient;
                    int x_2 = x_1 - 4 * this.coefficient;
                    int x_3 = x_1 + 4 * this.coefficient;

                    int y_1 = (cn + cn % 2) * ((3 + 5) * this.coefficient) + (this.coefficient * 3 + this.coefficient * 5 / 2 + this.coefficient * 5 % 2);
                    int y_2 = y_1 + (1 - 2 * (cn % 2)) * ((3 + 5) * this.coefficient);
                    int y_3 = y_1 + (1 - 2 * (cn % 2)) * ((3 + 5) * this.coefficient);

                    float dis_1 = MAXDIS;
                    float dis_2 = MAXDIS;
                    float dis_3 = MAXDIS;

                    if (x_1 < this.m_arrRow && y_1 < this.m_arrCol)
                    {
                        dis_1 = Vector3.Distance(pos, this.m_array[x_1, y_1]);
                    }
                    if (x_2 < this.m_arrRow && y_2 < this.m_arrCol)
                    {
                        dis_2 = Vector3.Distance(pos, this.m_array[x_2, y_2]);
                    }
                    if (x_3 < this.m_arrRow && y_3 < this.m_arrCol)
                    {
                        dis_3 = Vector3.Distance(pos, this.m_array[x_3, y_3]);
                    }

                    if (dis_1 > (MAXDIS - 1) && dis_2 > (MAXDIS - 1) && dis_3 > (MAXDIS - 1))
                    {
                        nrow = this.m_arrRow;
                        ncol = this.m_arrCol;
                    }
                    else
                    {
                        if (dis_1 <= dis_2 && dis_1 <= dis_3)
                        {
                            nrow = x_1;
                            ncol = y_1;
                        }
                        else if (dis_2 <= dis_1 && dis_2 <= dis_3)
                        {
                            nrow = x_2;
                            ncol = y_2;
                        }
                        else if (dis_3 <= dis_1 && dis_3 <= dis_2)
                        {
                            nrow = x_3;
                            ncol = y_3;
                        }
                    }

                    break;
                }
            default:
                {
                    ncol = col / (this.coefficient - 1) * (this.coefficient - 1);
                    nrow = row / (this.coefficient - 1) * (this.coefficient - 1);
                    break;
                }
        }

        return new KeyValuePair<int, int>(nrow, ncol);
    }

    /// <summary>
    /// 根據(jù)行列值獲取世界坐標
    /// </summary>
    /// <returns></returns>
    public Vector3 GetPositionByRw(int row, int col)
    {
        TerrainData data = this.m_terrian.terrainData;

        switch (m_meshType)
        {
            case GridShapeType.Square:
                {
                    row = row + this.coefficient / 2;
                    col = col + this.coefficient / 2;
                    break;
                }
            case GridShapeType.RegularHexagon:
                {
                    break;
                }
            default:
                {
                    row = row + this.coefficient / 2;
                    col = col + this.coefficient / 2;
                    break;
                }
        }

        float px = data.heightmapScale.x * col;
        float pz = data.heightmapScale.z * row;
        return this.m_terrian.transform.position + new Vector3(px, data.GetHeight(row, col), pz); ;
    }

    private Mesh TryGetMesh(KeyValuePair<int, int> rw)
    {
        if (this.meshCaches.ContainsKey(rw.Key))
        {
            Dictionary<int, Mesh> dic = this.meshCaches[rw.Key];
            if (dic.ContainsKey(rw.Value))
            {
                return dic[rw.Value];
            }
        }
        return null;
    }

    private void TryAddMesh(KeyValuePair<int, int> rw,Mesh mesh)
    {
        if (this.meshCaches.ContainsKey(rw.Key))
        {
            Dictionary<int, Mesh> dic = this.meshCaches[rw.Key];
            if (!dic.ContainsKey(rw.Value))
            {
                dic.Add(rw.Value, mesh);
            }
        }
        else
        {
            Dictionary<int, Mesh> dic = new Dictionary<int, Mesh>();
            dic.Add(rw.Value,mesh);
            this.meshCaches.Add(rw.Key,dic);
        }

    }
}

2.地圖網(wǎng)格接口

public interface IGridShape
{
    /// <summary>
    /// 面片
    /// </summary>
    Mesh mesh { get; }
    /// <summary>
    /// 位置
    /// </summary>
    Vector3 pos { get; }
}

3.地圖網(wǎng)格抽象類

public abstract class BaseGrid : IGridShape
{

    /// <summary>
    /// 面片
    /// </summary>
    private Mesh _mesh;

    public Mesh mesh
    {
        get
        {
            return _mesh;
        }
    }

    /// <summary>
    /// 位置
    /// </summary>
    private Vector3 _pos;
    public Vector3 pos
    {
        get
        {
            return _pos;
        }
    }

    /// <summary>
    /// 一個網(wǎng)格的基數(shù)
    /// </summary>
    protected int _coefficient;

    /// <summary>
    /// 頂點數(shù)
    /// </summary>
    protected Vector3[] _vertexes;
    /// <summary>
    /// 三角形索引  
    /// </summary>
    protected int[] _triangles;
    /// <summary>
    /// mesh 長度的段數(shù)和寬度的段數(shù) 
    /// </summary>
    protected Vector2 _segment;

    protected BaseGrid()
    {
        this._init();
    }

    /// <summary>
    /// 創(chuàng)建網(wǎng)格
    /// 網(wǎng)格類型,網(wǎng)格位置
    /// </summary>
    public static T Create<T>(Vector3 pos) where T: BaseGrid, new()
    {
        T mapGrid = new T();
        mapGrid._pos = pos;
        mapGrid._createMesh();
        return mapGrid;

    }

    protected virtual void _init()
    {
        this._coefficient = MapGridCtr.mIns.coefficient;
        this._mesh = null;
        this._vertexes = null;
        this._triangles = null;
        this._segment = new Vector2((this._coefficient - 1), (this._coefficient - 1));
    }

    private void _createMesh()
    {
        this.CaculateVertexes();
        this.CaculateTriangles();

        if (this._vertexes == null || this._triangles == null)
        {
            this._mesh = null;
            return;
        }

        if (mesh == null)
        {
            this._mesh = new Mesh();
        }
        mesh.vertices = this._vertexes;
        mesh.triangles = this._triangles;
    }

    public virtual void Release(bool disposing)
    {
        this._vertexes = null;
        this._triangles = null;
        GameObject.Destroy(_mesh);
    }

    protected abstract void CaculateVertexes();

    protected abstract void CaculateTriangles();
}

4.正方形網(wǎng)格類

public class SquareGrid : BaseGrid
{
    protected override void CaculateVertexes()
    {
        KeyValuePair<int, int> info = MapGridCtr.mIns.GetRowColByPos(pos);

        if ((info.Key + this._coefficient - 1 >= MapGridCtr.mIns.ArrRow) || (info.Value + this._coefficient - 1 >= MapGridCtr.mIns.ArrCol))
        {
            this._vertexes = null;
            return;
        }

        int index = 0;
        this._vertexes = new Vector3[this._coefficient * this._coefficient];

        for (int i = 0; i < this._coefficient; ++i)
        {
            for (int j = 0; j < this._coefficient; ++j)
            {
                this._vertexes[index++] = MapGridCtr.mIns.Array[info.Key + i, info.Value + j] + new Vector3(0, 0.1f, 0);
            }
        }
    }

    protected override void CaculateTriangles()
    {
        int sum = Mathf.FloorToInt(this._segment.x * this._segment.y * 6);
        this._triangles = new int[sum];

        uint index = 0;
        for (int i = 0; i < this._segment.y; i++)
        {
            for (int j = 0; j < this._segment.x; j++)
            {
                int role = Mathf.FloorToInt(this._segment.x) + 1;
                int self = j + (i * role);
                int next = j + ((i + 1) * role);
                //順時針  
                this._triangles[index] = self;
                this._triangles[index + 1] = next + 1;
                this._triangles[index + 2] = self + 1;
                this._triangles[index + 3] = self;
                this._triangles[index + 4] = next;
                this._triangles[index + 5] = next + 1;
                index += 6;
            }
        }
    }
}

5.正六邊形網(wǎng)格類

public class RegularHexagonGrid : BaseGrid
{
    protected override void CaculateVertexes()
    {
        KeyValuePair<int, int> info = MapGridCtr.mIns.GetRowColByPos(pos);

        int index = 0;
        int c = info.Value - (this._coefficient * 3 + this._coefficient * 5 / 2 + this._coefficient * 5 % 2);
        int c_0 = c + (3 * 2 + 5) * this._coefficient;
        int r_1 = info.Key + this._coefficient * 4;
        int r_2 = info.Key - this._coefficient * 4;
        int c_1 = info.Value - (this._coefficient * 5 / 2 + this._coefficient * 5 % 2);
        int c_2 = info.Value + this._coefficient * 5 / 2;

        if (r_1 >= MapGridCtr.mIns.ArrRow || r_2 < 0 || c_1 < 0 || c_2 >= MapGridCtr.mIns.ArrCol)
        {
            this._vertexes = null;
            return;
        }

        Vector3[,] array = MapGridCtr.mIns.Array;

        this._vertexes = new Vector3[2 * (c_2 - c_1 + 1 + 1)];

        this._vertexes[index++] = array[info.Key, c] + new Vector3(0, 0.1f, 0);
        for (int i = c_1; i < c_2 + 1; ++i)
        {
            this._vertexes[index++] = array[r_1, i] + new Vector3(0, 0.1f, 0);
        }
        this._vertexes[index++] = array[info.Key, c_0] + new Vector3(0, 0.1f, 0);
        for (int i = c_2; i >= c_1; --i)
        {
            this._vertexes[index++] = array[r_2, i] + new Vector3(0, 0.1f, 0);
        }
    }

    protected override void CaculateTriangles()
    {
        int sum = 2 * (1 + 5 * this._coefficient + 1) - 2;
        this._triangles = new int[sum * 3];

        for (int i = 0; i < sum; ++i)
        {
            this._triangles[3 * i] = 0;
            this._triangles[3 * i + 1] = i + 1;
            this._triangles[3 * i + 2] = i + 2;
        }
    }
}

到這,基本功能就已經(jīng)實現(xiàn)完畢了,之后可能會進一步完善,這兩篇總結(jié)都拖了很久,事實證明拖延癥是病,得治,歡迎大家拍磚,over。
源碼地址:https://github.com/gtgt154/MapGrid

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 229,117評論 6 537
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 98,860評論 3 423
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事?!?“怎么了?”我有些...
    開封第一講書人閱讀 177,128評論 0 381
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,291評論 1 315
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,025評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 55,421評論 1 324
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,477評論 3 444
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 42,642評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 49,177評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 40,970評論 3 356
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,157評論 1 371
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,717評論 5 362
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 44,410評論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,821評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,053評論 1 289
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,896評論 3 395
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,157評論 2 375

推薦閱讀更多精彩內(nèi)容