Missile spawning script
Every 10 seconds, it will create the missile from the boss for an interval of 0.1 seconds.
Once 30 missiles have been created, stop the creation of the missiles.
Missile trajectory and orientation script
When the missile is created, randomly choose whether it will fly to the left or the right.
Next, generate a random angle between 1 and 15 degrees for the chosen direction. Apply this angle to set both the missile’s orientation and its velocity, ensuring it flies correctly in the selected direction.
Arrow indicator and enemy spawning script
First, the arrow indicators and enemies were, I created two lists to store the values of the random generated x position for both the TIE Interceptor and the TIE Fighter. I assigned manually placed to form a pattern.
Afterwards i created two list to store the values of the randomly generated x position for both the TIE Interceptor and the TIE Fighter. Assigned the values to the x position of the arrow indicators and enemies.
Then every 6 seconds, create the arrow indicators. Then another 3 seconds create the enemies.
Once this pattern of waves is done, it will start another wave of arrow indicators and enemies