Mewkyuu

library

Aug 14th, 2011
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. let nimonoSGR = 0;
  2. let nimonodrawloopnextrect = 0; let nimonodrawlooprectsetnext = 5;
  3. let nimonodrawlooprectteleportframe = 0;
  4. let nimonodrawlooprectregmoveframe = 0;
  5. let nimonodrawlooprectattackframe = 0;
  6. let nimonodrawlooprectmode = 0;
  7. @DrawLoop {
  8. if(nimonodrawlooprectmode != [[[0,1][nimonodrawlooprectattackframe>0],2][nimonodrawlooprectregmoveframe>0],3][nimonodrawlooprectteleportframe>0]) { nimonoSGR=0; }
  9. SetTexture(nimonobosstexture);
  10. if(nimonodrawlooprectmode != 2) { SetGraphicScale(1, 1); }
  11. if(nimonodrawloopnextrect == 0){
  12. alternative(nimonodrawlooprectmode)
  13. case(1) { alternative(nimonoSGR)
  14. case(0) { SetGraphicRect(0, 128, 128, 256); }
  15. case(1) { SetGraphicRect(128, 128, 256, 256); }
  16. case(2) { SetGraphicRect(256, 128, 384, 256); }
  17. case(3) { SetGraphicRect(384, 128, 512, 256); nimonoSGR-=2;}
  18. if(nimonodrawlooprectattackframe==1) { SetGraphicRect(128, 128, 256, 256); }
  19. nimonoSGR++;
  20. }
  21. case(2) { alternative(nimonoSGR)
  22. case(0) { SetGraphicRect(0, 384, 128, 512); }
  23. case(1) { SetGraphicRect(128, 384, 256, 512); }
  24. case(2) { SetGraphicRect(256, 384, 384, 512); nimonoSGR-=2; }
  25. if(nimonodrawlooprectattackframe==1) { SetGraphicRect(0, 384, 128, 512); }
  26. if(GetSpeedX<0) { SetGraphicScale(1, 1); }
  27. else { SetGraphicScale(-1, 1); }
  28. nimonoSGR++;
  29. }
  30. case(3) { alternative(nimonoSGR)
  31. case(0,14) { SetGraphicRect(0, 128, 128, 256); }
  32. case(1,13) { SetGraphicRect(128, 128, 256, 256); }
  33. case(2,12) { SetGraphicRect(256, 128, 384, 256); }
  34. case(3,11) { SetGraphicRect(0, 256, 128, 384); }
  35. case(4,10) { SetGraphicRect(128, 256, 256, 384); }
  36. case(5,9) { SetGraphicRect(256, 256, 384, 384); }
  37. case(6,8) { SetGraphicRect(384, 256, 512, 384); }
  38. case(7) { SetGraphicRect(384, 384, 512, 512); }
  39. nimonoSGR++;
  40. }
  41. others { alternative(nimonoSGR)
  42. case(0, 2, 4, 6, 8) { SetGraphicRect(0, 0, 128, 128); }
  43. case(1, 5, 9) { SetGraphicRect(128, 0, 256, 128); }
  44. case(3, 7, 11) { SetGraphicRect(256, 0, 384, 128); }
  45. case(10) { SetGraphicRect(384, 0, 512, 128); }
  46. nimonoSGR++; nimonoSGR%=12;
  47. }
  48. }
  49. DrawGraphic(GetX, GetY);
  50. nimonodrawlooprectmode = [[[0,1][nimonodrawlooprectattackframe>0],2][nimonodrawlooprectregmoveframe>0],3][nimonodrawlooprectteleportframe>0];
  51. nimonodrawloopnextrect++; nimonodrawloopnextrect%=nimonodrawlooprectsetnext;
  52. if(nimonodrawlooprectattackframe > 0) { nimonodrawlooprectattackframe--; }
  53. if(nimonodrawlooprectregmoveframe > 0) { nimonodrawlooprectregmoveframe--; }
  54. if(nimonodrawlooprectteleportframe > 0) { if(nimonoSGR>=15) { nimonodrawlooprectteleportframe*=0; } }
  55. if(nimonodrawlooprectattackframe < 0) { nimonodrawlooprectattackframe = 0; }
  56. if(nimonodrawlooprectteleportframe < 0) { nimonodrawlooprectteleportframe = 0; }
  57. if(nimonodrawlooprectregmoveframe < 0) { nimonodrawlooprectregmoveframe = 0; }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment