Add a transmogrify sparkle

This commit is contained in:
Eevee (Evelyn Woods) committed 2021-01-01 21:27:10 -07:00
1 parent a41baee3fc
commit e277a1363e
5 files changed
+18 -6

No files matched your search

+7 -6
View File
@@ -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 {
+11
View File
@@ -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