Add a transmogrify sparkle
This commit is contained in:
parent
a41baee3fc
commit
e277a1363e
@ -877,16 +877,17 @@ export const LL_TILESET_LAYOUT = Object.assign({}, CC2_TILESET_LAYOUT, {
|
||||
teleport_flash: [[4, 38], [5, 38], [6, 38], [7, 38]],
|
||||
player1_exit: [[8, 38], [9, 38], [10, 38], [11, 38]],
|
||||
player2_exit: [[12, 38], [13, 38], [14, 38], [15, 38]],
|
||||
transmogrify_flash: [[4, 39], [5, 39], [6, 39], [7, 39]],
|
||||
|
||||
// More custom tiles
|
||||
gate_red: [0, 39],
|
||||
gate_blue: [1, 39],
|
||||
gate_yellow: [2, 39],
|
||||
gate_green: [3, 39],
|
||||
gate_red: [0, 40],
|
||||
gate_blue: [1, 40],
|
||||
gate_yellow: [2, 40],
|
||||
gate_green: [3, 40],
|
||||
|
||||
skeleton_key: [4, 39],
|
||||
skeleton_key: [4, 40],
|
||||
|
||||
sand: [10, 40],
|
||||
sand: [10, 41],
|
||||
});
|
||||
|
||||
export class Tileset {
|
||||
|
||||
@ -1207,6 +1207,10 @@ const TILE_TYPES = {
|
||||
let options = me.type._blob_mogrifications;
|
||||
level.transmute_tile(other, options[level.prng() % options.length]);
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
level.spawn_animation(me.cell, 'transmogrify_flash');
|
||||
},
|
||||
on_power(me, level) {
|
||||
// No need to do anything, we just need this here as a signal that our .powered_edges
|
||||
@ -2691,6 +2695,13 @@ const TILE_TYPES = {
|
||||
collision_mask: 0,
|
||||
ttl: 8 * 3,
|
||||
},
|
||||
transmogrify_flash: {
|
||||
// TODO probably not the right layer, vfx might need their own idk
|
||||
draw_layer: DRAW_LAYERS.actor,
|
||||
is_actor: true,
|
||||
collision_mask: 0,
|
||||
ttl: 4 * 3,
|
||||
},
|
||||
|
||||
// Invalid tiles that appear in some CCL levels because community level
|
||||
// designers love to make nonsense
|
||||
|
||||
BIN
tileset-lexy.png
BIN
tileset-lexy.png
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 73 KiB |
BIN
tileset-src/tileset-lexy-vfx-transmogrify.aseprite
Normal file
BIN
tileset-src/tileset-lexy-vfx-transmogrify.aseprite
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user