File: max_heart_object.cfg

package info (click to toggle)
frogatto-data 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: non-free
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 254,428 kB
  • ctags: 46
  • sloc: xml: 584; python: 396; perl: 249; sh: 126; ruby: 69; makefile: 30
file content (25 lines) | stat: -rw-r--r-- 753 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
{
id: "max_heart_object",
vars: {
	been_acquired: 0,
},
on_acquired: "[set(level.player.driver.max_hitpoints, level.player.driver.max_hitpoints + 2), set(level.player.driver, 'hitpoints', level.player.driver.hitpoints + 2), map([0,0,0,0,0,0,0,0,0,0],spawn('heart_sparkle',midpoint_x,midpoint_y,0)),
	spawn('color_flash',x,y,0,[set('color_r',237),set('color_g',28),set('color_b',36)]),schedule(1,die()),
		speech_dialog([~You have acquired a heart capsule.\nYour maximum HP has increased by one!~])]",
on_end_normal_anim: "animation('normal')",
on_end_touched_anim: "die()",
respawns: false,
animation: {
	id: "normal",
	image: "props/items.png",
	body_area: "all",
	x: 1,
	y: 1,
	w: 40,
	h: 23,
	frames: 1,
	pad: 3,
	duration: 100,
	reverse: true,
},
}