Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to create logic games?

Discussion in 'Game Design' started by hellpirat, Sep 9, 2015.

  1. hellpirat

    hellpirat

    Joined:
    Jun 12, 2015
    Posts:
    26
    I have a couple idea for project, but when I create simple field at 6x6 and posted on enemies, main hero + barriers. I get lost when I try to think of what a logic game for example "Sokoban" or match-3.
    How do you calculate the moves?
    Maybe you using some software for this?
     
  2. El Maxo

    El Maxo

    Joined:
    May 23, 2013
    Posts:
    177
    Can you go into some more depth with your question, are you struggling with the design side of things or the code?
     
    Gigiwoo likes this.
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,141
    Sounds like they're struggling to understand how to write code to solve complex logic problems.

    Same way you solve any other logic problem. You break it down into simple steps and then solve those.
     
  4. El Maxo

    El Maxo

    Joined:
    May 23, 2013
    Posts:
    177
    My thinking to, if this is the case @hellpirat I would advise going onto the programming side of the forums, although you will need to provide a lot more information.
     
  5. hellpirat

    hellpirat

    Joined:
    Jun 12, 2015
    Posts:
    26
    No, Programming is not a problem. I mean level design.
    For example, I can create a level for "Sokaban", but it will be impossible to pass, because of the position of cubes.
     
  6. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,848
    For something like Sokoban, you start in the final (solved) position, and then work it backwards, doing the inverse of the normally-allowed operations. This will mutate the level into a state that is solvable (by simply running the same steps forwards instead of backwards).