Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage {
- default backdrop Víz_Felülről("gallery:Nature/Water Above")
- let alist = [ ];
- let blist = [ ];
- let clist = [ ];
- let start1 = [ ];
- let puzzle = [ ];
- let steps = 0;
- function swap(p){
- for(let i = 1;i <= 10; i++){
- let rand1 = 0;
- let rand2 = 0;
- let temp = 0;
- rand1 = Math.randomBetween(0, 4);
- rand2 = Math.randomBetween(5, 8);
- temp = p[rand1];
- p[rand1] = p[rand2];
- }
- }
- actor Player {
- default costume Kék_Alap("gallery:Vehicles/Yacht Blue Idle")
- costume Zöld_Alap("gallery:Vehicles/Yacht Green Idle")
- costume Piros_Alap("gallery:Vehicles/Yacht Red Idle")
- }
- actor Puzzle {
- default costume Kék_Alap("gallery:Vehicles/Yacht Blue Idle")
- costume Zöld_Alap("gallery:Vehicles/Yacht Green Idle")
- costume Piros_Alap("gallery:Vehicles/Yacht Red Idle")
- when stage.started{
- showVariable(ref steps);
- this.hide();
- steps = 0;
- alist = 0;
- blist = 0;
- clist = 0;
- start1 = 0;
- puzzle = 0;
- this.size = 20;
- this.hide();
- for(let i = 1; i <= 9; i++){
- puzzle.push(i % 3 + 1);
- }
- //swap(puzzle);
- }
- }
- actor Deszka {
- default costume Vízszintes("gallery:Objects/Board Horizontal")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement