Attempt to support some invalid MSCC tiles
This commit is contained in:
parent
5f6e820b14
commit
529b87ab23
@ -59,10 +59,13 @@ const TILE_ENCODING = {
|
||||
0x36: 'wall_invisible', // unused
|
||||
0x37: 'wall_invisible', // unused
|
||||
0x38: 'wall_invisible', // unused
|
||||
//0x39: exit_player,
|
||||
0x3a: 'exit',
|
||||
0x3b: 'exit', // i think this is for the second frame of the exit animation?
|
||||
// FIXME??? 0x3c - 0x3f are player swimming!
|
||||
0x39: 'bogus_player_win',
|
||||
0x3a: 'bogus_player_win',
|
||||
0x3b: 'bogus_player_win',
|
||||
0x3c: ['bogus_player_swimming', 'north'],
|
||||
0x3d: ['bogus_player_swimming', 'west'],
|
||||
0x3e: ['bogus_player_swimming', 'south'],
|
||||
0x3f: ['bogus_player_swimming', 'east'],
|
||||
0x40: ['bug', 'north'],
|
||||
0x41: ['bug', 'west'],
|
||||
0x42: ['bug', 'south'],
|
||||
|
||||
@ -283,6 +283,16 @@ export const CC2_TILESET_LAYOUT = {
|
||||
east: [8, 22],
|
||||
},
|
||||
},
|
||||
bogus_player_win: {
|
||||
overlay: [0, 23],
|
||||
base: 'exit',
|
||||
},
|
||||
bogus_player_swimming: {
|
||||
north: [[0, 24], [1, 24]],
|
||||
east: [[2, 24], [3, 24]],
|
||||
south: [[4, 24], [5, 24]],
|
||||
west: [[6, 24], [7, 24]],
|
||||
},
|
||||
water: [
|
||||
[12, 24],
|
||||
[13, 24],
|
||||
@ -392,9 +402,14 @@ export const TILE_WORLD_TILESET_LAYOUT = {
|
||||
explosion: [3, 6],
|
||||
explosion_other: [3, 7], // TODO ???
|
||||
// 3, 8 unused
|
||||
player_exiting: [3, 9],
|
||||
// 3, 10 and 11 are "exit_extra_{1,2}"
|
||||
bogus_player_win: [3, 9], // TODO 10 and 11 too? does this animate?
|
||||
// TODO player swimming is 3, 12-15
|
||||
bogus_player_swimming: {
|
||||
north: [3, 12],
|
||||
west: [3, 13],
|
||||
south: [3, 14],
|
||||
east: [3, 15],
|
||||
},
|
||||
|
||||
bug: {
|
||||
north: [4, 0],
|
||||
|
||||
@ -1234,6 +1234,17 @@ const TILE_TYPES = {
|
||||
blocks_players: true,
|
||||
ttl: 6,
|
||||
},
|
||||
|
||||
// Invalid tiles that appear in some CCL levels because community level
|
||||
// designers love to make nonsense
|
||||
bogus_player_win: {
|
||||
draw_layer: LAYER_TERRAIN,
|
||||
blocks_all: true,
|
||||
},
|
||||
bogus_player_swimming: {
|
||||
draw_layer: LAYER_TERRAIN,
|
||||
blocks_all: true,
|
||||
},
|
||||
};
|
||||
|
||||
// Tell them all their own names
|
||||
|
||||
Loading…
Reference in New Issue
Block a user