Make a macro to shake the screen.

Fixes several instances where the direction was incorrect on the
second shake.
This commit is contained in:
Simon Forsyth 2012-07-16 02:10:18 +00:00
parent 70e1a52d22
commit aa82d990ed
4 changed files with 24 additions and 110 deletions

View file

@ -566,19 +566,7 @@ _ "These undead trolls fight again in death as they did in life, except this tim
[/sound]
# Have wall shake, then be replaced by dirt, then add rubble
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x,y=16,7
@ -1001,18 +989,7 @@ _ "These undead trolls fight again in death as they did in life, except this tim
# Have screen shake, then destroy most of bridge
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x=16,17,18,18,19,19,20,20,21,22,22,23,23,23,24,24,24

View file

@ -539,18 +539,7 @@
# Have wall shake, then be replaced by dirt, then add rubble
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x=27-28
@ -864,18 +853,7 @@
y=30,30,29,28,27,27,26,25
[/move_unit_fake]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x,y=22,30
@ -946,18 +924,7 @@
y=31,30,29,28,27,26,25,24,24,23
[/move_unit_fake]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x,y=16,31
@ -1046,19 +1013,7 @@
# directly to main dwarf base
#define BACKUP_CHARGES
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x=12,12
@ -1579,18 +1534,7 @@
red,green,blue=246,0,243
[/color_adjust]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x,y=46,21

View file

@ -635,18 +635,7 @@
name=cave-in.ogg
[/sound]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[message]
speaker=Zhul
@ -2388,18 +2377,7 @@
remove=true
[/event]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
{UTBS_SHAKE_SCREEN}
[terrain]
x=9,9

View file

@ -161,3 +161,18 @@ multiply=-1
{CLEAR_VARIABLE num}
#enddef
#define UTBS_SHAKE_SCREEN
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
[scroll]
x=20
[/scroll]
[scroll]
x=-20
[/scroll]
#enddef