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

« back to all changes in this revision

Viewing changes to data/compiled/objects/current_generator.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="current_generator"
 
3
ignore_collide="true"
 
4
on_create="[set(alpha,0),
 
5
                set(current_generator, rect_current(zone_x1, zone_y1 ,abs(zone_x1 - zone_x2) ,abs(zone_y1 - zone_y2) , current_vel_x, current_vel_y, strength)),
 
6
                add_particles('particles'),
 
7
                fire_event('setup_particles')]"
 
8
on_end_anim="animation('normal')"
 
9
on_setup_particles="[
 
10
                set(particles.velocity_x, current_vel_x*10),
 
11
                set(particles.velocity_y, current_vel_y*10),
 
12
                set(particles.min_x, min(zone_x1, zone_x2) - x),
 
13
                set(particles.max_x, max(zone_x1, zone_x2) - x),
 
14
                set(particles.min_y, min(zone_y1, zone_y2) - y),
 
15
                set(particles.max_y, max(zone_y1, zone_y2) - y)
 
16
                ]"
 
17
zorder="50"
 
18
        [animation]
 
19
        duration="1000"
 
20
        frame_info="0,0,2,1,224,997,26,27"
 
21
        frames="1"
 
22
        id="normal"
 
23
        image="compiled-1.png"
 
24
        rect="224,997,251,1024"
 
25
        [/animation]
 
26
 
 
27
        [particle_system]
 
28
        id="particles"
 
29
        spawn_rate="3000"
 
30
        time_to_live="50"
 
31
        type="simple"
 
32
                [animation]
 
33
                accel_y="-1"
 
34
                duration="10"
 
35
                frame_info="1,1,2,1,318,5,1,2,2,1,1,1,319,5,1,2,1,2,2,1,320,5,1,1,1,1,2,2,321,5,1,1,2,1,1,2,322,5,1,1"
 
36
                frames="5"
 
37
                id="sparkle"
 
38
                image="compiled-0.png"
 
39
                rect="317,4,320,7"
 
40
                scale="2"
 
41
                [/animation]
 
42
 
 
43
        [/particle_system]
 
44
 
 
45
[/object_type]
 
46