summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-21 21:53:43 -0500
committersanine-a <sanine.not@pm.me>2020-10-21 21:53:43 -0500
commit78553e775f618d20e328bc85c635fbab4bf43d60 (patch)
tree6821c5bad562617030e0208045491c98f4daf75d /demo
parentfd6e5bcef96ac5e769470823e24b984c9394bfd5 (diff)
add table recurtion to honey_lua_create_table and fix input setup
Diffstat (limited to 'demo')
-rw-r--r--demo/main.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/demo/main.lua b/demo/main.lua
index 8c0072f..ba548b9 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -1,14 +1,15 @@
-for key, value in pairs(honey.input.key) do
+for key, value in pairs(honey.input) do
print(key, value)
end
local total_time = 0
---function honey.update(dt)
--- total_time = total_time + dt
--- print(dt)
---end
---
+function honey.update(dt)
+ if honey.input.is_down(honey.input.key.a) then
+ print('a pressed!')
+ end
+end
+
--function honey.draw()
-- print('draw!')
--end