Exemplo n.º 1
0
 /** create the ship of this level
  * can be overridden to make other ship types or add behaviours
  */
 public virtual void CreateShip()
 {
     ship  = new Ship();
     KeyboardShipControl shipControl = new KeyboardShipControl();
     ship.Add(shipControl);
     ship.player = RunningGameState.player;
 }
Exemplo n.º 2
0
 /** create the ship of this level - default ship here */
 public virtual Ship CreateShip()
 {
     Ship s = new Ship();
     KeyboardShipControl shipControl = new KeyboardShipControl();
     s.Add(shipControl);
     return s;
 }
Exemplo n.º 3
0
 protected override void OnNewParent()
 {
     parentShip = Parent as Ship;
     parentShip.velocityMax = SHIP_VEL_MAX;
     parentShip.defaultDeceleration = SHIP_DEFAULT_DECEL;
 }