Exemple #1
0
 protected override void KeyPressed(System.Windows.Forms.KeyEventArgs Key)
 {
     if (Key.KeyCode == System.Windows.Forms.Keys.Space)
     {
         map.ViewFrom(hacker);
     }
 }
Exemple #2
0
        protected override void StateStarted()
        {
            Game.RenderSystem.Window.Focus();

            map = new MapStack(Game.RenderSystem.Window.Size, 20, 15, "SandboxMap", Game.RenderSystem.Window);
            map.AddPage(new BuildingPage(map.PageSize), new Vector3(0, 0, 0));

            hacker          = new PlayerEntity(map);
            hacker.Location = new Vector3(10, 8, 0);

            map.ViewFrom(hacker);

            Game.InputSystem.Command.CommandSet = "World";
        }
Exemple #3
0
 static void game_OnGameInitialization(object sender, EventArgs e)
 {
     map.ViewFrom(cameraVector, true);
 }