-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
25 lines (22 loc) · 1.66 KB
/
main.lua
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
-- ░█████╗░██████╗░███████╗███╗░░██╗ ░██████╗░█████╗░███╗░░██╗██╗░█████╗░
-- ██╔══██╗██╔══██╗██╔════╝████╗░██║ ██╔════╝██╔══██╗████╗░██║██║██╔══██╗
-- ██║░░██║██████╔╝█████╗░░██╔██╗██║ ╚█████╗░██║░░██║██╔██╗██║██║██║░░╚═╝
-- ██║░░██║██╔═══╝░██╔══╝░░██║╚████║ ░╚═══██╗██║░░██║██║╚████║██║██║░░██╗
-- ╚█████╔╝██║░░░░░███████╗██║░╚███║ ██████╔╝╚█████╔╝██║░╚███║██║╚█████╔╝
-- ░╚════╝░╚═╝░░░░░╚══════╝╚═╝░░╚══╝ ╚═════╝░░╚════╝░╚═╝░░╚══╝╚═╝░╚════╝░
-- Made by Evanzap
function love.load()
local sti = require "lib/sti"
local sensorlib = require "lib/sensor"
local testlevel = sti("maps/testlevel.lua")
player = require "objects.player"
end
function love.update(dt)
if dt < 1 / 30 then
love.timer.sleep(1 / 30 - dt)
end
player.update()
end
function love.draw()
player.draw()
end