-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsprites.ml
148 lines (127 loc) · 3.94 KB
/
sprites.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
open Types
let player = {
id = 0;
name = Player;
action = Stand;
size = (10., 10.);
speed = 8.;
location = {coordinate = (2.*.26., 0.); room = "start"};
health = (100., 100.);
kill_count = 0;
direction = South;
moves = [{id = "sword"; unlocked = true; frame = 5}];
moving = false;
params = {
img = "sprites/spritesheet.png";
frame_size = (20., 20.);
offset = (0., 0.);
};
counter = 0;
max_count = 10;
frame_count = 1;
max_frame = 1;
image = "sprites/spritesheet.png";
has_won = false;
}
let enemy1 = {
id = 1;
name = Enemy Blind;
action = Stand;
size = (15., 15.);
speed = 1.;
location = {coordinate = (26.*.2., 26.*.3.); room = "start"};
health = (1., 1.);
kill_count = 0;
direction = North;
moves = [{id = "sword"; unlocked = false; frame = 5}];
moving = false;
params = {
img = "sprites/enemysprites.png";
frame_size= (12.,16.);
offset = (133., 91.);
};
counter = 0;
max_count = 0;
frame_count = 0;
max_frame = 1;
image = "sprites/enemysprites.png";
has_won = false;
}
let enemy_stationary = {enemy1 with name = Enemy Random}
let enemy2 = {enemy1 with location = {coordinate = (26. *. 6., 8. *. 26.);
room = "room1";};
id = 2}
let enemy3 =
{enemy1 with location = {coordinate = (26. *. 6., 4. *. 26.);
room = "room1";};
id = 3}
let enemy4 =
{enemy1 with location = {coordinate = (26. *. 10., 6. *. 26.);
room = "room1";};
id = 4}
let enemy5 =
{enemy1 with location = {coordinate = (26. *. 14., 4. *. 26.);
room = "room1";};
id = 5;
name = Enemy Coop}
let enemy6 =
{enemy1 with location = {coordinate = (26. *. 20., 12. *. 26.);
room = "room2";};
id = 6;
name = Enemy Coop}
let enemy7 =
{enemy1 with location = {coordinate = (26. *. 20., 15. *. 26.);
room = "room2";};
id = 7;
name = Enemy Coop}
let enemy8 =
{enemy1 with location = {coordinate = (26. *. 22., 3. *. 26.);
room = "room2";};
id = 8;
name = Enemy Coop}
let enemy9 =
{enemy1 with location = {coordinate = (26. *. 22., 20. *. 26.);
room = "room2";};
id = 9;
name = Enemy Coop}
let enemy10 =
{enemy1 with location = {coordinate = (26. *.22., 9. *. 26.);
room = "room2";};
id = 10;
name = Enemy Coop}
let enemy11 =
{enemy1 with location = {coordinate = (26. *. 19., 1. *. 26.);
room = "room2";};
id = 11;
name = Enemy Coop}
let enemy12 =
{enemy1 with location = {coordinate = (26. *. 23., 21. *. 26.);
room = "room2";};
id = 12;
name = Enemy Coop}
let enemy13 =
{enemy1 with location = {coordinate = (26. *. 24., 4. *. 26.);
room = "room2";};
id = 13;
name = Enemy Coop}
let enemy14 =
{enemy1 with location = {coordinate = (26. *. 24., 15. *. 26.);
room = "room2";};
id = 14;
name = Enemy Coop}
let enemy15 =
{enemy1 with location = {coordinate = (26. *. 24., 2. *. 26.);
room = "room2";};
id = 15;
name = Enemy Coop}
let enemy16 =
{enemy1 with location = {coordinate = (26. *. 27., 9. *. 26.);
room = "room2";};
id = 16;
name = Enemy Boss;
health = (100., 100.);
speed = 0.5;
}
let enemy17 =
{enemy1 with location = {coordinate = (24.*.26., 12.*.26.); room = "room2"};
id = 17}