File: water_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 (63 lines) | stat: -rw-r--r-- 1,262 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
[object_type]
always_active="yes"
id="water_controller"
ignore_collide="true"
on_editor_added="add_water(zone_x1, zone_y1, zone_x2, zone_y2)"
on_editor_changed_variable="add_water(zone_x1, zone_y1, zone_x2, zone_y2)"
on_editor_changing_variable="remove_water(zone_x1, zone_y1, zone_x2, zone_y2)"
on_editor_removed="remove_water(zone_x1, zone_y1, zone_x2, zone_y2)"
on_end_anim="animation('normal')"
on_load="[set(alpha,0), set(zorder, -20), add_particles('bubbles'), fire_event('setup_particles')]"
on_setup_particles="set(bubbles.area, [zone_x1, zone_y1, zone_x2, zone_y2])"
zorder="100"
	[editor_info]
	category="controllers"
		[var]
		name="zone_x1"
		type="x"
		value="x"
		[/var]

		[var]
		name="zone_x2"
		type="x"
		value="x+200"
		[/var]

		[var]
		name="zone_y1"
		type="y"
		value="y"
		[/var]

		[var]
		name="zone_y2"
		type="y"
		value="y+200"
		[/var]

	[/editor_info]

	[animation]
	duration="1000"
	frame_info="0,0,2,1,401,368,26,27"
	frames="1"
	id="normal"
	image="compiled-2.png"
	rect="401,368,428,395"
	[/animation]

	[particle_system]
	color="120,160,255,100"
	dot_size="2"
	id="bubbles"
	number_of_particles="100"
	repeat_period="200"
	type="water"
	velocity_rand="4"
	velocity_x="0"
	velocity_y="-1"
	[/particle_system]

[/object_type]