Exemplo n.º 1
0
        public BattleScreen()
        {
            battleMap = new BattleMap();
            camera = new Camera(ref battleMap.tileMap);

            InitializeComponent();
            openGLControl1.DrawFPS = true;
            openGLControl1.MouseMove += camera.handleMouseMove;
            openGLControl1.Resize += openGLControl1_Resized;

            timer.Tick += new EventHandler(timer_Tick);

            timer.Interval = 1;
            timer.Enabled = true;
            timer.Start();

            ResetOpenGL();
        }
Exemplo n.º 2
0
        public BattleScreen()
        {
            battleMap = new BattleMap();
            camera    = new Camera(ref battleMap.tileMap);

            InitializeComponent();
            openGLControl1.DrawFPS    = true;
            openGLControl1.MouseMove += camera.handleMouseMove;
            openGLControl1.Resize    += openGLControl1_Resized;

            timer.Tick += new EventHandler(timer_Tick);

            timer.Interval = 1;
            timer.Enabled  = true;
            timer.Start();

            ResetOpenGL();
        }