File: breakable_block_particle.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 (87 lines) | stat: -rw-r--r-- 1,910 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
	[object_type]
	id=breakable_block_particle

	on_create="[animation('normal' + 1d5), set(velocity_x, 1d1000*level.player.facing), set(velocity_y, 1d2000 - 1000), set(rotate, 0), set_var('rotation', 1d20)]"
	on_collide="set(velocity_x, -(velocity_x*70)/100)"
	on_collide_head="set(velocity_y, -velocity_y)"
	on_collide_feet="[set(velocity_x, (velocity_x*70)/100), set(velocity_y, -velocity_y/2)]"
	on_process="[set(velocity_x, (((velocity_x + (slope_standing_on / 2)) * 990) / 1000) - (underwater * (velocity_x * 2) / 10)),
	set(velocity_y, ((velocity_y * 997) / 1000) + underwater * (((velocity_y * 9) / 10) - velocity_y))]"


on_enter_water="[
add_wave(midpoint_x, y2, -2000, 5*velocity_y/4, 30*velocity_y, 300, 300),
add_wave(midpoint_x, y2, 2000, 5*velocity_y/4, 30*velocity_y, 300, 300),
add_wave(midpoint_x, y2, -1000, 3*velocity_y/4, 20*velocity_y, 200, 200),
add_wave(midpoint_x, y2, 1000, 3*velocity_y/4, 20*velocity_y, 200, 200),
add_wave(midpoint_x, y2, -500, 2*velocity_y/4, 10*velocity_y, 100, 100),
add_wave(midpoint_x, y2, 500, 2*velocity_y/4, 10*velocity_y, 100, 100)
]"

	zorder=12

		[base:animation]
		image=props/blocks.png
		accel_y=70
		frames=1
		duration=100
		body_area=all
		[/animation]

		[animation]
		id=normal1
		rect=0,18,4,24
		[/animation]

		[animation]
		id=normal2
		rect=0,26,6,34
		[/animation]

		[animation]
		id=normal3
		rect=6,18,10,24
		[/animation]

		[animation]
		id=normal4
		rect=12,17,20,23
		[/animation]

		[animation]
		id=normal5
		rect=22,17,30,24
		[/animation]

		[animation]
		id=normal6
		rect=11,26,16,34
		[/animation]

		[animation]
		id=normal7
		rect=18,29,23,34
		[/animation]

		[animation]
		id=normal8
		rect=25,30,30,36
		[/animation]

		[animation]
		id=normal9
		rect=11,37,14,41
		[/animation]

		[animation]
		id=normal10
		rect=19,39,23,44
		[/animation]

		[animation]
		id=normal11
		rect=26,39,30,47
		[/animation]

	[/object_type]