File: cannon.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 (38 lines) | stat: -rw-r--r-- 911 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
[object_type]
id="cannon"
on_end_anim="if(animation = 'normal',
	                   if(vars.load >= vars.loading_time,
					     [animation('fire'), set_var('load', 0)],
						 [animation('normal'), set_var('load', vars.load + 1)]),
					      animation('normal'))"
on_shoot="[spawn('missile', midpoint_x+ facing*25, midpoint_y -11, facing,
	           [set(velocity_x, 800*facing)]),
	spawn('explosion_spark', midpoint_x+ facing*50, midpoint_y -8, facing)]"
solid_area="16,6,38,36"
	[vars]
	load="0"
	[/vars]

	[animation]
	duration="10"
	frame_info="16,6,3,1,444,934,30,32"
	frames="1"
	id="normal"
	image="compiled-1.png"
	rect="428,928,476,966"
	[/animation]

	[animation]
	duration="8"
	events="5:shoot"
	frame_info="13,6,2,1,195,934,34,32,14,6,6,1,229,934,29,32"
	frames="2"
	frames_per_row="1"
	id="fire"
	image="compiled-1.png"
	rect="182,928,230,966"
	sound="cannon.ogg"
	[/animation]

[/object_type]