]> git.r.bdr.sh - rbdr/pico-engine/blame - build/Debug/Pico-Lua-Test.app/Contents/Resources/npc_jumper.lua
first commit
[rbdr/pico-engine] / build / Debug / Pico-Lua-Test.app / Contents / Resources / npc_jumper.lua
CommitLineData
10a0e290
BB
1--Configuration for the Jumper
2this.actorname = "Enemy: Jumper"
3this.enemy = 1
4this.controllable = 0
5this.jumpstrength = 6
6
7print(">>> Entity Created - "..this.actorname);
8
9function 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
13end
14
15function this.act(this)
16 this:jump()
17end
18
19--END