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:
Nico
2025-08-08 00:10:21 +02:00
parent b9cf171776
commit 686f6d8962
11 changed files with 56 additions and 139 deletions

View File

@@ -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