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 (34 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (2)
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
	[object_type]
	id=falling_block
	solid_area=0,0,15,15
	has_feet=no
	on_collide_object_body="if(collide_with_area = 'attack', die())"
	on_die="spawn('die_cloud', midpoint_x, midpoint_y, facing)"
	on_create="set(time_in_animation_delta, 0)"
	on_jumped_on="set(time_in_animation_delta, 1)"
	on_end_normal_anim="set(animation, 'fall')"
	on_collide_feet="set(velocity_y, 0)"

		[editor_info]
		category=props
		[/editor_info]
		[properties]
		get_hit_by="def(hit_by) set(me.hitpoints, 0)"
		[/properties]
		[animation]
		id=normal
		image=props/blocks.png
		rect=64,80,79,95
		body_area=all
		frames=4
		duration=8
		[/animation]
		[animation]
		id=fall
		image=props/blocks.png
		rect=128,80,143,95
		body_area=all
		accel_y=80
		duration=100000
		[/animation]
	[/object_type]