File: horizontal_rope.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 (28 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (2)
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
[object_type]
id="horizontal_rope"
no_compile_image="props/rope-horizontal.png"
on_calculate_segments="set(draw_area, [vars.start_pos, 0, vars.length/2, 4])"
on_spawned="fire_event('calculate_segments')"
	[vars]
	length="150"
	max_length="300"
	start_pos="0"
	[/vars]

	[properties]
	move_pos="def(amount) [set(vars.start_pos, (vars.start_pos+amount)%5), fire_event(me, 'calculate_segments')]"
	set_pos_len="def(pos, len) [set(vars.length, len), set(vars.start_pos, pos%5), fire_event(me, 'calculate_segments')]"
	set_x="def(new_x) [set(x, x + diff), fire_event('calculate_segments')]"
	[/properties]

	[animation]
	h="4"
	id="normal"
	image="props/rope-horizontal.png"
	w="4"
	x="0"
	y="0"
	[/animation]

[/object_type]