Advertisement
Guest User

Untitled

a guest
Jun 25th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. var ww = sprite_width;
  2. var choice = choose(0,1,2);
  3. var lastchoice = choice;
  4.  
  5. var inst = instance_create_depth(x,y,depth,obj_room);
  6. inst.image_blend = c_blue;
  7. x+= ww;
  8. instance_create_depth(x,y,depth,obj_room);
  9.  
  10. rooms = 7+global.level;
  11.  
  12. if (global.level mod 5 == 0) {
  13. rooms = 0;
  14. }
  15.  
  16. for (var i = 0; i < rooms; i ++) {
  17. choice = choose(0,0,1,2);
  18. if (lastchoice == 0) {
  19. choice = choose(0,1,2);
  20. }
  21. if (lastchoice == 1) {
  22. choice = choose(0,0,1);
  23. }
  24. if (lastchoice == 2) {
  25. choice = choose(0,0,2);
  26. }
  27.  
  28. switch (choice) {
  29. case 0: x += ww; break;
  30. case 1: y += ww; break;
  31. case 2: y -= ww; break;
  32. }
  33. instance_create_depth(x,y,depth,obj_room);
  34. lastchoice = choice;
  35. }
  36. x += ww;
  37. var inst = instance_create_depth(x,y,depth,obj_room);
  38. inst.image_blend = c_red;
  39.  
  40. alarm[0] = 4;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement