Example #1
0
 public Player(Texture2D tex, Vector2 pos, Rectangle hitBox, TexManager tM, Goal eGoal) : base(tex, pos, hitBox)
 {
     this.tex    = tex;
     this.pos    = pos;
     this.tM     = tM;
     this.hitBox = hitBox;
     vel         = new Vector2(0, 0);
     this.eGoal  = eGoal;
 }
Example #2
0
 public StandardEnemy(Texture2D tex, Vector2 pos, Rectangle hitBox, TexManager tM, Goal pGoal, Color c) : base(tex, pos, hitBox)
 {
     this.tex    = tex;
     this.pos    = pos;
     this.tM     = tM;
     this.hitBox = hitBox;
     this.pGoal  = pGoal;
     this.c      = c;
     vel         = new Vector2(0, 0);
 }
Example #3
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here

            tM = new TexManager(Content);
            gM = new GameManager(tM);
            graphics.PreferredBackBufferWidth  = 1500;
            graphics.PreferredBackBufferHeight = 900;
            //graphics.IsFullScreen = true;
            graphics.ApplyChanges();
            base.Initialize();
        }
Example #4
0
 public GameManager(TexManager tM)
 {
     this.tM = tM;
     LoadGame();
     hitBoxes = new Rectangle(0, 0, 0, 0);
 }