?login_element?

Subversion Repositories NedoOS

Rev

Rev 957 | Blame | Compare with Previous | Last modification | View Log | Download

  1. #ifndef WIN_STAGE_C
  2. #define WIN_STAGE_C
  3.  
  4. #include <evo.h>
  5. #include "font.c"
  6. #include "gameloop.c"
  7. #include "engine.c"
  8.  
  9. void win_stage()
  10. {
  11. u16 curscroll = 1;
  12. i16 curdscroll = 1;
  13. u16 cycles = 256*6;
  14. preparescroll("final-16.bmp");
  15.     music_play(MUS_WIN);
  16.     pal_bright(BRIGHT_MIN);    
  17.     scroll(0, 0);
  18.     unpack_pal256(PAL256_FINAL, 0);
  19.     //draw_image_g256(0, 0, IMG256_FINAL);
  20.     pal_bright(BRIGHT_MID);
  21. swap_screen();
  22.  
  23.     for (;cycles!=0;cycles--) {
  24. scroll(0, 512-240+curscroll);
  25. drawscroll();
  26. if ((curscroll==0)||(curscroll==40)) curdscroll = -curdscroll;
  27. curscroll+=curdscroll;
  28.         swap_screen_scroll();
  29.     }
  30.  
  31.     init_text();
  32.     text_y = 11/*14*/;
  33.     text_x = 15;
  34.     put_str("You win!\n");
  35.     text_x = 12;
  36.     put_str("Your score: ");
  37.     put_num(score);
  38.     text_x = 1;
  39.     text_y += 2;
  40.     put_str("This is party version of\n\"Lost Donation Box Incident\" game.\n\n Thank you for playing!\n\n Have a nice days on CAFe DEMOPARTY 2019 \n\nYou may support development via PayPal:\n\n           anihirash@gmail.com");
  41. swap_screen();
  42.     for (i = 0; i < 200; i++)
  43.         vsync();//swap_screen();
  44.  
  45.     while (TRUE)
  46.     {
  47.         keyboard(keys);
  48.         if (keys[FIRE])
  49.         {
  50.             while (keys[FIRE])
  51.                 keyboard(keys);
  52.             state = STATE_MENU;
  53.             break;
  54.         }
  55.     }
  56. }
  57.  
  58. #endif