File: fireplace.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-- 1,146 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]
collide_dimensions="level_only"
id="fireplace"
on_child_spawned="set(vars.fire, child)"
on_create="[if(is_burning,spawn('fire_generator',midpoint_x+10*facing,midpoint_y+28,facing,set(zorder,-2) )),if(is_burning,animation('burn'),animation('normal'))]"
on_end_burn_anim="[animation('burn'),set(time_in_animation,1d10)]"
on_end_normal_anim="animation('normal')"
on_extinguish="[animation('normal'),set(is_burning,0),if(vars.fire, [remove_object(vars.fire),set(vars.fire, null())])]"
on_ignite="[animation('burn'),set(is_burning,1),if(not vars.fire, spawn('fire_generator',midpoint_x+10*facing,midpoint_y+28,facing,set(zorder,-2) ))]"
platform_area="9,11,70,12"
zorder="-3"
	[vars]
	fire="null()"
	[/vars]

	[animation]
	duration="100"
	frame_info="1,4,0,16,891,471,79,44"
	frames="1"
	id="normal"
	image="compiled-1.png"
	interact_area="all"
	rect="890,467,969,530"
	[/animation]

	[animation]
	duration="4"
	frame_info="1,4,0,15,654,471,79,45,1,4,0,15,733,471,79,45,1,4,0,15,812,471,79,45"
	frames="3"
	frames_per_row="1"
	id="burn"
	image="compiled-1.png"
	interact_area="all"
	rect="653,467,732,530"
	[/animation]

[/object_type]