Move the Cube inside "TilePrefab" object, change its position to (0, 0, 0) and scale to (8, 0.4, 20).Create new Cube (GameObject -> 3D Object -> Cube).Create a new GameObject and call it "TilePrefab".We begin by creating a tiled platform that will be later stored to Prefab: To make an endless-runner game in Unity, we will need to make a platform with obstacles and a player controller. object pooling), in other words, as soon as the block goes behind or outside the Camera view, it's moved to the front. So how do some games create an illusion of an infinite world? The answer is by reusing the building blocks (a.k.a. However, considering that even modern computers/gaming devices have limited processing power, it's impossible to make a truly infinite world. The main objective is to reach the end of the level without falling into or colliding with the obstacles, but oftentimes, the level repeats itself infinitely, gradually increasing the difficulty, until the player collides with the obstacle. But some games try to emulate the infinite world, such games fall under a category called Endless Runner.Įndless Runner is a type of game where the player is constantly moving forward while collecting points and avoiding obstacles. In video games, no matter how large the world is, it always has an end.
0 Comments
Leave a Reply. |