Beispiel #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);
 }
Beispiel #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();
 }
Beispiel #4
0
 public Level(GameCore gameRef, string filePath)
     : this(gameRef)
 {
     LoadLevel(filePath);
 }
Beispiel #5
0
 public Level(GameCore gameRef)
 {
     this.game = gameRef;
 }
Beispiel #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);
 }
Beispiel #7
0
 public Gun(GameCore gameRef)
 {
     this.game = gameRef;
     sprite = game.resources.LoadSprite("resources/gfx/bullet.png");
     fireRate = 150;
 }
Beispiel #8
0
 public Stars(GameCore game)
 {
     this.game = game;
     GenerateStars(100);
 }