File: paddle.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 (26 lines) | stat: -rw-r--r-- 636 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
[object_type]
hitpoints="1"
id="paddle"
on_end_anim="animation('normal')"
on_process="[
  set(velocity_x, (velocity_x*9)/10),
  if(ctrl_left, set(velocity_x, velocity_x - 100)),
  if(ctrl_right, set(velocity_x, velocity_x + 100)),
  if(x <= (0 + level.cycle) and velocity_x < 0, set(velocity_x, -velocity_x/2)),
  if(x >= ((800-120) + level.cycle) and velocity_x > 0, set(velocity_x, -velocity_x/2)),
  set(x, x + 1)
  ]"
	[animation]
	duration="20"
	frame_info="0,0,0,0,126,442,128,16"
	frames="1"
	hit="0,0,127,15"
	hit_frames="0"
	id="normal"
	image="compiled-2.png"
	rect="126,442,253,457"
	scale="1"
	[/animation]

[/object_type]