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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
[object_type]
id=skeeter_spawner
hitpoints=2
on_end_normal_anim="animation('shoot')"
on_end_shoot_anim="animation('normal')"
on_shoot="spawn('skeeter', midpoint_x, y-40, facing)"
on_end_normal_wounded_anim="animation('shoot_wounded')"
on_end_shoot_wounded_anim="animation('normal_wounded')"
on_hit_by_player="[set(hitpoints, hitpoints - hit_by.damage),animation('hurt'),set(green, 100), set(blue, 100)]"
on_end_hurt_anim="[set(green, 255), set(blue, 255),animation('normal_wounded')]"
on_hurtflicker="if(green = 100,[set(green, 255), set(blue, 255)],[set(green, 100), set(blue, 100)])"
on_die="[score(level,10), spawn('die_cloud', midpoint_x, midpoint_y, facing), spawn_item(me)]"
[animation]
id=normal
image=enemies/bug-plant.png
rect=36,3,65,40
pad=3
collide_x=2
collide_y=4
collide_w=26
collide_h=30
feet_x=16
feet_y=36
frames=1
duration=80
accel_y=50
[/animation]
[animation]
id=normal_wounded
image=enemies/bug-plant.png
rect=36,44,65,81
pad=3
collide_x=2
collide_y=4
collide_w=26
collide_h=30
feet_x=16
feet_y=36
frames=1
duration=120
accel_y=50
[/animation]
[animation]
id=shoot_wounded
image=enemies/bug-plant.png
rect=3,44,32,81
reverse=yes
pad=3
collide_x=2
collide_y=4
collide_w=26
collide_h=30
feet_x=16
feet_y=36
frames=4
duration=4
events="25:shoot"
[/animation]
[animation]
id=hurt
image=enemies/bug-plant.png
rect=3,44,32,81
pad=3
collide_x=2
collide_y=4
collide_w=26
collide_h=30
feet_x=16
feet_y=36
frames=1
duration=18
events="6:12:18:hurtflicker"
[/animation]
[animation]
id=shoot
image=enemies/bug-plant.png
rect=3,3,32,40
reverse=yes
pad=3
collide_x=2
collide_y=4
collide_w=26
collide_h=30
feet_x=16
feet_y=36
frames=4
duration=4
events="25:shoot"
[/animation]
[/object_type]
|