Set window size and title, press Esc to close game

main
Tyler Scott 2022-02-02 20:54:59 +07:00
commit 9fc543a95a
2 changed files with 10 additions and 0 deletions

5
conf.lua Normal file
View File

@ -0,0 +1,5 @@
function love.conf(t)
t.window.title = "Bubble Shooter"
t.window.width = 1600
t.window.height = 900
end

5
main.lua Normal file
View File

@ -0,0 +1,5 @@
function love.keypressed(key, scan_code, is_repeat)
if key == 'escape' then
love.event.quit()
end
end