public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow) { application.PreferMultiSampling = false; application.ContentRootDirectory = "Content"; mainWindow.SupportedDisplayOrientations.IsPortrait = CCDisplayOrientation.Portrait; application.ContentSearchPaths.Add("hd"); CCSimpleAudioEngine.SharedEngine.PreloadEffect("Sounds/tap"); CCScene scene = GameStartLayer.GameStartLayerScene(mainWindow); mainWindow.RunWithScene(scene); }
public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow) { application.PreferMultiSampling = false; application.ContentRootDirectory = "Content"; application.ContentSearchPaths.Add("hd"); CCSimpleAudioEngine.SharedEngine.PreloadEffect("Sounds/tap"); CCSimpleAudioEngine.SharedEngine.PreloadBackgroundMusic("Sounds/backgroundMusic"); CCSize winSize = mainWindow.WindowSizeInPixels; CCScene.SetDefaultDesignResolution(winSize.Width, winSize.Height, CCSceneResolutionPolicy.ExactFit); CCScene scene = GameStartLayer.GameStartLayerScene(mainWindow); mainWindow.RunWithScene(scene); }