File: catenary_controller.cfg

package info (click to toggle)
frogatto-data 1.3.1%2Bdfsg-4
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 254,428 kB
  • sloc: xml: 584; python: 396; perl: 249; sh: 126; ruby: 69; makefile: 21
file content (51 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (3)
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
{
id: "catenary_controller",
ignore_collide: true,
hidden_in_game: true,
on_create: "[
		set(vars.rope, rope),
		add_object(rope),
		schedule(30, debug('set rope custom draw')),
		schedule(30, set(rope.custom_draw, [0, [0,0], 1, [0,0], 1.5, [100, 0], 2, [0,0], 3, [0,0], 3.5, [100, 0], 3.75, [50, 0]]))
	] where rope = object('rope_angled_controller', x,y,0, {'x_1' -> x, 'y_1' -> y, 'x_2' -> end_x, 'y_2' -> end_y})",
editor_info: {
	category: "controllers",
	help: "A controller for hanging rope.",
	var: [
		{
			name: "end_x",
			type: "x",
			value: "x+200",
		},
		{
			name: "end_y",
			type: "y",
			value: "y+100",
		},
	],
},
animation: {
	id: "normal",
	image: "effects/particles.png",
	x: 179,
	y: 42,
	w: 28,
	h: 28,
	frames: 1,
	duration: 1000,
	frames_per_row: 1,
	pad: 0,
	rect: [179,104,206,131],
},
object_type: {
	id: "rope",
	animation: {
		id: "normal",
		image: "props/rope-vertical.png",
		rect: [0,0,3,3],
		pad: 0,
		frames: 1,
		duration: 5000000,
	},
},
}