File: kinguin_npc.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 (82 lines) | stat: -rw-r--r-- 1,541 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
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

	[object_type]
	id=kinguin_npc
	prototype=standing_npc
	hitpoints=1
	friction=2000
	
	[vars]
		standing_still=0
	[/vars]
	
	[tmp]
		last_turned=0
	[/tmp]
	
#	zorder=-1
	solid_dimensions=npc
	solid_area=9,8,23,30
#	on_create="animation('stand')"
#	on_end_anim="if(vars.standing_still, if(facing = desired_facing, animation('stand'), animation('turn')),
#					if(solid(level, front + facing*50, y, 1, y2 - y) or (facing < 0 and x < vars.x_bound) or (facing > 0 and x2 > vars.x2_bound) or 1d5=5, if(cycle - tmp.last_turned > 80, [animation('turn'),set(tmp.last_turned, cycle)],animation('stand') ), if(1d2=2,animation('walk'),animation('stand'))))
#					 where desired_facing = if(level.player.x < x, -1, 1)"
	
#	on_end_turn_anim="[facing(-facing),animation('stand')]"
	
#	on_talk="speech_dialog( level.player, [~Hi, Kinguin, what's up?~],
#								self, ['Eh, this and that.'])"


		[base:animation]
		image=characters/kinguin-spritesheet1.png
		pad=3
		accel_x=0
		accel_y=80
		interact_area=all
		[/animation]

		[animation]
		id=stand
		duplicates=6
		rect=2,2,33,34
		frames=3
		duration=6
		reverse=yes
		[/animation]

		[animation]
		id=stand  #blink
		rect=107,2,138,34
		frames=3
		duration=6
		reverse=yes
		[/animation]
		
		[animation]
		id=walk
		solid_area=17,18,31,40
		rect=2,110,49,157
		accel_x=800
		frames=8
		duration=5
		[/animation]
		
		[animation]
		id=turn
		x=387
		y=40
		w=32
		h=33
		frames=1
		duration=5
		[/animation]

		[animation]
		id=portrait
		rect=2,2,33,34
		scale=6
		[/animation]

		
	[/object_type]