simple changes

This commit is contained in:
Paul Liverman
2015-12-06 11:25:22 -08:00
parent 32d9d1d753
commit 169cd5651e
2 changed files with 11 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
Does what it says on the tin (including little notes at the bottom on how to use it!). Does what it says on the tin (including little notes at the bottom on how to use it!).
The only thing it won't tell you how to do is press m to generate a new deck (clipped in the top left corner). This is because that's not really intended, and this is a brand new super alpha project thing. The only thing it won't tell you how to do is press M to generate a new deck (clipped in the top left corner). This is because that's not really intended, and this is a brand new super alpha project thing. (Oh, and press J to get 2 Jokers.)
--- ---

View File

@@ -29,12 +29,15 @@ local function makeDeck(jokers)
end end
function love.load() function love.load()
insert(items, makeDeck(true)) insert(items, makeDeck(false))
items[1]:shuffleCards() items[1]:shuffleCards()
items[1]:moveTo(lg.getWidth()/2, lg.getHeight()/2) items[1]:moveTo(lg.getWidth()/2, lg.getHeight()/2)
items[2] = Card("", "Joker") items[2] = Card("", "Joker")
items[2]:moveTo(100, 100) items[2]:moveTo(80, 100)
items[2]:flip() items[2]:flip()
items[3] = Card("", "Joker")
items[3]:moveTo(85, 105)
items[3]:flip()
end end
local holding = false -- we might be holding something! local holding = false -- we might be holding something!
@@ -254,7 +257,11 @@ function love.keypressed(key)
end end
if key == "m" then if key == "m" then
insert(items, makeDeck(true)) insert(items, makeDeck(false))
end
if key == "j" then
insert(items, Card("", "Joker"))
insert(items, Card("", "Joker"))
end end
end end