コード例 #1
0
ファイル: Level.cs プロジェクト: IndiegameGarden/TTR
 /** 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;
 }
コード例 #2
0
ファイル: LevelContent.cs プロジェクト: IndiegameGarden/TTR
 /** 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;
 }