File: gate.cfg

package info (click to toggle)
frogatto-data 1.0-2
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze
  • size: 155,116 kB
  • sloc: makefile: 1
file content (68 lines) | stat: -rw-r--r-- 2,002 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[object_type]
adjust_feet_on_animation_change="false"
always_active="yes"
collide_dimensions="key"
has_feet="no"
id="gate"
on_button_pressed="fire_event('unlock')"
on_button_released="fire_event('lock')"
on_change_animation_failure="[animation(previous_animation), schedule(1, animation(animation))]"
on_child_spawned="switch(child.type,
	  'gate_porticullis', set(vars.porticullis, child) )"
on_create="[if(is_locked, animation('locked'), animation('unlocked')), spawn('gate_porticullis', midpoint_x, midpoint_y, facing, [set_var('is_locked', vars.is_locked), set_var('desired_y',y-120), set_var('desired_y2',y), set_var('origin_y',y)]), spawn('gate_overlay',midpoint_x,midpoint_y,facing)]"
on_end_closing_anim="animation('locked')"
on_end_locked_anim="if(is_locked,animation('locked'),[animation('opening'), fire_event( vars.porticullis,'unlock'),sound('DoorShut.ogg')])"
on_end_opening_anim="animation('unlocked')"
on_end_unlocked_anim="if(is_locked,[animation('closing'),fire_event( vars.porticullis,'lock'),sound('DoorShut.ogg')],animation('unlocked'))"
on_lock="set(is_locked,1)"
on_unlock="set(is_locked,0)"
solid_dimensions="player,common,~thrown"
timer_frequency="5"
zorder="-8"
	[animation]
	duration="30"
	frame_info="1,0,3,1,957,15,34,102"
	frames="1"
	gate_area="all"
	id="locked"
	image="compiled-0.png"
	rect="956,15,993,117"
	solid_area="7,20,21,85"
	[/animation]

	[animation]
	duration="28"
	frame_info="1,0,3,1,957,15,34,102"
	frames="1"
	gate_area="all"
	id="opening"
	image="compiled-0.png"
	rect="956,15,993,117"
	solid_area="7,20,21,40"
	[/animation]

	[animation]
	duration="24"
	frame_info="1,0,3,1,957,15,34,102"
	frames="1"
	gate_area="all"
	id="closing"
	image="compiled-0.png"
	play_backwards="yes"
	rect="956,15,993,117"
	solid_area="7,20,21,40"
	[/animation]

	[animation]
	duration="30"
	frame_info="1,0,3,1,957,15,34,102"
	frames="1"
	gate_area="all"
	id="unlocked"
	image="compiled-0.png"
	rect="956,15,993,117"
	solid_area="7,20,21,30"
	[/animation]

[/object_type]