File: ball.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 (23 lines) | stat: -rw-r--r-- 764 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
[object_type]
hitpoints="1"
id="ball"
on_create="set(velocity_y, 200)"
on_hit_by_player="[set(velocity_y, -velocity_y), set(velocity_x, (velocity_x + level.player.velocity_x)/2)]"
on_process="[if(x >= ((800 - 40) + level.cycle) and velocity_x > 0, set(velocity_x, -velocity_x)),
             if(x <= (0 + level.cycle) and velocity_x < 0, set(velocity_x, -velocity_x)),
			 if(y < 0 or y > (600 - 40), [set(x, 400 + level.cycle), set(y, 300), set(velocity_x, 0), set(velocity_y, 200)]),
			 set(level.lock_screen, [level.cycle+450, 275]),
			 set(x, x + 1)]"
	[animation]
	collide="0,0,31,31"
	duration="1000000"
	frame_info="0,0,0,1,978,934,32,31"
	frames="1"
	id="normal"
	image="compiled-1.png"
	rect="978,934,1009,965"
	scale="1"
	[/animation]

[/object_type]