make first game random by moving setup after menu
parent
4555a95357
commit
778c16dadd
|
@ -111,15 +111,6 @@ function BOOT()
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
stacks[1] = create_deck()
|
|
||||||
shuffle(stacks[1])
|
|
||||||
table.insert(locations,{1,2,2})
|
|
||||||
-- Set up stacks
|
|
||||||
for i=1,7 do
|
|
||||||
stacks[i+6]=draw_cards(stacks[1], i)
|
|
||||||
table.insert(locations,{i+6,i*30,30})
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function TIC()
|
function TIC()
|
||||||
|
@ -159,7 +150,19 @@ aces of each suite.
|
||||||
]], 4, 78, 15)
|
]], 4, 78, 15)
|
||||||
|
|
||||||
local mx,my,mleft,middle,mright,scrollx,scrolly=mouse()
|
local mx,my,mleft,middle,mright,scrollx,scrolly=mouse()
|
||||||
if btnp(4) or btnp(5) or mleft then game_state='PLAY' end
|
if btnp(4) or btnp(5) or mleft then
|
||||||
|
game_state='PLAY'
|
||||||
|
|
||||||
|
-- draw cards
|
||||||
|
stacks[1] = create_deck()
|
||||||
|
shuffle(stacks[1])
|
||||||
|
table.insert(locations,{1,2,2})
|
||||||
|
-- Set up stacks
|
||||||
|
for i=1,7 do
|
||||||
|
stacks[i+6]=draw_cards(stacks[1], i)
|
||||||
|
table.insert(locations,{i+6,i*30,30})
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function update()
|
function update()
|
||||||
|
|
Loading…
Reference in New Issue