Here, the technical part is written so that beginners can understand it somehow.
In a nutshell, it’s a function that creates a game object.
Speaking of where to use, for example, if you defeat an enemy, items will come out
It is used to make the ball come out when you hit the gun.
There was a site that explained how to use it in detail, so I will post the URL.