public static void onStart() { // Create objects! SimGroup gameGroup = new SimGroup("GameGroup"); gameGroup.Name = "GameGroup"; gameGroup.registerObject(); LevelInfo levelInfo = new LevelInfo("TheLevelInfo") { CanvasClearColor = new ColorI(0, 0, 0, 0) }; levelInfo.registerObject(); GroundPlane groundPlane = new GroundPlane("TheGround") { Position = Point3F.Zero, Material = "BlankWhite" }; groundPlane.registerObject(); Sun sun = new Sun("TheSun") { Azimuth = 230, Elevation = 45, Color = ColorF.WHITE, Ambient = new ColorF(0.1f, 0.1f, 0.1f, 1), CastShadows = true }; sun.registerObject(); gameGroup.add(levelInfo, groundPlane, sun); // Allow us to exit the game... ActionMap globalActionMap = Sim.FindObjectByName <ActionMap>("GlobalActionMap"); globalActionMap.bindCmd("keyboard", "escape", "quit"); }