341 |
|
|
342 |
-- Jumping black ball -- |
-- Jumping black ball -- |
343 |
namelist=def_subimages("ac-blackball-jump", {h=4, imgw=32, imgh=32, xoff=-16, yoff=-16}) |
namelist=def_subimages("ac-blackball-jump", {h=4, imgw=32, imgh=32, xoff=-16, yoff=-16}) |
344 |
|
shadows=def_subimages("sh-blackball-jump", {h=4, imgw=32, imgh=32, xoff=-10, yoff=-10}) |
345 |
|
frames={} |
346 |
|
for i=1,4 do |
347 |
|
def_shmodel("bb-jump"..i, namelist[i], shadows[i]) |
348 |
|
tinsert(frames, "bb-jump"..i) |
349 |
|
end |
350 |
def_anim("ac-blackball-jump", |
def_anim("ac-blackball-jump", |
351 |
pingpong(buildframes(namelist, 70))) |
pingpong(buildframes(frames, 70))) |
|
-- XXX add shadows |
|
352 |
|
|
353 |
|
|
354 |
-- Black marble in inventory -- |
-- Black marble in inventory -- |
388 |
def_floors{"fl-dunes", "fl-sand", "fl-bluegreen", "fl-bluegreenx"} |
def_floors{"fl-dunes", "fl-sand", "fl-bluegreen", "fl-bluegreenx"} |
389 |
def_floors{"fl-inverse"} |
def_floors{"fl-inverse"} |
390 |
def_image("fl-normal") |
def_image("fl-normal") |
391 |
def_randfloor("fl-hay",{"fl-hay1", "fl-hay2"}) |
def_randfloor_si("fl-hay", 4) |
392 |
|
--def_randfloor("fl-hay",{"fl-hay1", "fl-hay2"}) |
393 |
def_floors{"fl-floor_001"} |
def_floors{"fl-floor_001"} |
394 |
def_floors{"fl-ice_001"} |
def_floors{"fl-ice_001"} |
395 |
def_floors{"fl-stone"} |
def_floors{"fl-stone"} |
509 |
def_image("sh-grate2") |
def_image("sh-grate2") |
510 |
def_image("sh-glass") |
def_image("sh-glass") |
511 |
def_image("sh-white4") |
def_image("sh-white4") |
512 |
|
def_image("sh-puzzle1") |
513 |
|
|
514 |
-- stone models |
-- stone models |
515 |
if (video.GetColorDepth()==8) then |
if (video.GetColorDepth()==8) then |
824 |
|
|
825 |
-- Puzzle stones -- |
-- Puzzle stones -- |
826 |
def_subimages("st-puzzle", {modelname="st-puzzlex",w=4,h=4}) |
def_subimages("st-puzzle", {modelname="st-puzzlex",w=4,h=4}) |
827 |
for i=1,16 do def_solidstone("st-puzzle"..i, "st-puzzlex"..i) end |
for i=2,16 do def_solidstone("st-puzzle"..i, "st-puzzlex"..i) end |
828 |
|
def_shmodel("st-puzzle1", "st-puzzlex1", "sh-puzzle1") |
|
-- function make_puzzle(no) |
|
|
-- def_stone("st-puzzle"..no, nil, |
|
|
-- {filename="st-puzzletempl_"..format("%04d", no)}) |
|
|
-- end |
|
|
-- for i=1,16 do make_puzzle(i) end |
|
829 |
|
|
830 |
-- Door -- |
-- Door -- |
831 |
def_image("st-doorh-open") |
def_image("st-doorh-open") |
929 |
progress(100) |
progress(100) |
930 |
|
|
931 |
ring_anim_frames = buildframes(framenames("ring-anim", 1,8), 50) |
ring_anim_frames = buildframes(framenames("ring-anim", 1,8), 50) |
932 |
|
--ring_anim_frames = buildframes(framenames("ring-animb", 2,11), 50) |
933 |
def_anim_images("ring-anim", ring_anim_frames, {xoff=-16,yoff=-16}) |
def_anim_images("ring-anim", ring_anim_frames, {xoff=-16,yoff=-16}) |