Line | |
---|
1 | // if you want to create levels file of your own make sure it implements:
|
---|
2 | // 1. global variable levels
|
---|
3 | // 2. function initLevels() that initializes levels structure
|
---|
4 | // 3. function nextLevel() that puts into ExpProperties.level variable the value of next level's index (or -1 if random)
|
---|
5 |
|
---|
6 | // descriptions of game levels
|
---|
7 | global levels;
|
---|
8 |
|
---|
9 | function initLevels(){
|
---|
10 | // define available levels
|
---|
11 | // fields in an level array are:
|
---|
12 | // 1: name,
|
---|
13 | // 2: world size,
|
---|
14 | // 3: world band,
|
---|
15 | // 4: world type,
|
---|
16 | // 5: world map,
|
---|
17 |
|
---|
18 | levels = Vector.new();
|
---|
19 | // #1
|
---|
20 | levels.add([
|
---|
21 | "Small arena",
|
---|
22 | 50,
|
---|
23 | 2,
|
---|
24 | 0,
|
---|
25 | ""
|
---|
26 | ]);
|
---|
27 |
|
---|
28 | // #1
|
---|
29 | levels.add([
|
---|
30 | "Medium arena",
|
---|
31 | 65,
|
---|
32 | 2,
|
---|
33 | 0,
|
---|
34 | ""
|
---|
35 | ]);
|
---|
36 |
|
---|
37 | // #1
|
---|
38 | levels.add([
|
---|
39 | "Large arena",
|
---|
40 | 80,
|
---|
41 | 2,
|
---|
42 | 0,
|
---|
43 | ""
|
---|
44 | ]);
|
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.