File: red_spikebug.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,387 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=red_spikebug
	prototype=ant
	collide_dimensions="common"

	on_collide_object_body="[ if(collide_with.vars.team != vars.team and collide_with_area = 'attack',
			if(not (me in collide_with.tmp.already_hit), [set(collide_with.tmp, 'already_hit', collide_with.tmp.already_hit + [me]),
		
				set(hitpoints, hitpoints - collide_with.vars.damage), animation('hurt'), set(green, 100), set(blue, 100), set(velocity_y,-1000), set(velocity_x,400 * collide_with.facing)]))
				, if(collide_with.vars.team != vars.team ,animation('attack'))]"

	on_end_attack_anim="animation('stand')"

	[consts]
	springiness=0
	spring_amount=0
	[/consts]

	[vars]
		points_value=5
		turns_at_cliffs=0
	[/vars]

		[base:animation]
		image=enemies/spike-bug.png
		rotate_on_slope=yes
		pad=3
		accel_x=0
		accel_y=80
		body_area=all
		[/animation]

		[animation]
		id=stand
		[/animation]
	
		[animation]
		id=thrown
		body_area=none
		[/animation]

		[animation]
		id=on_back
		[/animation]

		[animation]
		id=walk
		accel_x=250
		[/animation]

		[animation]
		id=walk
		duplicates=6
		accel_x=250
		rect=3,1,27,28
		[/animation]

		[animation]
		id=spring
		[/animation]

		[animation]
		id=turn
		[/animation]

		[animation]
		id=hurt
		[/animation]
	
		
		[animation]
		id=attack
		rect=2,97,33,122
		frames=4
		duration=2
		reverse=yes
		attack_area=all
		[/animation]
		
	[/object_type]