Exemple #1
0
 //Constructor
 public Menu(PyramidePanic game)
 {
     //game instantie
     this.game = game;
     //initialize
     this.Initialize();
 }
Exemple #2
0
        // 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();
        }
Exemple #3
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PyramidePanic game = new PyramidePanic())
     {
         game.Run();
     }
 }
Exemple #4
0
 // 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();
 }
Exemple #5
0
 //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);
 }
Exemple #6
0
        //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();
        }
Exemple #7
0
 //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);
 }
Exemple #8
0
 //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;
 }
Exemple #9
0
 //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);
 }
Exemple #10
0
 //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;
 }
Exemple #11
0
 // Constructor van de StartScene-class krijgt een object game mee van he type PyramidPanic
 public LoadScene(PyramidePanic game)
 {
     this.game = game;
 }
Exemple #12
0
 // 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;
 }
Exemple #14
0
 // 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;
 }
Exemple #16
0
 //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;
 }
Exemple #18
0
 //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;
 }