Lavalake

Rumia Test

Jul 22nd, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. task mainTask{
  2. wait(120);
  3. let count = 0;
  4. loop{
  5. let dir = GetAngleToPlayer - 8;
  6. let v = 0;
  7. loop(16){
  8. Bullet(GetX,GetY+20,1+v,dir,43);
  9. Bullet(GetX,GetY+20,2+v,dir,43);
  10. dir+=8;
  11. v+=0.3;
  12. wait(0.5);
  13. }
  14. let v = 0;
  15. let dir = GetAngleToPlayer + 8;
  16. loop(16){
  17. Bullet(GetX,GetY+20,1+v,dir,43);
  18. Bullet(GetX,GetY+20,2+v,dir,43);
  19. dir-=8;
  20. v+=0.3;
  21. wait(0.5);
  22. }
  23. if(count==0){ let dir = 0; }
  24. if(count==1){ let dir = 11.25; }
  25. loop(16){
  26. Bullet(GetX+10,GetY-30,1,dir,51);
  27. dir+=360/16;
  28. }
  29. wait(15);
  30. loop(16){
  31. Bullet(GetX+10,GetY-30,1,dir,51);
  32. dir+=360/16;
  33. }
  34. count++;
  35. if(count==2){ count=0; }
  36. SetMovePosition03(rand_int(GetClipMinX+75,GetClipMaxX-75),rand_int(GetClipMinY+75,GetCenterY), 8, 2);
  37. wait(120);
  38. }
  39. }
  40.  
  41. task Bullet(x, y, v, angle, g) {
  42. let obj=Obj_Create(OBJ_SHOT);
  43. PlaySE(Shot1);
  44.  
  45. Obj_SetPosition(obj, x, y);
  46. Obj_SetAngle(obj, angle);
  47. Obj_SetSpeed(obj, v);
  48. ObjShot_SetGraphic(obj, g); //43 51
  49. ObjShot_SetDelay (obj, 0);
  50. ObjShot_SetBombResist (obj, true);
  51.  
  52. }
  53.  
  54. // wait function
  55. function wait(w){
  56. loop(w){yield;}
  57. }
Advertisement
Add Comment
Please, Sign In to add comment