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

« back to all changes in this revision

Viewing changes to data/objects/machines/chain_link.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=chain_link
 
4
        on_spawned="[
 
5
          set_var('base_x', x), set_var('base_y', y),
 
6
          set(schedule_speed, 5),
 
7
 
 
8
          set(x_schedule, transform(consts.x_schedule_base, x + (v*vars.radius)/1000)),
 
9
          set(y_schedule,
 
10
                    transform(consts.y_schedule_base, y + (v*vars.radius)/1000)),
 
11
          set(rotation_schedule, consts.rotation_schedule_base)
 
12
          ]"
 
13
 
 
14
                [vars]
 
15
                radius=100
 
16
                x_values="[]"
 
17
                y_values="[]"
 
18
                rotation_values="[]"
 
19
                [/vars]
 
20
                [consts]
 
21
                speed=5
 
22
                x_schedule_base="map(range(1000/25), 'c', wave((wave(c*25)+1000)/4 + 250))"
 
23
                y_schedule_base="map(range(1000/25), 'c', wave((wave(c*25)+1000)/4))"
 
24
                rotation_schedule_base="map(range(1000/25), 'c', 90 + (((wave(c*25)+1000)/2)*180)/1000)"
 
25
                [/consts]
 
26
                [animation]
 
27
                id=normal
 
28
                image=props/spikedball.png
 
29
                rect=5,7,14,17
 
30
                duration=100000000
 
31
                [/animation]
 
32
                [animation]
 
33
                id=normal2
 
34
                image=props/spikedball.png
 
35
                rect=14,7,23,17
 
36
                duration=100000000
 
37
                [/animation]
 
38
        [/object_type]