Add palette support for sokoban tiles
This commit is contained in:
parent
e69ac492c7
commit
662787c287
@ -2518,6 +2518,21 @@ const SPECIAL_PALETTE_BEHAVIOR = {
|
|||||||
return 'circuit_block/xxx';
|
return 'circuit_block/xxx';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
sokoban_block: {
|
||||||
|
pick_palette_entry(tile) {
|
||||||
|
return 'sokoban_block/' + (tile.color ?? 'red');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sokoban_button: {
|
||||||
|
pick_palette_entry(tile) {
|
||||||
|
return 'sokoban_button/' + (tile.color ?? 'red');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sokoban_wall: {
|
||||||
|
pick_palette_entry(tile) {
|
||||||
|
return 'sokoban_wall/' + (tile.color ?? 'red');
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
// Fill in some special behavior that boils down to rotating tiles which happen to be encoded as
|
// Fill in some special behavior that boils down to rotating tiles which happen to be encoded as
|
||||||
// different tile types
|
// different tile types
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user