aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
blob: d6b4170904bdcfb265213a8521ad96984d3e5f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'love2d-fakecanvas/fakecanvas'

Screen = {}

Gamestate = require "hump.gamestate"
Menu = require "Gamestates/Menu"

function love.load()
	Gamestate.registerEvents()
	Gamestate.switch(Menu)
end

function love.update(dt)
	Screen.width, Screen.height = love.window.getDimensions()
end

function love.keypressed(key)
	if key == "escape" then
		love.event.quit()
	end
end