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