439 |
NewAnim("it-shogun3", {img="it-shogun-big", h=3, speed=160, pingpong=1, loop=1}) |
NewAnim("it-shogun3", {img="it-shogun-big", h=3, speed=160, pingpong=1, loop=1}) |
440 |
|
|
441 |
-- Springboard -- |
-- Springboard -- |
442 |
local r = Rect:new(0,0,32,32); |
do |
443 |
display.DefineSubImage("it-springboard", "it-springboard", 0, 0, r) |
local r = Rect:new(0,0,32,32); |
444 |
frames=buildframes(reverseframes(def_subimages("it-springboard", {h=2})),120) |
display.DefineSubImage("it-springboard", "it-springboard", 0, 0, r) |
445 |
def_anim("it-springboard_anim", frames) |
frames=buildframes(reverseframes(def_subimages("it-springboard", {h=2})),120) |
446 |
r:delete(); |
def_anim("it-springboard_anim", frames) |
447 |
|
r:delete(); |
448 |
|
end |
449 |
|
|
450 |
def_alias("it-bridge-oxyd", "invisible") |
def_alias("it-bridge-oxyd", "invisible") |
451 |
def_alias("it-sensor", "invisible") |
def_alias("it-sensor", "invisible") |
480 |
|
|
481 |
def_stone("st-rubberband") |
def_stone("st-rubberband") |
482 |
|
|
483 |
|
|
484 |
|
do |
485 |
|
local tiles = { |
486 |
|
"st-disco-light", |
487 |
|
"st-disco-medium", |
488 |
|
"st-disco-dark" |
489 |
|
} |
490 |
|
map_tiles({h=3}, |
491 |
|
function (i, rect) |
492 |
|
local model = %tiles[i] |
493 |
|
display.DefineSubImage(model, "st-disco", 0,0, rect) |
494 |
|
end) |
495 |
|
end |
496 |
|
|
497 |
-- other |
-- other |
498 |
|
|
499 |
do |
do |
838 |
local img = def_subimages("st-timer", {h=4}) |
local img = def_subimages("st-timer", {h=4}) |
839 |
def_anim("timer-anim", buildframes(img, 120), 1) |
def_anim("timer-anim", buildframes(img, 120), 1) |
840 |
def_solidstone("st-timer", "timer-anim") |
def_solidstone("st-timer", "timer-anim") |
841 |
def_stone("st-timeroff") |
def_solidstone("st-timeroff", "st-timer1") |
842 |
end |
end |
843 |
|
|
844 |
----------- |
----------- |