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