make 1 player option work
parent
9b512d9b58
commit
51e6b293e9
|
@ -145,6 +145,13 @@ function TIC()
|
||||||
end
|
end
|
||||||
|
|
||||||
function handler_main_menu(action)
|
function handler_main_menu(action)
|
||||||
|
if action=="start-1-player" then
|
||||||
|
return { redirect=handler_draw_card }
|
||||||
|
elseif action=="start-2-player" then
|
||||||
|
elseif action=="start-3-player" then
|
||||||
|
elseif action=="start-4-player" then
|
||||||
|
end
|
||||||
|
|
||||||
local player_count_cards={
|
local player_count_cards={
|
||||||
Card:new(1, 1),
|
Card:new(1, 1),
|
||||||
Card:new(2, 2),
|
Card:new(2, 2),
|
||||||
|
@ -170,7 +177,7 @@ function handler_main_menu(action)
|
||||||
table.insert(elements, {
|
table.insert(elements, {
|
||||||
visual=card,
|
visual=card,
|
||||||
x=x, y=68,
|
x=x, y=68,
|
||||||
action=card,
|
action="start-"..i.."-player",
|
||||||
})
|
})
|
||||||
x=x+24+space_around
|
x=x+24+space_around
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue