protected override void KeyPressed(System.Windows.Forms.KeyEventArgs Key) { if (Key.KeyCode == System.Windows.Forms.Keys.Space) { map.ViewFrom(hacker); } }
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"; }
static void game_OnGameInitialization(object sender, EventArgs e) { map.ViewFrom(cameraVector, true); }