コード例 #1
0
ファイル: Player.cs プロジェクト: RiskyKen/modular-shooter
 public Player(GameCore gameRef)
 {
     this.game = gameRef;
     ship = new SpaceShip(game, "resources/ships/player.ship");
     //ship.point = new Point(0,0);
     ship.point = new System.Drawing.Point((GameCore.screenSize.Width / 2) - (ship.sprite.imageRec.Width / 2), GameCore.screenSize.Height - ship.sprite.imageRec.Height);
 }
コード例 #2
0
ファイル: Npc.cs プロジェクト: RiskyKen/modular-shooter
 public Npc(GameCore gameRef)
 {
     this.game = gameRef;
     ship = new SpaceShip(game, "resources/ships/cake.ship");
     ship.point = new System.Drawing.Point((GameCore.screenSize.Width / 2) - (ship.sprite.imageRec.Width / 2), 0);
 }