source: experiments/frams/deathmatch/data/scripts/deathmatch-levels.inc @ 231

Last change on this file since 231 was 231, checked in by sz, 10 years ago

Deathmatch experiment - http://www.framsticks.com/deathmatch

File size: 950 bytes
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 ExpParams.level variable the value of next level's index (or -1 if random)
5
6// descriptions of game levels
7global levels;
8
9function 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.