Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. stage {
  2. default backdrop Víz_Felülről("gallery:Nature/Water Above")
  3. let alist = [ ];
  4. let blist = [ ];
  5. let clist = [ ];
  6. let start1 = [ ];
  7. let puzzle = [ ];
  8. let steps = 0;
  9.  
  10. function swap(p){
  11. for(let i = 1;i <= 10; i++){
  12. let rand1 = 0;
  13. let rand2 = 0;
  14. let temp = 0;
  15. rand1 = Math.randomBetween(0, 4);
  16. rand2 = Math.randomBetween(5, 8);
  17. temp = p[rand1];
  18. p[rand1] = p[rand2];
  19. }
  20. }
  21.  
  22. actor Player {
  23. default costume Kék_Alap("gallery:Vehicles/Yacht Blue Idle")
  24. costume Zöld_Alap("gallery:Vehicles/Yacht Green Idle")
  25. costume Piros_Alap("gallery:Vehicles/Yacht Red Idle")
  26. }
  27.  
  28. actor Puzzle {
  29. default costume Kék_Alap("gallery:Vehicles/Yacht Blue Idle")
  30. costume Zöld_Alap("gallery:Vehicles/Yacht Green Idle")
  31. costume Piros_Alap("gallery:Vehicles/Yacht Red Idle")
  32.  
  33. when stage.started{
  34. showVariable(ref steps);
  35. this.hide();
  36. steps = 0;
  37. alist = 0;
  38. blist = 0;
  39. clist = 0;
  40. start1 = 0;
  41. puzzle = 0;
  42. this.size = 20;
  43. this.hide();
  44. for(let i = 1; i <= 9; i++){
  45. puzzle.push(i % 3 + 1);
  46. }
  47. //swap(puzzle);
  48. }
  49. }
  50.  
  51. actor Deszka {
  52. default costume Vízszintes("gallery:Objects/Board Horizontal")
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement