Tutorial – how to create fireworks
In the following tutorial, we will create fireworks using all three event modules. Let’s get started:
- Let us create a new folder called
EventDispatcher
and in this folder, let us create two emitters. Let us name the first emitterReceiver
and the second emitterSender
.
Figure 9.1: Creating two emitters called Receiver and Sender
We will use the Fountain template for the Sender emitter.
Figure 9.2: The Fountain template for Sender
And we’ll use the Omnidirection Burst template for the Receiver emitter.
Figure 9.3: The Omnidirectional Burst template for Receiver
We have named these emitters in this way so that we can understand which emitter will generate the Events (Sender) and which emitter will receive them (Receiver). Feel free to use any names you find convenient as they have no bearing on the functionality.
Figure 9...