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

« back to all changes in this revision

Viewing changes to data/compiled/objects/chain_base.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="chain_base"
 
3
on_child_spawned="[
 
4
        if(child.type = 'spiked_ball', set(vars.ball, child),
 
5
          set(child.activation_area, vars.ball.activation_area))
 
6
]"
 
7
on_create="[
 
8
spawn('spiked_ball', x + 16, y + 16, 1, [set_var('radius', 210), set_var('speed', 5), set_var('parent', label)]),
 
9
 
 
10
map(range(20), 'radius', spawn('chain_link', x + 16, y + 16, 1, [set_var('radius', (radius+1)*10), set_var('parent', label),
 
11
  if((radius%2) = 0, [animation('normal2'), set(z, z - 1)], set(z, z - 2))
 
12
]))]"
 
13
        [vars]
 
14
        ball="null()"
 
15
        [/vars]
 
16
 
 
17
        [animation]
 
18
        collide="0,0,16,16"
 
19
        duration="10000000"
 
20
        frame_info="0,0,1,1,972,425,16,16"
 
21
        id="normal"
 
22
        image="compiled-2.png"
 
23
        rect="972,425,988,441"
 
24
        [/animation]
 
25
 
 
26
[/object_type]
 
27