add some macros for generic teleport animations.

These are not used by default and need to be enabled by WML authors
(or added to unit's wml individually)
This commit is contained in:
Jérémy Rosen 2012-05-23 18:07:44 +00:00
parent 5ef3d562ef
commit e525252c48
12 changed files with 195 additions and 0 deletions

View file

@ -298,6 +298,7 @@ Version 1.11.0-svn:
* Added: Fail macros FAIL and FAIL_WITH_DEV_MESSAGE.
* Added: Helper code to make it easier to write enumerate stream operators.
* Added: UNREACHABLE_CODE macro.
* Added: TELEPORT animation macros usable by any units
Version 1.10.0:
* Campaigns:

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

View file

@ -39,3 +39,197 @@
[redraw]
[/redraw]
#enddef
#define TELEPORT_OUT_ANIMATION
start_time=-1200
teleport_sparkle_1_start_time=-1200
teleport_sparkle_2_start_time=-1000
teleport_sparkle_3_start_time=-800
[teleport_sparkle_1_frame]
duration=800
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
halo_x=-10
halo_y=30~-30
[/teleport_sparkle_1_frame]
[teleport_sparkle_2_frame]
duration=800
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
halo_x=0
halo_y=40~-40
[/teleport_sparkle_2_frame]
[teleport_sparkle_3_frame]
duration=800
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
halo_x=10
halo_y=30~-30
[/teleport_sparkle_3_frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-0.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-1.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-2.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-3.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-4.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-5.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-6.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-7.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-8.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-9.png)
[/frame]
[frame]
duration=200
image="misc/blank-hex.png"
[/frame]
#enddef
#define TELEPORT_IN_ANIMATION
start_time=-1200
teleport_sparkle_1_start_time=-1200
teleport_sparkle_2_start_time=-1000
teleport_sparkle_3_start_time=-800
[teleport_sparkle_1_frame]
duration=800
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
halo_x=10
halo_y=-30~30
[/teleport_sparkle_1_frame]
[teleport_sparkle_2_frame]
duration=800
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
halo_x=0
halo_y=-40~40
[/teleport_sparkle_2_frame]
[teleport_sparkle_3_frame]
duration=800
halo=misc/blank-hex.png:1,halo/teleport-9.png,halo/teleport-8.png,halo/teleport-1.png,halo/teleport-2.png,halo/teleport-3.png,halo/teleport-4.png,halo/teleport-5.png,halo/teleport-6.png,halo/teleport-7.png,halo/teleport-8.png,halo/teleport-9.png,misc/blank-hex.png:1
halo_x=-10
halo_y=-30~30
[/teleport_sparkle_3_frame]
[frame]
duration=200
image="misc/blank-hex.png"
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-9.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-8.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-7.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-6.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-5.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-4.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-3.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-2.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-1.png)
[/frame]
[frame]
duration=100
image_mod=~MASK(masks/teleport-mask-0.png)
[/frame]
#enddef
#define TELEPORT_EFFECT_OBJECT_ID _ID_
[object]
silent=yes
duration=level #should be "turn" once support is implemented
[filter]
id={_ID_}
[/filter]
[effect]
apply_to=new_animation
[animation]
apply_to=pre_teleport
{TELEPORT_OUT_ANIMATION}
[/animation]
[animation]
apply_to=post_teleport
{TELEPORT_IN_ANIMATION}
[/animation]
[/effect]
[/object]
#enddef
#define TELEPORT_EFFECT_OBJECT
[object]
silent=yes
duration=turn
[effect]
apply_to=new_animation
[animation]
apply_to=pre_teleport
{TELEPORT_OUT_ANIMATION}
[/animation]
[animation]
apply_to=post_teleport
{TELEPORT_IN_ANIMATION}
[/animation]
[/effect]
[/object]
#enddef