File: points_cube.cfg

package info (click to toggle)
frogatto-data 1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 201,844 kB
  • sloc: python: 302; xml: 223; perl: 139; sh: 48; makefile: 13; ruby: 4
file content (99 lines) | stat: -rw-r--r-- 2,729 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
[object_type]
always_active="yes"
friction="100"
id="points_cube"
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'),
		set(level.player.vars.ac_points_cube, level.player.vars.ac_points_cube + 1),
		if(level.player.vars.ac_points_cube > 13, achievement('cube_chain')),
		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_object_item="if(collide_with.is_player_body_part,fire_event('acquired'))"
on_collide_side="[set(velocity_y, velocity_y/2), set(velocity_x, -velocity_x),animation('flash')]"
on_create="[set(vars.time_to_live, level.cycle + vars.time_to_live),add_particles('particles')]"
on_end_anim="animation('normal')"
on_process="set(brightness,(wave(cycle*30)+1000)/3 + 255)"
on_timer="[if(level.cycle > vars.time_to_live, [set(level.player.vars.ac_points_cube, 0), die()])]"
solid_dimensions="level_only"
timer_frequency="50"
	[vars]
	points_value="2"
	time_to_live="500"
	[/vars]

	[animation]
	accel_y="80"
	duration="4"
	frame_info="2,2,2,1,266,764,10,11,2,2,1,0,276,764,11,12,2,2,2,0,287,764,10,12,2,2,2,0,297,764,10,12,2,2,2,0,307,764,10,12,2,2,2,0,317,764,10,12,2,2,2,0,327,764,10,12,2,2,2,0,337,764,10,12,1,2,2,0,347,764,11,12"
	frames="9"
	frames_per_row="3"
	id="normal"
	image="compiled-2.png"
	item_area="all"
	rect="264,762,277,775"
	solid_area="4,4,8,8"
	[/animation]

	[animation]
	accel_y="80"
	duration="4"
	frame_info="1,2,1,0,1006,749,12,12"
	frames="1"
	id="flash"
	image="compiled-2.png"
	item_area="all"
	rect="1005,747,1018,760"
	solid_area="4,4,8,8"
	[/animation]

	[particle_system]
	id="particles"
	max_x="20"
	max_y="20"
	min_x="-20"
	min_y="-20"
	spawn_rate="200"
	time_to_live="20"
	type="simple"
		[animation]
		duration="6"
		frame_info="1,1,1,1,1000,0,9,9,2,2,2,2,1009,0,7,7,3,3,3,3,1016,0,5,5,4,4,4,4,1021,0,3,3"
		frames="4"
		id="sparkle"
		image="compiled-0.png"
		rect="999,-1,1009,9"
		[/animation]

		[animation]
		duration="4"
		frame_info="2,2,2,2,386,24,7,7,3,3,3,3,393,24,5,5,4,4,4,4,398,24,3,3"
		frames="3"
		id="sparkle"
		image="compiled-0.png"
		rect="384,22,394,32"
		[/animation]

		[animation]
		duration="6"
		frame_info="3,3,3,3,649,18,5,5,4,4,4,4,654,18,3,3"
		frames="2"
		id="sparkle"
		image="compiled-0.png"
		rect="646,15,656,25"
		[/animation]

		[animation]
		duration="6"
		frame_info="4,4,4,4,721,15,3,3"
		frames="1"
		id="sparkle"
		image="compiled-0.png"
		rect="717,11,727,21"
		[/animation]

	[/particle_system]

[/object_type]