Game Development Reference
In-Depth Information
14. Next we need to take care of the PLBullet behavior with another script.
Create one in the Scripts folder, name it ControlPLBullet and double-
click on it to open.
15. With this script we are going to tell the bullet to move up once created and
to check for collisions with enemy aliens and other objects such as barriers
(discussed in the last part of this tutorial in Chapter 10 , Balancing, Tuning,
and Polishing Mobile Games ).
16. The following code is to be put in the ControlPLBullet script:
#pragma strict
function Start () {
}
Search WWH ::




Custom Search