void CustomInitialize() { SpriteManager.Camera.UsePixelCoordinates(); SpriteManager.Camera.X = 129; SpriteManager.Camera.Y = -216; FlatRedBallServices.GraphicsOptions.TextureFilter = Microsoft.Xna.Framework.Graphics.TextureFilter.Point; SpriteEditorScene ses = SceneSave.FromFile("Content/Screens/TmxScreen/FinalFantasyScene.scnx".ToLowerInvariant()); scene = new Scene(); ses.SetScene <Sprite>(ContentManagerName, scene, SceneSettingOptions.ConvertZSeparatedSpritesIntoSpriteGrids); scene.Shift(new Vector3(0, 0, 0)); scene.AddToManagers(); TestLevel2.X -= 530; if (string.IsNullOrEmpty(TilbTest.MapLayers[0].Name)) { throw new Exception("Map layers names are not coming through"); } // Layer 0 should be called "LayerWithStuff" if (TmxWithEmptyLayers.MapLayers[0].Name != "LayerWithStuff") { throw new Exception("Having empty layers can screw up Layer names. " + "This layer should be named \"LayerWithStuff\" but it is instead named " + TmxWithEmptyLayers.MapLayers[0].Name); } TestRotatedTiles(); TestTileSizeOnMapWithObjects(); TestEntitiesInFolders(); TestCollisionLayerByType(); // Make the shapes visible, to make sure that they get removed when the screen is destroyed: foreach (var shapeCollection in TmxWithShapes.ShapeCollections) { shapeCollection.Visible = true; shapeCollection.AddToManagers(); } }