1099 |
------------------- |
------------------- |
1100 |
-- Bolder stones -- |
-- Bolder stones -- |
1101 |
------------------- |
------------------- |
1102 |
|
|
1103 |
do |
do |
1104 |
local img=def_subimages("st-bolder", {w=4,h=3}) |
local img=def_subimages("st-bolder", {w=4,h=3}) |
1105 |
|
local imgfall=def_subimages("st-bolder-fall", {w=4,h=3}) |
1106 |
|
|
1107 |
function def_bolder(orient, start) |
function def_bolder(orient, start) |
1108 |
local animname="st-bolder"..orient.."a" |
local animname="st-bolder"..orient.."a" |
1109 |
local frames={%img[start], %img[start+1], %img[start+2]} |
local frames={%img[start], %img[start+1], %img[start+2]} |
1110 |
def_anim(animname, buildframes(frames, 120),1) |
def_anim(animname, buildframes(frames, 120),1) |
1111 |
def_shmodel("st-bolder-"..orient, animname, "sh-solid") |
def_shmodel("st-bolder-"..orient, animname, "sh-solid") |
1112 |
|
|
1113 |
|
animname="st-bolder-"..orient.."-fall-anim" |
1114 |
|
frames={%imgfall[start],%imgfall[start+1],%imgfall[start+2]} |
1115 |
|
def_anim(animname, buildframes(frames, 120), 0) |
1116 |
end |
end |
1117 |
|
|
1118 |
def_bolder("n",1) |
def_bolder("n",1) |