ABSTRACT

Previously, we spawned collectables randomly using Unity world coordinates . Now that we’ve implemented a nice tile map structure for our game world, we should revisit the concept of spawning objects . Instead of placing objects at arbitrary coordinates in the game world, we can choose to fill the positions of our tile map . By utilizing our tile map structure to position spawned objects, we can take greater control over our game world and set the stage for managing many different objects on our map . To begin this process, we will write a script to spawn objects at random positions on our tile map .