lot of things ig. Lastly made function also show the card on passed coordinates. Coordinates are not getting passed over yet in blackjack.lua. It isnt testet also lol
This commit is contained in:
9
main.lua
9
main.lua
@@ -6,11 +6,12 @@ require "blackjack"
|
||||
function love.load()
|
||||
love.window.setTitle("Spiele Auswahl")
|
||||
currentScreen = "menu"
|
||||
love.graphics.setBackgroundColor(0.30 ,0.30 ,0.46, 1)
|
||||
end
|
||||
|
||||
function love.update(dt)
|
||||
if currentScreen == "blackjack" then
|
||||
updateBlackjack(dt)
|
||||
UpdateBlackjack(dt)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -18,7 +19,7 @@ function love.draw()
|
||||
if currentScreen == "menu" then
|
||||
drawMenu()
|
||||
elseif currentScreen == "blackjack" then
|
||||
drawBlackjack()
|
||||
DrawBlackjack()
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,10 +27,10 @@ function love.keypressed(key)
|
||||
if currentScreen == "menu" then
|
||||
if key == '1' then
|
||||
currentScreen = "blackjack"
|
||||
loadBlackjack()
|
||||
LoadBlackjack()
|
||||
end
|
||||
elseif currentScreen == "blackjack" then
|
||||
handleBlackjackInput(key)
|
||||
HandleBlackjackInput(key)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user