Exemplo n.º 1
0
        public Grabable()
        {
            YEnt = new Entity("Up/Down");
            XEnt = new Entity("Left/Right");
            ZEnt = new Entity("Forward/Backward");

            RenderTestI = new Brush_Cube();
            RenderTestII = new Brush_Cube();
            RenderTestIII = new Brush_Cube();

            CollideI = new IsCollidable();
            CollideII = new IsCollidable();
            CollideIII = new IsCollidable();
        }
Exemplo n.º 2
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            SetupCameras();

            graphics.PreferredBackBufferHeight = 600;
            graphics.PreferredBackBufferWidth = 800;
            graphics.PreferMultiSampling = true;
            graphics.ApplyChanges();

            CrateTest = new Brush_Cube();
            Collide = new IsCollidable();
            rsDefaultState = new RasterizerState();

            this.IsMouseVisible = true;
            base.Initialize();
        }