forked from mahsu/MariOCaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actors.ml
64 lines (55 loc) · 841 Bytes
/
actors.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
type dir_1d = | Left | Right
type dir_2d = | North | South | East | West
type xy = {
mutable x: float;
mutable y: float;
}
type controls =
| CLeft
| CRight
| CUp
| CDown
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
type player_typ =
| Standing
| Jumping
| Running
| Crouching
type part_typ =
| GoombaSquish
| BrickChunkL
| BrickChunkR
| Score100
| Score200
| Score400
| Score800
| Score1000
| Score2000
| Score4000
| Score8000
type spawn_typ =
| SPlayer of pl_typ * player_typ
| SEnemy of enemy_typ
| SItem of item_typ
| SBlock of block_typ