コード例 #1
0
        public new void LoadContent()
        {
            groupOne.LoadContent();
            groupTwo.LoadContent();

            skyTexture = GameStateManager.Instance.Content.Load <Texture2D>("Textures/skydome");
            skydome    = new Skydome(25f, false, skyTexture);
            skydome.Load();

            ocean = new Ocean();
            ocean.LoadContent();

            ice        = GameStateManager.Instance.Content.Load <Model>("Models/eisscholle");
            netTexture = iceTexture = GameStateManager.Instance.Content.Load <Texture2D>("Textures/iceTexture");

            netBoundingBox = new BoundingBox(new Vector3(-54, -0.2f, 10), new Vector3(54, 0.2f, 20));

            base.LoadContent();
        }
コード例 #2
0
ファイル: WaterField.cs プロジェクト: DrGengar/Volamus
        public new void LoadContent()
        {
            groupOne.LoadContent();
            groupTwo.LoadContent();

            skyTexture = GameStateManager.Instance.Content.Load <Texture2D>("Textures/himmelrot");
            skydome    = new Skydome(25f, false, skyTexture);
            skydome.Load();

            netTexture = GameStateManager.Instance.Content.Load <Texture2D>("Textures/netTextureSeaWeed");

            ocean = new Ocean();
            ocean.LoadContent();

            gummyboat        = GameStateManager.Instance.Content.Load <Model>("Models/schlauchboot");
            gummyboatTexture = GameStateManager.Instance.Content.Load <Texture2D>("Textures/orange");

            base.LoadContent();
        }