File: camera.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 (56 lines) | stat: -rw-r--r-- 1,309 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
[object_type]
	id=camera
	hitpoints=2
	is_human=true
	z=150
	
	[editor_info]
		category=crazy-stuff
	[/editor_info]
	
	[vars]
		number = 0 #from 0 to 3 for a 4-player game#
	[/vars]
	
	[properties]
	position = "def() level.camera_position"
	[/properties]
	
	on_start_level= "[
		set(alpha, 0),
		spawn('mouse', x, y, 1),
		]"
	
	on_ctrl_left = "set(velocity_x, -2500)"
	on_end_ctrl_left = "set(velocity_x, 0)"
	on_ctrl_right = "set(velocity_x, 2500)"
	on_end_ctrl_right = "set(velocity_x, 0)"
	on_ctrl_up = "set(velocity_y, -2500)"
	on_end_ctrl_up = "set(velocity_y, 0)"
	on_ctrl_down = "set(velocity_y, 2500)"
	on_end_ctrl_down = "set(velocity_y, 0)"
	
	on_process="[[ #level.lock_screen#
		if(midpoint_x < level.dimensions[0] + margin, set(midpoint_x, level.dimensions[0] + margin)),
		if(midpoint_x > level.dimensions[2] - margin, set(midpoint_x, level.dimensions[2] - margin)),
		if(midpoint_y < level.dimensions[1] + margin, set(midpoint_y, level.dimensions[1] + margin)),
		if(midpoint_y > level.dimensions[3] - margin, set(midpoint_y, level.dimensions[3] - margin))]
		where margin = 200,
		]"
	
	on_end_anim="animation('normal')"	
	
	
	[animation]
		id=normal
		image=experimental/rts-stuff.png
		x=11
		y=6
		w=32
		h=21
		pad=0
		frames=1
		duration=5006
		item_area=all
	[/animation]
[/object_type]