1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-06-26 03:50:55 +03:00

Карта села в вашем кармане

This commit is contained in:
Alexander Yakovlev 2017-02-21 21:06:05 +07:00
parent 67750971b6
commit 43f043ded8
4 changed files with 88 additions and 5 deletions

BIN
images/map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
images/marker.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,001 B

BIN
images/satellite.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

View file

@ -5,10 +5,53 @@ require "dlg"
require 'dbg' -- ПОЧЕМУ-ТО НЕ РАБОТАЕТ
declare "pl" ({})
require 'tools'
-- require 'hideinv'
format.dash = true
format.quotes = true
format.para = true
-- https://www.google.ru/maps/place/%D0%9C%D0%B5%D0%BA%D1%81%D0%B8%D0%BA%D0%B0/@22.8355052,-105.0808555,16z/data=!4m5!3m4!1s0x84043a3b88685353:0xed64b4be6b099811!8m2!3d23.634501!4d-102.552784
init = function ()
map = obj {
nam = "Карта",
inv = function()
walk('map')
end
}
take(map)
end
local markers = {
chos = "626,666",
}
room {
nam = 'map',
disp = "Карта",
hideinv = true,
enter = function (here, from)
pl.current = from.nam
end,
pic = function()
local map = 'images/satellite.jpg'
if markers[pl.current] then
map = map .. ';images/marker.png@' .. markers[pl.current]
end
return map
end,
decor = [[
Вы сверяетесь с картой.^^
{back|Назад}
]],
obj = {
obj {
nam = 'back',
act = function()
return walkout()
end
}
}
}
dlg {
nam = 'main',
dsc = [[
@ -28,11 +71,51 @@ dlg {
]],
obj = {
{
{'Инженер (она)', function() pl.gender = "she"; pl.plural = false; walk('start2'); return true; end},
{'Инженер (он)', function() pl.gender = "he"; pl.plural = false; walk('start2'); return true;end},
{'Инженер (оно)', function() pl.gender = "it"; pl.plural = false; walk('start2'); return true; end},
{'Инженер (они)', function() pl.gender = "they"; pl.plural = false; walk('start2'); return true;end},
{'Инженеры (они)', function() pl.gender = "they"; pl.plural = true; walk('start2'); return true;end}
{
'Инженер (она)',
function()
pl.gender = "she";
pl.plural = false;
walk('start2');
return true;
end
},
{
'Инженер (он)',
function()
pl.gender = "he";
pl.plural = false;
walk('start2');
return true;
end
},
{
'Инженер (оно)',
function()
pl.gender = "it";
pl.plural = false;
walk('start2');
return true;
end
},
{
'Инженер (они)',
function()
pl.gender = "they";
pl.plural = false;
walk('start2');
return true;
end
},
{
'Инженеры (они)',
function()
pl.gender = "they";
pl.plural = true;
walk('start2');
return true;
end
}
}
}
}