-
Notifications
You must be signed in to change notification settings - Fork 110
/
actors.mli
77 lines (66 loc) · 1.07 KB
/
actors.mli
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
type dir_1d = | Left | Right
type dir_2d = | North | South | East | West
(* Generic xy record for easy position access *)
type xy = {
mutable x: float;
mutable y: float;
}
(* Controls correspond to keyboard input *)
type controls =
| CLeft
| CRight
| CUp
| CDown
(* Player ability type *)
type pl_typ =
| BigM
| SmallM
type item_typ =
| Mushroom
| FireFlower
| Star
| Coin
type enemy_typ =
| Goomba
| GKoopa
| RKoopa
| GKoopaShell
| RKoopaShell
type block_typ =
| QBlock of item_typ
| QBlockUsed
| Brick
| UnBBlock
| Cloud
| Panel
| Ground
(* Player action type *)
type player_typ =
| Standing
| Jumping
| Running
| Crouching
(* Particle Type *)
type part_typ =
| GoombaSquish
| BrickChunkL
| BrickChunkR
| Score100
| Score200
| Score400
| Score800
| Score1000
| Score2000
| Score4000
| Score8000
(*type unbblock_typ =
| Wood
| Earth
| Brick
| *)
type spawn_typ =
| SPlayer of pl_typ * player_typ
| SEnemy of enemy_typ
| SItem of item_typ
| SBlock of block_typ
(*| SGround of ground_typ*)