Beispiel #1
0
 /*<summary>
  * Shows the loading screen before the splash screen
  * </summary>
  */
 private static void ShowLoadingScreen()
 {
     _Background = SwinGame.LoadBitmap(SwinGame.PathToResource("SplashBack.png", ResourceKind.BitmapResource));
     SwinGame.DrawBitmap(_Background, 0, 0);
     SwinGame.RefreshScreen();
     SwinGame.ProcessEvents();
     _Animation   = SwinGame.LoadBitmap(SwinGame.PathToResource("SwinGameAni.jpg", ResourceKind.BitmapResource));
     _LoadingFont = SwinGame.LoadFont(SwinGame.PathToResource("arial.ttf", ResourceKind.FontResource), 12);
     _StartSound  = Audio.LoadSoundEffect(SwinGame.PathToResource("SwinGameStart.ogg", ResourceKind.SoundResource));
     _LoaderFull  = SwinGame.LoadBitmap(SwinGame.PathToResource("loader_full.png", ResourceKind.BitmapResource));
     _LoaderEmpty = SwinGame.LoadBitmap(SwinGame.PathToResource("loader_empty.png", ResourceKind.BitmapResource));
     GameResources.PlaySwinGameIntro();
 }