Exemple #1
0
 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);
 }
Exemple #2
0
 public Gun(GameCore gameRef, int x, int y)
 {
     this.game = gameRef;
     sprite = game.resources.LoadSprite("resources/gfx/bullet.png");
     fireRate = 150;
     this.x = x;
     this.y = y;
 }
 static void Main(string[] args)
 {
     gameCore = new GameCore();
     gameCore.Run();
     gameCore.Dispose();
 }
Exemple #4
0
 public Level(GameCore gameRef, string filePath)
     : this(gameRef)
 {
     LoadLevel(filePath);
 }
Exemple #5
0
 public Level(GameCore gameRef)
 {
     this.game = gameRef;
 }
Exemple #6
0
 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);
 }
Exemple #7
0
 public Gun(GameCore gameRef)
 {
     this.game = gameRef;
     sprite = game.resources.LoadSprite("resources/gfx/bullet.png");
     fireRate = 150;
 }
Exemple #8
0
 public Stars(GameCore game)
 {
     this.game = game;
     GenerateStars(100);
 }