-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
33 lines (26 loc) · 796 Bytes
/
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
26
27
28
29
30
31
32
33
import "CoreLibs/graphics"
import "CoreLibs/sprites"
import "CoreLibs/animation"
import "game"
local gfx <const> = playdate.graphics
local copterImageTable = gfx.imagetable.new("img/copter")
local carriageImageTable = gfx.imagetable.new("img/carriage")
local statusbarImage = gfx.image.new("img/statusbar")
local f = gfx.font.new("font/ChicagoFLF-14")
local game = Game()
gfx.sprite.add(game)
function playdate.update()
--gfx.clear()
--gfx.setFont(f)
gfx.sprite.update()
--a:draw(x, y)
--b:draw(cx, cy)
-- jumper:moveTo(x, y)
--cx = cx + 1
--if cx == 400 then cx = -70 end
--statusbarImage:draw(6,189)
--gfx.drawText(copter:getHeight(), 330, 189)
--gfx.drawText("TEST", 200, 200)
-- gfx.drawTextInRect("*" .. tostring(y) .. "*", 330, 189, 59, 20)
playdate.drawFPS(1,1)
end