Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _root.LoadCourseFromCode = function(code)
- {
- trace("Load from Code");
- _root.RemoveLevelDesigner();
- _root.TileArray = [];
- _root.GridXSize = 50;
- _root.GridYSize = 30;
- _root.LDItemArray = [];
- avar = "";
- code = code.split("~");
- _root.GridXSize = Number(code[0].split("x")[0]);
- _root.GridYSize = Number(code[0].split("x")[1]);
- _root.LDMusic = Number(code[3]);
- _root.LDCourseBG = Number(code[4]);
- _root.LDCourseName = String(code[5]);
- _root.TileArray = _root.ExpandNumbers(code[1]);
- _root.LDItemArray = code[2].split("|");
- i = 0;
- while(i < _root.LDItemArray.length)
- {
- _root.LDItemArray[i] = _root.LDItemArray[i].split(",");
- i++;
- }
- MaxX = _root.GridXSize;
- MaxY = _root.GridYSize;
- _root.CreateLevelDesigner();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement