Search Unity

Feedback 2D platformer level saving/loading

Discussion in '2D' started by ktest112233, Aug 2, 2019.

  1. ktest112233

    ktest112233

    Joined:
    Jan 7, 2019
    Posts:
    37
    Hi everyone,

    I am making a 2D platformer game which will have 100+ levels.
    Every level will have different items represented as a prefab + a script that manages its state.

    My approach to saving and loading levels is to have just ONE SCENE in which everything is handled.

    Save the level by binary serializing it to a file..(with component information)
    Have a saving and loading utility that saves and loads the level in the scene

    Is this a good approach? Any suggestions are welcomed. Thank you
     
    Last edited: Aug 2, 2019
  2. bloodwolftico

    bloodwolftico

    Joined:
    Nov 13, 2017
    Posts:
    100
    With +100 levels it makes more sense to have more scenes, I think. You can still use Save/Load with multiple scenes, and it would handle things more cleanly.