-
Notifications
You must be signed in to change notification settings - Fork 0
/
objects.js
74 lines (70 loc) · 1.14 KB
/
objects.js
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
oP=[];
oP[oP.length]={
type: "unit",
name: "human",
width: 0.4,
height: 1.8,
xAccI: 0.006,
xAccD: 0.02,
xAccMax: 0.1,
yAccJump: 0.2,
yAccFall: 0.01,
yAccMax: 0.4
};
oP[oP.length]={
type: "projectile",
texture: "arrow",
width: .15,
height: .15,
xAccD: 0.001,
xAccMax: 0.4,
yAccMax: 0.4,
yAccFall: 0.01
}
oP[oP.length]={
type: "projectile",
name: "fireball",
texture: "fireball",
width: .7,
height: .7,
xAccD: 0.00,
xAccMax: 0.3,
yAccMax: 0.3,
yAccFall: 0.00
};
oP[oP.length]={
name: "rat",
type: "unit",
width: .5,
height: .2,
xAccI: 0.003,
xAccD: 0.01,
xAccMax: 0.09,
yAccMax: 0.4,
yAccJump: 0.1,
yAccFall: 0.01
};
oP[oP.length]={
name: "point",
type: "unit",
width: .1,
height: .1,
xAccI: 0,
xAccD: 0,
xAccMax: 0.5,
yAccMax: 0.5,
yAccJump: 0,
yAccFall: 0
}
o=[];
o[o.length]={
object: 0,
name: "player",
status: "asd",
x: 0,
y: 0,
xAcc: 0,
yAcc: 0,
buffs: [
]
};