File: points_cube.cfg

package info (click to toggle)
frogatto-data 1.3.1%2Bdfsg-4
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 254,428 kB
  • sloc: xml: 584; python: 396; perl: 249; sh: 126; ruby: 69; makefile: 21
file content (127 lines) | stat: -rw-r--r-- 2,671 bytes parent folder | download | duplicates (3)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
id: "points_cube",
always_active: true,
vars: {
	time_to_live: 500,
	points_value: 2,
},

on_create: "[set(vars.time_to_live, level.cycle + vars.time_to_live),add_particles('particles')]",
on_collide_object_item: "if(collide_with.is_player_body_part,fire_event('acquired'))",
on_end_anim: "animation('normal')",
solid_dimensions: [],
friction: 100,
on_acquired: "[spawn(type+'.acquisition_fx',mid_x,mid_y,facing),die()]",
on_process: "set(brightness,(wave(cycle*30)+1000)/3 + 255)",
timer_frequency: 50,
on_timer: "[if(level.cycle > vars.time_to_live, [set(level.player.vars.ac_points_cube, 0), die()])]",
on_collide_head: "[set(velocity_y, (-velocity_y*9)/10), set(velocity_x, (velocity_x*9)/10), animation('flash')]",
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_side: "[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,
	},
	{
		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,
	},
],
object_type: [
	{
		id: "acquisition_fx",
		always_active: true,
		properties: {
			mana_recharge_amount: 1500,
		},

		on_create: "[score(level,points_value), 
			add(level.player.mana, 1500),
			map([0]*10,spawn('points_sparkle',mid_x + 1d80-40,mid_y + 1d80-40,0)),
			sound('PickUp-Cube.ogg'),
			spawn('silhouette_mana',level.player.mid_x,level.player.mid_y,1),
			die(),
			]",

		animation: [
		{
			id: "normal",
			image: "props/items.png",
			rect: [203,2,204,3],
			frames: 1,
			duration: -1,
		}],
		
	}
],

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,
		},
		{

			#
			#same thing, but skip the first frame
			id: "sparkle",
			image: "props/items.png",
			rect: [153,74,163,84],
			frames: 3,
			pad: 3,
			duration: 4,
		},
		{

			#
			#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,
		},
		{

			#
			#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,
		},
	],
},
}