]>
Commit | Line | Data |
---|---|---|
10a0e290 BB |
1 | --Configuration for the Jumper |
2 | this.actorname = "Enemy: Jumper" | |
3 | this.enemy = 1 | |
4 | this.controllable = 0 | |
5 | this.jumpstrength = 6 | |
6 | ||
7 | print(">>> Entity Created - "..this.actorname); | |
8 | ||
9 | function this.jump(this) | |
10 | if (this:get_vertical_speed() == 0 and math.random(150) == 50) then | |
11 | this:set_vertical_speed(this:get_vertical_speed()-this.jumpstrength) | |
12 | end | |
13 | end | |
14 | ||
15 | function this.act(this) | |
16 | this:jump() | |
17 | end | |
18 | ||
19 | --END |