Hi,
I am trying to create game like this on unity.
https://play.google.com/store/apps/details?id=com.ketchapp.theline2&hl=en
What iam trying to understand how i can load random levels?. Should i use object pooling
And create Scenes for Easy Levels 01 to 99, and another scenes for Medium Levels 01 to 99.
or can i just create object pooling for over 300 level/stage in one scene?
Thank you in advance. And please iam fairly new to unity and c#.

Please anyone. Show me the right direction.
That is a pretty broad question. You first have to figure out what a level is. Let’s assume there is only 1 level in the game. How are you planning on making that one level play. Once you figure that out, then you can move on to things like how to save these levels. How to load a level up ,etc.
Though I do suspect that you are going to have to have some kind of system that defines a level. Part of that system will be there should be a green triangle here, or a red circle here. You will have to define some basic items that can exist. For example the green triangles will all have a scale to them, a collider obviously. Some attributes you can set either specifically or randomly (their initial velocity, spin , etc). These basic items should be controlled by a Object Pooler.
The Object Pooler will create a reasonable amount of Red Circles, green triangles, etc at game load up. Then when a level is loaded and is need 20 green triangles in these specific spots, it just asks the object pooler for 20 green triangle objects that it can then set up
1 Like
Thank you very much for your reply.
A level is empty gameObject (ex: Level01) with child gameobjects. Child Gameobjects are pre designed pattern. Each levels has diffrent patterns. Patterns are made with moving and rotating objects, some objects (Green boxes) has Rigidbody attached.