This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
npcs.js
106 lines (87 loc) · 2.52 KB
/
npcs.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
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
define(['npc'], function(Npc) {
var NPCs = {
Guard: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.GUARD, 1);
}
}),
King: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.KING, 1);
}
}),
Agent: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.AGENT, 1);
}
}),
Rick: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.RICK, 1);
}
}),
VillageGirl: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.VILLAGEGIRL, 1);
}
}),
Villager: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.VILLAGER, 1);
}
}),
Coder: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.CODER, 1);
}
}),
Scientist: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.SCIENTIST, 1);
}
}),
Nyan: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.NYAN, 1);
this.idleSpeed = 50;
}
}),
Sorcerer: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.SORCERER, 1);
this.idleSpeed = 150;
}
}),
Priest: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.PRIEST, 1);
}
}),
BeachNpc: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.BEACHNPC, 1);
}
}),
ForestNpc: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.FORESTNPC, 1);
}
}),
DesertNpc: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.DESERTNPC, 1);
}
}),
LavaNpc: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.LAVANPC, 1);
}
}),
Octocat: Npc.extend({
init: function(id) {
this._super(id, Types.Entities.OCTOCAT, 1);
}
})
};
return NPCs;
});