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

« back to all changes in this revision

Viewing changes to data/objects/scene-fx/acid_controller.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
        [object_type]
 
2
        id=acid_controller
 
3
        ignore_collide=true
 
4
        zorder=-10
 
5
 
 
6
        [editor_info]
 
7
        category=controllers
 
8
                [var]
 
9
                name=zone_x1
 
10
                type=x
 
11
                value="x"
 
12
                [/var]
 
13
                [var]
 
14
                name=zone_x2
 
15
                type=x
 
16
                value="x+200"
 
17
                [/var]
 
18
                [var]
 
19
                name=zone_y1
 
20
                type=y
 
21
                value="y"
 
22
                [/var]
 
23
                [var]
 
24
                name=zone_y2
 
25
                type=y
 
26
                value="y+200"
 
27
                [/var]
 
28
        [/editor_info]
 
29
 
 
30
        [consts]
 
31
        damage=1
 
32
        [/consts]
 
33
 
 
34
        on_editor_changing_variable="remove_water(zone_x1, zone_y1, zone_x2, zone_y2)"
 
35
        on_editor_removed="remove_water(zone_x1, zone_y1, zone_x2, zone_y2)"
 
36
        on_editor_changed_variable="add_water(zone_x1, zone_y1, zone_x2, zone_y2, [70, 0, 70, 50])"
 
37
        on_editor_added="add_water(zone_x1, zone_y1, zone_x2, zone_y2, [70, 0, 70, 50])"
 
38
        
 
39
        on_start_level="[
 
40
            set(activation_area, [vars.zone_x1 - 50, vars.zone_y1 - 100, (vars.zone_x2 - vars.zone_x1) + 100, (vars.zone_y2 - vars.zone_y1) + 100])]"
 
41
        
 
42
        on_load="[
 
43
            set(alpha,0), add_particles('bubbles'), add_particles('fizz'),
 
44
                fire_event('setup_particles')]"
 
45
 
 
46
        on_setup_particles="[
 
47
           set(bubbles.area, [zone_x1, zone_y1, zone_x2, zone_y2]),
 
48
           set(fizz.min_x, vars.zone_x1 - x),
 
49
           set(fizz.max_x, vars.zone_x2 - x),
 
50
           set(fizz.min_y, (vars.zone_y1 - 15) - y),
 
51
           set(fizz.max_y, (vars.zone_y1 + 15) - y),
 
52
           set(fizz.spawn_rate, 2*(zone_x2 - zone_x1))
 
53
           ]
 
54
           "
 
55
        
 
56
        on_end_anim="animation('normal')"
 
57
                [animation]
 
58
                id=normal
 
59
                image=effects/particles.png
 
60
                x=147
 
61
                y=102
 
62
                w=28
 
63
                h=28
 
64
                frames=1
 
65
                duration=1000
 
66
                [/animation]
 
67
 
 
68
 
 
69
                [particle_system]
 
70
                id=bubbles
 
71
                type=water
 
72
                number_of_particles=100
 
73
                repeat_period=200
 
74
                velocity_y=-1
 
75
                velocity_x=0
 
76
                velocity_rand=4
 
77
                dot_size=4
 
78
                color=120,250,200,200
 
79
                [/particle_system]
 
80
 
 
81
 
 
82
                [particle_system]
 
83
                id=fizz
 
84
                type=simple
 
85
                spawn_rate=600
 
86
                time_to_live=80
 
87
                min_x=-60
 
88
                max_x=260
 
89
                min_y=-15
 
90
                max_y=15
 
91
                velocity_y=-200
 
92
                velocity_x=260
 
93
                velocity_x_random=200
 
94
                velocity_y_random=400
 
95
                accel_y=-10
 
96
                #color=255,255,255,255
 
97
                delta_a=2
 
98
                        [animation]
 
99
                        id=sparkle
 
100
                        image=effects/particles.png
 
101
                        rect=3,93,9,99
 
102
                        pad=3
 
103
                        frames=5
 
104
                        frames_per_row=5
 
105
                        scale=2
 
106
                        duration=8
 
107
                        [/animation]
 
108
                [/particle_system]
 
109
 
 
110
        [/object_type]