File: points_cube.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 (102 lines) | stat: -rw-r--r-- 2,160 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

	[object_type]
	id=points_cube
	
	[vars]
		time_to_live=500
		points_value=5
	[/vars]
	on_create="[set(vars.time_to_live, level.cycle + vars.time_to_live),add_particles('particles')] "
	on_collide_object_item="if(collide_with.player,fire_event('acquired'))"
	on_end_anim="animation('normal')"
	solid_dimensions=level_only
	friction=100
	
	
	on_acquired="[score(level,points_value), set(level.player.vars.powerup_time, level.player.vars.powerup_time + level.player.consts.powerup_recharge), map([0,0,0,0],spawn('points_sparkle',midpoint_x + 1d40-20,midpoint_y + 1d40-20,0)),sound('HeartPickUp.ogg'),die()]"
	
	
	on_process="set(brightness,(wave(cycle*30)+1000)/3 + 255)"

	timer_frequency=50
	on_timer="[if(level.cycle > vars.time_to_live, die())]"

	on_collide_feet="[set(velocity_y, -velocity_y), set(velocity_x, (velocity_x*9)/10 + (velocity_y*slope_standing_on)/90),animation('flash')]"
	on_collide="[set(velocity_y, velocity_y/2), set(velocity_x, -velocity_x),animation('flash')]"

		[animation]
		id=normal
		image=props/items.png
		rect=203,2,216,15
		pad=3
		frames=9
		frames_per_row=3
		duration=4
		item_area=all
		solid_area=4,4,8,8
		accel_y=80
		[/animation]

		[animation]
		id=flash
		image=props/items.png
		rect=203,53,216,66
		pad=3
		frames=1
		duration=4
		item_area=all
		solid_area=4,4,8,8
		accel_y=80
		[/animation]
		


		[particle_system]
		id=particles
		type=simple
		min_y=-20
		max_y=20
		min_x=-20
		max_x=20
		spawn_rate=200
		time_to_live=20
			[animation]
			id=sparkle
			image=props/items.png
			rect=139,74,149,84
			frames=4
			pad=3
			duration=6
			[/animation]
			
			[animation]  ##same thing, but skip the first frame
			id=sparkle
			image=props/items.png
			rect=153,74,163,84
			frames=3
			pad=3
			duration=4
			[/animation]
			
			[animation]  ##same thing, but skip the first 2 frames
			id=sparkle
			image=props/items.png
			rect=167,74,177,84
			frames=2
			pad=3
			duration=6
			[/animation]


			[animation]  ##same thing, but skip the first 3 frames
			id=sparkle
			image=props/items.png
			rect=181,74,191,84
			frames=1
			pad=3
			duration=6
			[/animation]
		[/particle_system]

	[/object_type]