Carte des TMR alternatives
Ajout d'une option pour choisir parmi les TMRs des 3 éditions
This commit is contained in:
@ -1,32 +1,3 @@
|
||||
// pixiTMR.animate(pixiApp => pixiApp.ticker.add((delta) => {
|
||||
// if (!sprite.waveAnimation) {
|
||||
// sprite.waveAnimation = {
|
||||
// originx: sprite.x,
|
||||
// movex: 0,
|
||||
// step: 0.03
|
||||
// }
|
||||
// }
|
||||
// else {
|
||||
// if (Math.abs(sprite.waveAnimation.movex) > 2) {
|
||||
// sprite.waveAnimation.step = -sprite.waveAnimation.step
|
||||
// }
|
||||
// sprite.waveAnimation.movex += sprite.waveAnimation.step;
|
||||
// }
|
||||
// sprite.x = sprite.waveAnimation.originx + sprite.waveAnimation.movex
|
||||
// }));
|
||||
|
||||
// return pixiTMR.square(this.code(),
|
||||
// {
|
||||
// zIndex: tmrTokenZIndex.trounoir,
|
||||
// tint: tmrColors.trounoir,
|
||||
// alpha: 1,
|
||||
// taille: () => pixiTMR.sizes.full,
|
||||
// decallage: {
|
||||
// x: -pixiTMR.sizes.half,
|
||||
// y: -pixiTMR.sizes.half
|
||||
// }
|
||||
// })
|
||||
|
||||
export class TMRAnimations {
|
||||
|
||||
static withAnimation(sprite, pixiTMR, ...animations) {
|
||||
|
Reference in New Issue
Block a user