~ubuntu-branches/ubuntu/utopic/frogatto-data/utopic

« back to all changes in this revision

Viewing changes to data/objects/bugs/playable_mosquito_test.cfg

  • Committer: Bazaar Package Importer
  • Author(s): Dmitry E. Oboukhov
  • Date: 2010-07-16 12:14:11 UTC
  • Revision ID: james.westby@ubuntu.com-20100716121411-tobhfbyxrrz46dwz
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
        [object_type]
 
3
        id=playable_mosquito_test
 
4
        hitpoints=1
 
5
        mass=5
 
6
        springiness=100
 
7
        friction=5
 
8
 
 
9
        on_collide_with="set(hitpoints, hitpoints - 1)"
 
10
        on_die="[spawn('die_cloud', midpoint_x, midpoint_y, facing)]"
 
11
        on_process="if((ctrl_left and facing > 0) or (ctrl_right and facing < 0),
 
12
                    [facing(-facing), animation('turn')], null())"
 
13
        on_end_anim="animation('fly')"
 
14
        on_collide="[facing(-facing), animation('turn')]"
 
15
        on_jumped_on="animation('spring')"
 
16
#       on_collide_with="elastic_collision(collide_with,me)"
 
17
                [animation]
 
18
                id=fly
 
19
                image=enemies/mosquito.png
 
20
                duplicates=12
 
21
                rect=2,2,32,32
 
22
                collide_x=2
 
23
                collide_y=12
 
24
                collide_w=28
 
25
                collide_h=16
 
26
                feet_x=10
 
27
                feet_y=18
 
28
                frames=2
 
29
                pad=3
 
30
                duration=6
 
31
                accel_x=20
 
32
                [/animation]
 
33
 
 
34
                [animation]
 
35
                id=fly
 
36
                image=enemies/mosquito.png
 
37
                rect=70,2,100,32
 
38
                collide_x=2
 
39
                collide_y=12
 
40
                collide_w=28
 
41
                collide_h=16
 
42
                feet_x=10
 
43
                feet_y=18
 
44
                frames=2
 
45
                pad=3
 
46
                duration=6
 
47
                accel_x=20
 
48
                reverse=yes
 
49
                [/animation]
 
50
 
 
51
                [animation]
 
52
                id=spring
 
53
                image=enemies/mosquito.png
 
54
                rect=2,36,32,66
 
55
                collide_x=2
 
56
                collide_y=12
 
57
                collide_w=28
 
58
                collide_h=16
 
59
                feet_x=10
 
60
                feet_y=18
 
61
                frames=5
 
62
                pad=3
 
63
                duration=3
 
64
                [/animation]
 
65
 
 
66
                [animation]
 
67
                id=turn
 
68
                image=enemies/mosquito.png
 
69
                rect=2,70,32,100
 
70
                collide_x=2
 
71
                collide_y=12
 
72
                collide_w=28
 
73
                collide_h=16
 
74
                feet_x=10
 
75
                feet_y=18
 
76
                frames=1
 
77
                pad=3
 
78
                duration=10
 
79
                [/animation]
 
80
 
 
81
        [/object_type]