Beispiel #1
0
 public GameView(GameModel model, SpriteBatch spriteBatch, Texture2D tileTexture, Texture2D fishTexture, 
                 Texture2D sparkTexture, Texture2D fishBoneTexture, Texture2D penguinTexture, 
                 Texture2D canTexture, Texture2D monsterTexture, Camera camera)
 {
     this.model = model;
     this.spriteBatch = spriteBatch;
     this.tileTexture = tileTexture;
     this.fishTexture = fishTexture;
     this.sparkTexture = sparkTexture;
     this.canTexture = canTexture;
     this.fishBoneTexture = fishBoneTexture;
     this.penguinTexture = penguinTexture;
     this.monsterTexture = monsterTexture;
     this.camera = camera;
 }
Beispiel #2
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()
        {
            model = new GameModel();
            IsMouseVisible = true;

            base.Initialize();
        }