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

« back to all changes in this revision

Viewing changes to data/objects/props-interactive/horizontal_rope.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=horizontal_rope
 
3
 
 
4
        [vars]
 
5
        max_length=300
 
6
        length=150
 
7
        start_pos=0
 
8
        [/vars]
 
9
 
 
10
        [properties]
 
11
        set_pos_len="def(pos, len) [set(vars.length, len), set(vars.start_pos, pos%5), fire_event(me, 'calculate_segments')]"
 
12
        move_pos="def(amount) [set(vars.start_pos, (vars.start_pos+amount)%5), fire_event(me, 'calculate_segments')]"
 
13
 
 
14
        set_x="def(new_x) [set(x, x + diff), fire_event('calculate_segments')]"
 
15
 
 
16
        [/properties]
 
17
 
 
18
        on_spawned="fire_event('calculate_segments')"
 
19
        on_calculate_segments="set(draw_area, [vars.start_pos, 0, vars.length/2, 4])"
 
20
 
 
21
        #we don't want to compile the image since we rely on it tiling.
 
22
        no_compile_image="props/rope-horizontal.png"
 
23
 
 
24
        [animation]
 
25
        image=props/rope-horizontal.png
 
26
        id=normal
 
27
        x=0
 
28
        w=4
 
29
        y=0
 
30
        h=4
 
31
        [/animation]
 
32
 
 
33
[/object_type]