File: chain_link.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 (43 lines) | stat: -rw-r--r-- 1,026 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
[object_type]
id="chain_link"
on_spawned="[
	  set_var('base_x', x), set_var('base_y', y),
	  set(schedule_speed, 5),

	  set(x_schedule, transform(consts.x_schedule_base, x + (v*vars.radius)/1000)),
	  set(y_schedule,
	            transform(consts.y_schedule_base, y + (v*vars.radius)/1000)),
	  set(rotation_schedule, consts.rotation_schedule_base)
	  ]"
	[vars]
	radius="100"
	rotation_values="[]"
	x_values="[]"
	y_values="[]"
	[/vars]

	[consts]
	rotation_schedule_base="map(range(1000/25), 'c', 90 + (((wave(c*25)+1000)/2)*180)/1000)"
	speed="5"
	x_schedule_base="map(range(1000/25), 'c', wave((wave(c*25)+1000)/4 + 250))"
	y_schedule_base="map(range(1000/25), 'c', wave((wave(c*25)+1000)/4))"
	[/consts]

	[animation]
	duration="100000000"
	frame_info="0,0,1,1,1015,442,9,10"
	id="normal"
	image="compiled-2.png"
	rect="1015,442,1024,452"
	[/animation]

	[animation]
	duration="100000000"
	frame_info="2,1,3,1,1019,235,5,9"
	id="normal2"
	image="compiled-0.png"
	rect="1017,234,1026,244"
	[/animation]

[/object_type]