/// <summary> /// Called by the engine when it loads up. /// </summary> public void Engine_WindowLoad() { Engine.Window.KeyDown += Window_KeyDown; // Ground Engine.SpawnEntity(new EntitySimple3DRenderableModelProperty() { EntityModel = Engine.Models.Cube, Scale = new Location(100, 100, 10), RenderAt = new Location(0, 0, -5), DiffuseTexture = Engine.Textures.White }, new EntityPhysicsProperty() { Position = new Location(0, 0, -5), Shape = new EntityBoxShape() { Size = new Location(100, 100, 10) }, Mass = 0 }); // Player Engine.SpawnEntity(new EntityPhysicsProperty() { Position = new Location(0, 0, 2), Shape = new EntityCharacterShape() }, new PlayerEntityControllerCameraProperty()); // Light source PointLight pl = new PointLight(new Location(0, 0, 20), 100f, Location.One); Engine.MainView.Lights.Add(pl); }