public EditorScreen(Editor editor, ScreenManager manager) : base(null, manager) { this.editor = editor; menu_screen = new EditorMainMenu(this, manager); }
public Editor(InputDevice input) { this.input = input; player = new Player(input); player.position.Y = 0.0f; player.position.Z = 15.0f; camera = new FirstPersonCamera(player); camera.width = Application.WIDTH; camera.height = Application.HEIGHT; camera.near = 0.1f; camera.far = 500; camera.fov = 1.1f; depth_values = new float[]{ 0, -150, -400}; curr_depth_index = 0; cursor = new Cursor(6); cursor.color = Color.Gray; level = new Level(); asset_list = new List<object>(); asset_list.Add(Resources.box_model); asset_list.Add(Resources.rock_model); asset_list.Add(Resources.seaurchin_model); asset_list.Add(Resources.ray_texture); asset_list.Add(Resources.starfish_model); instance = this; }