File: falling_block.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 (36 lines) | stat: -rw-r--r-- 870 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
[object_type]
has_feet="no"
id="falling_block"
on_collide_feet="set(velocity_y, 0)"
on_collide_object_body="if(collide_with_area = 'attack', die())"
on_create="set(time_in_animation_delta, 0)"
on_die="spawn('die_cloud', midpoint_x, midpoint_y, facing)"
on_end_normal_anim="set(animation, 'fall')"
on_jumped_on="set(time_in_animation_delta, 1)"
solid_area="0,0,15,15"
	[properties]
	get_hit_by="def(hit_by) set(me.hitpoints, 0)"
	[/properties]

	[animation]
	body_area="all"
	duration="8"
	frame_info="0,0,0,0,256,400,16,16,0,0,0,0,272,400,16,16,0,0,0,0,288,400,16,16,0,0,0,0,304,400,16,16"
	frames="4"
	id="normal"
	image="compiled-0.png"
	rect="256,400,271,415"
	[/animation]

	[animation]
	accel_y="80"
	body_area="all"
	duration="100000"
	frame_info="0,0,0,0,1004,425,16,16"
	id="fall"
	image="compiled-2.png"
	rect="1004,425,1019,440"
	[/animation]

[/object_type]