//Constructor public Menu(PyramidePanic game) { //game instantie this.game = game; //initialize this.Initialize(); }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public StartScene(PyramidePanic game) { this.game = game; // Roep de Initialize method aan this.Intialize(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (PyramidePanic game = new PyramidePanic()) { game.Run(); } }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public PlayScene(PyramidePanic game) { //game instantie this.game = game; //initialize this.Intialize(); }
//Constructor public Image(PyramidePanic game, string pathNameAsset, Vector2 postion) { this.game = game; this.texture = game.Content.Load<Texture2D>(pathNameAsset); this.rectangle = new Rectangle((int)postion.X, (int)postion.Y, this.texture.Width, this.texture.Height); }
//Constructor public Level(PyramidePanic game, int levelIndex) { this.game = game; this.levelIndex = levelIndex; // ladd het textbestand this.stream = TitleContainer.OpenStream(@"Content\Level\0.txt"); this.LoadAssets(); }
//Constructor public Image(PyramidePanic game, string pathNameAsset, Vector2 postion) { // game instantie this.game = game; // texture load pathnameasset this.texture = game.Content.Load<Texture2D>(pathNameAsset); // position van de rectangle this.rectangle = new Rectangle((int)postion.X, (int)postion.Y, this.texture.Width, this.texture.Height); }
//Constructor public Beetle(PyramidePanic game, Vector2 position) { // de variable meegegeven in de constructor // game this.game = game; //positie this.position = position; //texture this.texture = game.Content.Load<Texture2D>(@"Beetle\Beetle"); //walkup nieuwe aangemaakt this.walkUp = new WalkUp(this); //walkdown nieuwe aangemaakt this.walkDown = new WalkDown(this); //state this.state = this.walkUp; }
//Constructor public Scorpion(PyramidePanic game, Vector2 position) { // game this.game = game; // positie this.position = position; //plaatje wordt geload this.texture = game.Content.Load<Texture2D>(@"Scorpion\Scorpion"); //walkleft this.walkLeft = new WalkLeft(this); //walkright this.walkRight = new WalkRight(this); //state classe this.state = this.walkRight; this.collisionRect = new Rectangle((int)this.position.X,(int)this.position.Y, 32, 32); }
//Constructor public Explorer(PyramidePanic game, Vector2 position) { //game this.game = game; // position this.position = position; //load explorer this.texture = game.Content.Load<Texture2D>(@"Explorer\Explorer"); //this.walkUp = new ExplorerWalkUp(this); this.walkDown = new ExplorerWalkDown(this); //this.walkUp = new ExplorerWalkUp(this); this.walkUp = new ExplorerWalkUp(this); //this.walkUp = new ExplorerWalkUp(this); this.walkRight = new ExplorerWalkRight(this); //this.walkUp = new ExplorerWalkUp(this); this.walkLeft = new ExplorerWalkLeft(this); //this.walkUp = new ExplorerWalkUp(this); this.idle = new ExplorerIdle(this); //this.walkUp = new ExplorerWalkUp(this); this.idlewalk = new ExplorerIdleWalk(this); //this.walkUp = new ExplorerWalkUp(this); this.state = this.idle; }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public LoadScene(PyramidePanic game) { this.game = game; }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public ScoresScene(PyramidePanic game) { //game instantie this.game = game; }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public GameOverScene(PyramidePanic game) { this.game = game; }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public QuitScene(PyramidePanic game) { //game instantie this.game = game; }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public ScoresScene(PyramidePanic game) { this.game = game; }
//Constructor public Menu(PyramidePanic game) { this.game = game; this.Initialize(); }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public HelpScene(PyramidePanic game) { this.game = game; }
//constructor public Block(PyramidePanic game, string pathNameAsset, Vector2 postion, bool passable) : base(game, pathNameAsset, postion) { this.passable = passable; }
// Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic public PlayScene(PyramidePanic game) { this.game = game; }