Search Unity

I would like to ask It's kind of like a war chess map what can I do

Discussion in 'Getting Started' started by weien_weien, May 14, 2020.

  1. weien_weien

    weien_weien

    Joined:
    May 14, 2020
    Posts:
    3
    Hello!everyone!I'm a novice developer.I have some problems.You know I've been working on a new game.In fact, it is learning to develop.I'm going to make a game that's kind of like a war chess game.I want to make the following map.
    • it's like that picture.(oh,my english is very poor.)

    • And that picture.

    • And this one down here.
    • This is what I want.

      • Masters, please help me
        That's ll thank you
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Please ask a more specific question.
     
  3. weien_weien

    weien_weien

    Joined:
    May 14, 2020
    Posts:
    3
    Well, I wanted to make a map similar to the one in the picture, where I could get things to fall there, and the ground was in squares, so I could move the fixed units each time.(thank you very much!)
     
  4. John_Leorid

    John_Leorid

    Joined:
    Nov 5, 2012
    Posts:
    651
    Same as always:
    1) Plan what you are trying to archive in detail, write a GDD, get a clear vision of what you want to make
    2) build a data structure, in this case, probably a 2D Array of Nodes
    Node[,] myArray;
    ,
    3) define the Node class, which will probably hold a GameObject (the actual Tile, maybe a transparent Plane?) and a position as well as everything else needed, maybe something like
    bool isOccupied;

    4) Write the Manager/Container for this array with access functions
    GetNodeAtPosition()
    ,
     GetRoundedNodePosition()

    5) Write the actual gameplay, using the Manager and Nodes
    6) Test and debug
     
    JoeStrout likes this.
  5. weien_weien

    weien_weien

    Joined:
    May 14, 2020
    Posts:
    3
    Thanks!
    It works for me.