You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
love2d-tank/Game/GameKeyPressed.lua

15 lines
213 B

function GameKeyPressed(key)
7 months ago
if key == "escape" then
_G.GAMESTATE = "MENU"
print("STATE CHANEGD: MENU!")
7 months ago
end
if key == "b" then
DebugFlag = not DebugFlag
end
if key == "r" then
love.load()
end
end