-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.lua
More file actions
24 lines (17 loc) · 767 Bytes
/
test.lua
File metadata and controls
24 lines (17 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local screen = require("src.display.screen")
local assets = require("src.assets")
local ui = require("src.display.ui")
local api = {}
function api.load()
print("Welcome nerdy developer to the test scene")
api.orientation = 0
end
function api.draw()
love.graphics.draw(assets.textures.splash_screen, screen.relative_to_percent.width(50), screen.relative_to_percent.height(50), api.orientation, 5, 5, assets.textures.splash_screen:getWidth() / 2, assets.textures.splash_screen:getHeight() / 2)
ui.print_centered("Lifedustry", screen.relative_to_percent.width(50), screen.relative_to_percent.height(10))
love.graphics.setBackgroundColor(0, 0.30, 1, 0)
end
function api.update(dt)
api.orientation = api.orientation + 0.02
end
return api