Example #1
0
 public ModelManager(GameScreen gameScreen)
 {
     this.gameScreen = gameScreen;
     ListModels = new List<ModelStruct>();
     DiccModels = new Dictionary<int, string>();
 }
Example #2
0
        public Terrain(GameScreen gameScreen, Vector2 size)
        {
            this.gameScreen = gameScreen;
                this.Size = size;

                planeEffect = new BasicEffect(gameScreen.GraphicsDevice);
        }
Example #3
0
 public Sphere(GameScreen GameScreen, float Radius)
 {
     this.gameScreen = GameScreen;
         radius = Radius;
         graphicd = gameScreen.GraphicsDevice;
         effect = new BasicEffect(graphicd);
         nvertices = 90 * 90;
         nindices = 90 * 90 * 6;
         vbuffer = new VertexBuffer(graphicd, typeof(VertexPositionNormalTexture), nvertices, BufferUsage.WriteOnly);
         ibuffer = new IndexBuffer(graphicd, IndexElementSize.SixteenBits, nindices, BufferUsage.WriteOnly);
         createspherevertices();
         createindices();
         vbuffer.SetData<VertexPositionColor>(vertices);
         ibuffer.SetData<short>(indices);
         effect.VertexColorEnabled = true;
 }
Example #4
0
        public Cube(GameScreen gameScreen, Vector3 size, Vector3 position)
        {
            this.gameScreen = gameScreen;
                Size = size;
                Position = position;

                cubeTexture = gameScreen.Content.Load<Texture2D>("Textures/cube");
                cubeEffect = new BasicEffect(gameScreen.GraphicsDevice);
        }
Example #5
0
 public Pause(GameScreen gameScreen)
 {
     this.gameScreen = gameScreen;
 }
Example #6
0
        protected override void Initialize()
        {
            loadScreen = new LoadScreen(this, this);
            gameScreen = new GameScreen(this, this);
            main = new Main(this, this);
            cutScenes = new CutScenes(this, this);

            //Crea Camara Statica
            objCamara = new Camara1(this, new Vector3(0, 0, 100), new Vector3(0, 0, 1), Vector3.Up);

            //Create Options Menu
            controls = new Controls(this, this);

               // this.Components.Add(loadScreen);
              // this.Components.Add(cutScenes);

            setState(GameStates.CUTSCENE);

            base.Initialize();
        }