-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtiledata.js
More file actions
183 lines (175 loc) · 9.42 KB
/
tiledata.js
File metadata and controls
183 lines (175 loc) · 9.42 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
tileTypes = {
null: { hidden:true },
"grass_floor": { texture: "grass_floor.png", randRot:true, under:"dirt_floor" },
"dirt_floor": { texture: "dirt_floor.png", randRot:true, under:["stone_floor"] },
"dirt": { texture: "dirt.png", randRot:true, under:"dirt_floor" },
"sand_floor": { texture: "sand_floor.png", randRot:true, under:["wet_sand_floor"] },
"wet_sand_floor": { texture: "wet_sand_floor.png", randRot:true, under:["sandstone_floor"] },
"stone": {
texture: "stone.png", under:"stone_floor", border:1,
onUpdate: function(tile,x,y) {
var newSides = "";
for (let dir in dirCoords) {
let nx = x + dirCoords[dir][0];
let ny = y + dirCoords[dir][1];
if (solidTypes[tileTypes[getTile(nx,ny).id].type]) {
newSides += dir;
}
}
if (newSides.length===0) { newSides = "none" }
tile.sides = newSides;
getChunk(x,y);
}
},
"stone_floor": { texture: "stone_floor.png", under:"stone_floor" },
"stone_ceiling": { texture: "stone.png", type:"ceiling", hidden:true },
"rough_rock_floor": { texture: "rough_rock_floor.png", unbreakable:true, hidden:true },
"gravel_floor": { texture: "gravel_floor.png", randRot:true, under:["stone_floor"] },
"tree": { texture: "tree.png", scale:1.5 },
"shadow": { texture: "shadow.png", type:"effect", hidden:true },
//"water": { texture: ["water/1.png","water/2.png","water/3.png","water/4.png","water/5.png","water/6.png","water/7.png","water/8.png"], animTicks: 5, type:"liquid", under:"wet_sand_floor" },
"water": { texture: "water.png", animTicks: 5, type:"liquid", under:"wet_sand_floor", flow:0.25 },
"bush": { texture: "bush.png" },
"berry_bush": { texture: "berry_bush.png" },
"small_rock": { texture: "small_rock.png", type:"item", randRot:true },
"stick": { texture: "stick.png", type:"item" },
"stick_pile": { texture: "stick_pile.png" },
"flowers": { texture: "flowers/assorted.png", type:"floor", randRot:true },
"red_flowers": { texture: "flowers/red.png", type:"floor", randRot:true },
"cyan_flowers": { texture: "flowers/cyan.png", type:"floor", randRot:true },
"pink_flowers": { texture: "flowers/pink.png", type:"floor", randRot:true },
"white_flowers": { texture: "flowers/white.png", type:"floor", randRot:true },
"yellow_flowers": { texture: "flowers/yellow.png", type:"floor", randRot:true },
"clovers": { texture: "clovers.png", type:"floor", randRot:true },
"grass_patch": { texture: "grass_patch.png", type:"floor", randRot:true },
"large_rock": { texture: "large_rock.png", randRot:true },
"lichen": { texture: "lichen.png", type:"floor", randRot:true },
"moss": { texture: "moss.png", type:"floor", randRot:true },
"log": { texture: "log.png" },
"asphalt_floor": { texture: "asphalt_floor.png" },
"autumn_tree": { texture: "autumn_tree.png", scale:1.5 },
"dead_tree": { texture: "dead_tree.png", scale:1.5 },
"campfire": { texture: ["campfire/1.png","campfire/2.png","campfire/3.png","campfire/4.png"], animTicks: 1 },
"fire": { texture: ["fire/1.png","fire/2.png","fire/3.png","fire/4.png"], animTicks: 1, type:"effect" },
"brick_floor": { texture: "brick_floor.png", type:"floor" },
"brick_pile": { texture: "brick_pile.png" },
"brick_wall": { texture: "brick_wall.png", type:"wall" },
"brick": { texture: "brick.png", type:"item" },
"charcoal_pile": { texture: "charcoal_pile.png" },
"cinder_block": { texture: "cinder_block.png", type:"item" },
"cinder_pile": { texture: "cinder_pile.png" },
"cinder_wall": { texture: "cinder_wall.png", type:"wall" },
"concrete_floor": { texture: "concrete_floor.png", type:"floor" },
"concrete_wall": { texture: "concrete_wall.png", type:"wall" },
"dead_grass_floor": { texture: "dead_grass_floor.png", type:"floor" },
// lichen_floor.pnglog_fence.pnglog_floor.pnglog_pile.pnglog_wall.pngmoss_floor.pngmulch_floor.pngrock_fence.pngrock_floor.pngrock_pile.pngstepping_stone.pngstump.png
"lichen_floor": { texture: "lichen_floor.png", type:"floor" },
"log_fence": { texture: "log_fence.png", type:"wall" },
"log_floor": { texture: "log_floor.png", type:"floor" },
"log_pile": { texture: "log_pile.png" },
"log_wall": { texture: "log_wall.png", type:"wall" },
"moss_floor": { texture: "moss_floor.png", type:"floor" },
"mulch_floor": { texture: "mulch_floor.png", type:"floor" },
"rock_fence": { texture: "rock_fence.png", type:"wall" },
"rock_floor": { texture: "rock_floor.png", type:"floor" },
"rock_pile": { texture: "rock_pile.png" },
"stepping_stone": { texture: "stepping_stone.png", type:"floor" },
"stump": { texture: "stump.png" },
"wood_fence_gate": { texture: "wood_fence_gate/closed.png", openTexture:"wood_fence_gate/open.png", type:"door" },
"mud_brick_floor": { texture: "mud_brick_floor.png", type:"floor" },
"mud_brick_pile": { texture: "mud_brick_pile.png" },
"mud": { texture: "mud.png", type:"liquid", randRot:true },
"mud_hole": { texture: "mud_hole.png", type:"floor" },
"mud_pile": { texture: "mud_pile.png" },
"mud_brick_wall": { texture: "mud_brick_wall.png", type:"wall" },
"mud_brick": { texture: "mud_brick.png", type:"item" },
"wet_sand_pile": { texture: "wet_sand_pile.png" },
"wood_fence": { texture: "wood_fence.png", type:"wall" },
"wood_floor": { texture: "wood_floor.png", type:"floor" },
"wood_plank_pile": { texture: "wood_plank_pile.png" },
"wood_plank": { texture: "wood_plank.png", type:"item" },
"wood_rubble": { texture: "wood_rubble.png", type:"floor" },
"wood_wall": { texture: "wood_wall.png", type:"wall" },
"sandcastle": { texture: "sandcastle.png" },
"sandstone_brick_pile": { texture: "sandstone_brick_pile.png" },
"sandstone_brick_wall": { texture: "sandstone_brick_wall.png", type:"wall" },
"sandstone_brick": { texture: "sandstone_brick.png", type:"item" },
"sandstone_floor": { texture: "sandstone_floor.png", type:"floor", under:"stone_floor" },
"sandstone": { texture: "sandstone.png", type:"wall", under:"sandstone_floor", border:1,
onUpdate: function(tile,x,y) {
var newSides = "";
for (let dir in dirCoords) {
let nx = x + dirCoords[dir][0];
let ny = y + dirCoords[dir][1];
if (solidTypes[tileTypes[getTile(nx,ny).id].type]) {
newSides += dir;
}
}
if (newSides.length===0) { newSides = "none" }
tile.sides = newSides;
getChunk(x,y);
}
},
"manhole_cover": { texture: "manhole_cover/closed.png", type:"floor" },
"mailbox": { texture: "mailbox/mailbox.png" },
"autumn_leaf": { texture: "autumn_leaf.png", type:"item" },
"autumn_leaf_floor": { texture: "autumn_leaf_floor.png", type:"floor" },
"autumn_leaf_pile": { texture: "autumn_leaf_pile.png" },
"autumn_leaf_wall": { texture: "autumn_leaf_wall.png", type:"wall" },
"dirt_pile": { texture: "dirt_pile.png" },
"fire_hydrant": { texture: "fire_hydrant.png" },
"fungus_floor": { texture: "fungus_floor.png", type:"floor" },
"fungus_wall": { texture: "fungus_wall.png", type:"wall" },
"glass_wall": { texture: "glass_wall.png", type:"wall" },
"hedge": { texture: "hedge.png", type:"wall" },
"hole": { texture: "hole.png", type:"floor" },
"leaf_floor": { texture: "leaf_floor.png", type:"floor" },
"leaf_pile": { texture: "leaf_pile.png" },
"leaf_wall": { texture: "leaf_wall.png", type:"wall" },
"leaf": { texture: "leaf.png", type:"item" },
"mushroom_floor": { texture: "mushroom_floor.png", type:"floor" },
"mushroom_wall": { texture: "mushroom_wall.png", type:"wall" },
"mushroom": { texture: "mushroom.png", type:"item", scale:0.8 },
"pinecone": { texture: "pinecone.png", type:"item", scale:0.6 },
"tombstone": { texture: "tombstone.png" },
"round_tombstone": { texture: "round_tombstone.png" },
"salt": { texture: "salt.png", type:"item" },
"sand_pile": { texture: "sand_pile.png" },
"siding": { texture: "siding.png", type:"wall" },
"storm_drain": { texture: "storm_drain.png", type:"floor" },
"trash_can": { texture: "trash_can.png" },
"water_hole": { texture: "water_hole.png", type:"floor" },
"acorn": { texture: "acorn.png", type:"item", scale:0.5 },
"barrel": { texture: "barrel.png" },
"birdbath": { texture: "birdbath.png" },
"birdhouse": { texture: "birdhouse.png" },
"book_stack": { texture: "book_stack.png" },
"book": { texture: "book.png", type:"item" },
"bookshelf": { texture: "bookshelf.png" },
"box": { texture: "box.png" },
"concrete_pool": { texture: "concrete_pool.png", type:"floor" },
"concrete_tile_floor": { texture: "concrete_tile_floor.png", type:"floor" },
"concrete_tile_wall": { texture: "concrete_tile_wall.png", type:"wall" },
"crate": { texture: "crate.png" },
"food_trough": { texture: "food_trough.png" },
"ladder": { texture: "ladder.png" },
"metal_bars": { texture: "metal_bars.png" },
"net": { texture: "net.png", type:"item" },
"paper_stack": { texture: "paper_stack.png" },
"paper": { texture: "paper.png", type:"item" },
"sandstone_pile": { texture: "sandstone_pile.png" },
"sandstone_pool": { texture: "sandstone_pool.png", type:"floor" },
"shop": { texture: "shop.png" },
"small_sandstone": { texture: "small_sandstone.png", type:"item", randRot:true },
"stick_floor": { texture: "stick_floor.png", type:"floor" },
"stick_wall": { texture: "stick_wall.png", type:"wall" },
"trough": { texture: "trough.png" },
"water_trough": { texture: "water_trough.png" },
"wood_frame": { texture: "wood_frame.png", type:"wall" },
"wood_n": { texture: "wood_n.png", type:"wall" },
"wood_siding": { texture: "wood_siding.png", type:"wall" },
"wood_table": { texture: "wood_table.png" },
"wood_tile_floor": { texture: "wood_tile_floor.png", type:"floor" },
"wood_tile_wall": { texture: "wood_tile_wall.png", type:"wall" },
"wood_u": { texture: "wood_u.png", type:"wall" },
}