summaryrefslogtreecommitdiff
path: root/demo/main.lua
blob: 64ab0aebe941888f4b547f4a7302677fc4d76f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local fullscreen = false

local a_func = function(action, data)
    if (action == 0) then return end
    fullscreen = not fullscreen
    honey.window.set_fullscreen(fullscreen)
end

local b_func = function(action, data)
    if (action == 0) then return end
    local w, h = honey.window.get_size()
    print(w, h)
end

for k,v in pairs(honey.window) do
    print(k, v)
end

honey.window.set_title('honey engine demo')

honey.input.bind_key(honey.input.key.a, a_func)
honey.input.bind_key(honey.input.key.b, b_func)

function honey.update(dt)
end

--function honey.draw()
--   print('draw!')
--end