Game Development Reference
In-Depth Information
8. Remember to repeat this last operation for all Alien prefabs we have in the
Project panel.
Everything is ready now to test the behavior of the alien swarm. Launch the project
and check that the swarm actually starts moving right and upon colliding with the
bounds, invert its direction and lowers its height.
Very well done! The fundamentals of our prototype are set now. In the next section
we will take care of the firing stuff.
Firing
First of all we want to make the player's ship fire against the aliens of the swarm.
We already have a prefab representing the bullets fired by the player's ship, so we
actually just need to have them spawned from the ship as the player presses the
spacebar. Obviously, this action can be bound to any other key of choice.
Search WWH ::




Custom Search