-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtiles.js
130 lines (116 loc) · 2.98 KB
/
tiles.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Game.Tile.nullTile = new Game.Tile({})
Game.Tile.floorTile = new Game.Tile({
character: '.',
background: Game.Colors.floorColor,
walkable: true,
blocksLight: false,
description: 'a cave floor'
});
Game.Tile.rubbleTile = new Game.Tile({
character: ',',
background: Game.Colors.floorColor,
walkable: true,
blocksLight: false,
description: 'a small pile of rubble'
});
Game.Tile.bloodTile = new Game.Tile({
character: '.',
foreground: Game.Colors.red,
background: Game.Colors.floorColor,
walkable: true,
blocksLight: false,
description: 'a pool of blood'
});
Game.Tile.altarTile = new Game.Tile({
character: '|',
foreground: "#fff",
background: Game.Colors.charcoalColor,
walkable: true,
blocksLight: false,
description: 'an altar where you can charge a magic item'
});
Game.Tile.wallTile = new Game.Tile({
character: '#',
foreground: Game.Colors.charcoalColor,
background: Game.Colors.wallColor,
diggable: true,
description: 'a stone wall',
vary: true
});
Game.Tile.stairsDownTile = new Game.Tile({
character: '>',
foreground: Game.Colors.yellow,
walkable: true,
blocksLight: false,
description: 'a staircase leading downward'
});
Game.Tile.stairsDownTileLocked = new Game.Tile({
character: '>',
foreground: Game.Colors.yellow,
background: Game.Colors.doorColor,
walkable: true,
blocksLight: false,
description: 'a locked trapdoor leading downward'
});
Game.Tile.waterTile = new Game.Tile({
character: '~',
foreground: '#2191fb',
walkable: false,
blocksLight: false,
description: 'deep water',
isWater: true
});
Game.Tile.shallowWaterTile = new Game.Tile({
character: '.',
foreground: '#fff',
background: '#2A94E0',
walkable: true,
blocksLight: false,
description: 'a pool of shallow water',
isWater: true
});
Game.Tile.doorTile = new Game.Tile({
character: '+', //'
foreground: '#FFF',
background: Game.Colors.doorColor,
walkable: true,
unthrowable: false,
blocksLight: true,
diggable: true,
description: 'a closed door'
});
Game.Tile.openDoorTile = new Game.Tile({
character: '-', //'
foreground: '#FFF',
background: Game.Colors.doorColor,
walkable: true,
blocksLight: false,
diggable: true,
description: 'an open door'
});
Game.Tile.grassTile = new Game.Tile({
character: '"',
foreground: Game.Colors.green,
background: Game.Colors.floorColor,
walkable: true,
blocksLight: false,
flammable: true,
description: 'a patch of grass'
});
Game.Tile.fernTile = new Game.Tile({
character: '\u01AA',
foreground: Game.Colors.green,
background: Game.Colors.floorColor,
walkable: true,
blocksLight: true,
flammable: true,
description: 'a tall fern',
vary: true
});
Game.Tile.ashTile = new Game.Tile({
character: ',',
foreground: "#777777",
walkable: true,
blocksLight: false,
description: "ash"
});