pigdevstudio / moon-cheeser

Moon Cheeser is an infinite runner where the player plays as a mouse gathering cheese pieces and avoiding craters and other astronomical objects, such as comets and planets, on a moon made of cheese.
https://pigdev.itch.io/moon-cheeser
The Unlicense
38 stars 4 forks source link

Port the spawning system #6

Closed henriiquecampos closed 5 years ago

henriiquecampos commented 5 years ago

In the game there are 2 types of objects that are spawned: moving objects, and static object.

The moving objects are the stars and the comets, while the static objects are the craters, the cheeses, the black holes...

The moving objects must have their moving direction properly set when spawned. While the static objects must have their position defined.

The spawning of said objects must be trigger by any sort of event. For instance, in general, the moving objects are spawned from time to time. But the crater is spawned when a moving object hits the moon.

So the spawning system must be very generic and allow any event to trigger its spawning.