Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        public GameContext()
        {
            Tracer.i("Initializing GameContext");
            MainWindow=new MainWindow(this);
            MainWindow.Show();
            RenderContext = MainWindow.RenderContext;
            DebugGrid=new BasicGrid();
            DebugGrid.Load(RenderContext);
            GameWorld = MainWindow.WorldSpace;
            GameWorld.AddResource(DebugGrid);
            DirectInput = new DirectInputManager(RenderContext, MainWindow);
            OculusManager = new OculusDeviceManager(RenderContext);
            //PlayerContexts[0]=new PlayerContext(this,0);
            //PlayerContexts[1]=new PlayerContext(this,1);
            Controller=new ControlForm(this);
            Controller.Show();
            _drawable = new BulletEffect(this);
            GameWorld.AddResource(_drawable);
            _drawable.Start(new Vector3(0,0,0),new Vector3(0,0,1));

            //handOperationChecker=new JoystickHandOperationChecker(this,11);
            Tracer.i("Initializing GameContext Completed!");
        }
Exemplo n.º 2
0
        public GameContext()
        {
            Tracer.i("Initializing GameContext");
            MainWindow = new MainWindow(this);
            MainWindow.Show();
            RenderContext = MainWindow.RenderContext;
            DebugGrid     = new BasicGrid();
            DebugGrid.Load(RenderContext);
            GameWorld = MainWindow.WorldSpace;
            GameWorld.AddResource(DebugGrid);
            DirectInput   = new DirectInputManager(RenderContext, MainWindow);
            OculusManager = new OculusDeviceManager(RenderContext);
            //PlayerContexts[0]=new PlayerContext(this,0);
            //PlayerContexts[1]=new PlayerContext(this,1);
            Controller = new ControlForm(this);
            Controller.Show();
            _drawable = new BulletEffect(this);
            GameWorld.AddResource(_drawable);
            _drawable.Start(new Vector3(0, 0, 0), new Vector3(0, 0, 1));

            //handOperationChecker=new JoystickHandOperationChecker(this,11);
            Tracer.i("Initializing GameContext Completed!");
        }