File: white_shooting_flower_base.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 (50 lines) | stat: -rw-r--r-- 1,600 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
[object_type]
hitpoints="8"
id="white_shooting_flower_base"
on_child_spawned="[set(vars.stems, vars.stems+[child]),set(child.vars.len_index,size(vars.stems)+1),
						set(child.zorder,context.zorder + size(vars.stems)+1)]"
on_collide_feet="map(vars.stems, 'stem',  set(stem.midpoint_y, context.midpoint_y - stem_voffset*(index+1) ))"
on_create="[map(range(stem_size),'n',spawn('white_shooting_flower_stem',midpoint_x,midpoint_y-stem_voffset*(n+1),facing)),
	spawn('white_shooting_flower',midpoint_x,midpoint_y-stem_voffset*(stem_size+1),facing)]"
on_die="map(stems, 'stem', set(stem.hitpoints, 0))"
on_end_normal_anim="[animation('normal'),set(time_in_animation,1d6)]"
on_timer="[if(find(stems, hitpoints <= 0),[map(stems, set(hitpoints, 0)),die()] ),  map(stems,'stem', set(stem.vars.target_x, context.midpoint_x + ((index+1)*context.target_x/stem_size)))] where target_x = (wave(cycle*sidle_speed)*sidle_range)/1000"
solid_area="5,5,20,15"
timer_frequency="5"
zorder="0"
	[vars]
	damage="1"
	points_value="50"
	sidle_range="20"
	sidle_speed="8"
	stem_size="3"
	stem_voffset="14"
	team="'evil'"
	[/vars]

	[animation]
	accel_y="80"
	body_area="all"
	duration="10"
	frame_info="23,5,15,5,573,145,33,18,24,3,13,2,606,145,34,23,25,1,13,0,640,145,33,27"
	frames="3"
	frames_per_row="1"
	id="editor"
	image="compiled-2.png"
	rect="550,140,620,167"
	[/animation]

	[animation]
	accel_y="80"
	body_area="all"
	duration="12"
	frame_info="2,2,3,1,418,425,22,17,2,2,2,1,440,425,23,17"
	frames="2"
	frames_per_row="1"
	id="normal"
	image="compiled-2.png"
	rect="416,423,442,442"
	[/animation]

[/object_type]