This commit is contained in:
Nico
2025-07-31 19:56:08 +02:00
commit 4ccfa4b12e
8 changed files with 242 additions and 0 deletions

35
main.lua Normal file
View File

@@ -0,0 +1,35 @@
local love = require "love"
require "menu"
require "blackjack"
function love.load()
love.window.setTitle("Spiele Auswahl")
currentScreen = "menu"
end
function love.update(dt)
if currentScreen == "blackjack" then
updateBlackjack(dt)
end
end
function love.draw()
if currentScreen == "menu" then
drawMenu()
elseif currentScreen == "blackjack" then
drawBlackjack()
end
end
function love.keypressed(key)
if currentScreen == "menu" then
if key == '1' then
currentScreen = "blackjack"
loadBlackjack()
end
elseif currentScreen == "blackjack" then
handleBlackjackInput(key)
end
end