Merge pull request #92 from chz16/one-way-walls-fix
Add a missing tile encoding spec for one-way walls
This commit is contained in:
commit
816b249f67
@ -926,6 +926,22 @@ const TILE_ENCODING = {
|
|||||||
modifier: modifier_color,
|
modifier: modifier_color,
|
||||||
is_extension: true,
|
is_extension: true,
|
||||||
},
|
},
|
||||||
|
0xf4: {
|
||||||
|
name: 'one_way_walls',
|
||||||
|
has_next: true,
|
||||||
|
is_extension: true,
|
||||||
|
extra_args: [
|
||||||
|
{
|
||||||
|
size: 1,
|
||||||
|
decode(tile, mask) {
|
||||||
|
tile.edges = mask;
|
||||||
|
},
|
||||||
|
encode(tile) {
|
||||||
|
return tile.edges;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const REVERSE_TILE_ENCODING = {};
|
const REVERSE_TILE_ENCODING = {};
|
||||||
for (let [tile_byte, spec] of Object.entries(TILE_ENCODING)) {
|
for (let [tile_byte, spec] of Object.entries(TILE_ENCODING)) {
|
||||||
@ -2156,7 +2172,7 @@ const MAX_SIMULTANEOUS_REQUESTS = 5;
|
|||||||
|
|
||||||
_fetch_map(path, n);
|
_fetch_map(path, n);
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIXME and right off the bat we have an Issue: this is a text format so i want a string, not
|
// FIXME and right off the bat we have an Issue: this is a text format so i want a string, not
|
||||||
// an arraybuffer!
|
// an arraybuffer!
|
||||||
let contents = util.string_from_buffer_ascii(buf);
|
let contents = util.string_from_buffer_ascii(buf);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user