File: level_controller.cfg

package info (click to toggle)
frogatto-data 1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 201,844 kB
  • sloc: python: 302; xml: 223; perl: 139; sh: 48; makefile: 13; ruby: 4
file content (54 lines) | stat: -rw-r--r-- 1,037 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
[object_type]
always_active="yes"
id="level_controller"
next_animation="'normal'"
on_create="set(alpha,0)"
on_end_anim="animation('normal')"
on_timer="if(level.player.midpoint_x > vars.x_bound and level.player.midpoint_x < vars.x2_bound  and level.player.midpoint_y > vars.y_bound and level.player.midpoint_y < vars.y2_bound and cycle - vars.last_triggered > 250, [fire_event('triggered'),set(vars.last_triggered,cycle)])"
on_triggered="[sound('MenuConfirm.ogg')]"
timer_frequency="10"
zorder="50"
	[editor_info]
	category="controllers"
		[var]
		name="x_bound"
		type="x"
		value="x-100"
		[/var]

		[var]
		name="x2_bound"
		type="x"
		value="x+150"
		[/var]

		[var]
		name="y_bound"
		type="y"
		value="y-100"
		[/var]

		[var]
		name="y2_bound"
		type="y"
		value="y+150"
		[/var]

	[/editor_info]

	[vars]
	last_triggered="-400"
	[/vars]

	[animation]
	collide="0,0,28,28"
	duration="1000"
	frame_info="2,2,2,1,987,501,24,25"
	frames="1"
	id="normal"
	image="compiled-2.png"
	rect="985,499,1012,526"
	[/animation]

[/object_type]