35 |
function mirror_switch(x,y) |
function mirror_switch(x,y) |
36 |
switches=switches+1 |
switches=switches+1 |
37 |
local funcn = "swit_"..switches |
local funcn = "swit_"..switches |
38 |
dostring(funcn.." = function() switch("..switches..") end") |
dostring(funcn.." = function() switch("..switches..") end") |
39 |
set_stone("st-switch",x,y,{action="callback",target=funcn}); |
set_stone("st-switch",x,y,{action="callback",target=funcn}); |
40 |
end |
end |
41 |
|
|
54 |
cells["%"] = cell{parent={cells[" "],named_mirror}} |
cells["%"] = cell{parent={cells[" "],named_mirror}} |
55 |
cells["x"] = cell{parent={cells[" "],mirror_switch}} |
cells["x"] = cell{parent={cells[" "],mirror_switch}} |
56 |
|
|
57 |
cells["a"] = cell{parent=cells[" "],actor={"ac-whiteball", {player=0}}} |
cells["a"] = cell{parent=cells[" "],actor={"ac-whiteball", {player=0, controllers=1}}} |
58 |
cells["o"] = cell{oxyd} |
cells["o"] = cell{oxyd} |
59 |
cells["."] = cell{parent=cells[" "],stone={"st-laser-w", {on=1}}} |
cells["."] = cell{parent=cells[" "],stone={"st-laser-w", {on=1}}} |
60 |
cells["O"] = cell{parent=cells[" "],stone="st-fakeoxyd"} |
cells["O"] = cell{parent=cells[" "],stone="st-fakeoxyd"} |