-
Notifications
You must be signed in to change notification settings - Fork 7
EntitiesSpawner
27abdullah edited this page Oct 3, 2023
·
13 revisions
The entities spawner handles periodic spawning of multiple entities within the GameArea
. The spawner can be configured in various ways to customise the quantity of entities spawned and the frequency of their spawning.
To set up the spawner, a List<EntitySpawner>
must be passed to a EntitiesSpawner
To start periodic spawning, the startPeriodicSpawning
method must be called
The following code outlines how to spawn entities periodically. In SpaceGameArea
create()
, add spawnNow().