SHOW:
|
|
- or go back to the newest paste.
1 | /// -----------------CREATE OBJMAINLEVEL----------- | |
2 | ||
3 | enemies[0, 0] = objGoblin; // enemy to spawn | |
4 | enemies[0, 1] = 30; // amount | |
5 | ||
6 | arrPaths[0] = path0; | |
7 | arrPaths[1] = path1; | |
8 | arrPaths[2] = path2; | |
9 | arrPaths[3] = path3; | |
10 | arrPaths[4] = path4; | |
11 | arrPaths[5] = path5; | |
12 | arrPaths[6] = path6; | |
13 | arrPaths[7] = path7; | |
14 | arrPaths[8] = path8; | |
15 | arrPaths[9] = path9; | |
16 | arrPaths[10] = path10; | |
17 | arrPaths[11] = path11; | |
18 | arrPaths[12] = path12; | |
19 | arrPaths[13] = path13; | |
20 | arrPaths[14] = path14; | |
21 | arrPaths[15] = path15; | |
22 | arrPaths[16] = path16; | |
23 | arrPaths[17] = path17; | |
24 | arrPaths[18] = path18; | |
25 | arrPaths[19] = path19; | |
26 | arrPaths[20] = path20; | |
27 | arrPaths[21] = path21; | |
28 | arrPaths[22] = path22; | |
29 | arrPaths[23] = path23; | |
30 | arrPaths[24] = path24; | |
31 | arrPaths[25] = path25; | |
32 | arrPaths[26] = path26; | |
33 | arrPaths[27] = path27; | |
34 | arrPaths[28] = path28; | |
35 | arrPaths[29] = path29; | |
36 | arrPaths[30] = path30; | |
37 | ||
38 | myLevelNumber = 1; | |
39 | currentLevelEnemies = 0; // only for printing current/max creeps text | |
40 | currentEnemies = 0; | |
41 | - | maxEnemies = 0; |
41 | + | maxEnemies = 200; |
42 | - | timer_set=false; |
42 | + | timer_set=true; |
43 | - | displayWaveTimer=false; |
43 | + | displayWaveTimer=true; |
44 | ||
45 | for(var i=0; i < array_height_2d(enemies); ++i){ | |
46 | maxEnemies = enemies[i,1]; | |
47 | } | |
48 | ||
49 | arraySpot = 0; | |
50 | spawnRate = 10; //60 | |
51 | alarm[0] = spawnRate; //1140 | |
52 | ||
53 | //instance_create_layer(x, y, layer, objTowerMaker); | |
54 | //create player | |
55 | with(instance_create_layer(x,y,layer,objPlayer)){ | |
56 | - | maxHealth = 20; |
56 | + | maxHealth = 100; |
57 | currentHealth = maxHealth; | |
58 | gold = 250; | |
59 | - | gems = 0; |
59 | + | gems = 5; |
60 | } |