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

Last change on this file since 884 was 480, checked in by sz, 9 years ago

experiment scripts updated to match the upcoming Framsticks version (ExpParams? ==> ExpProperties?, Fields ==> NeuroProperties?, prop: ==> property)

File size: 954 bytes
RevLine 
[231]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
[480]4// 3. function nextLevel() that puts into ExpProperties.level variable the value of next level's index (or -1 if random)
[231]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.