Rocket-Bytes/Source/Main.lua
2022-04-22 12:02:47 -06:00

27 lines
No EOL
520 B
Lua

import "CoreLibs/graphics"
import "CoreLibs/sprites"
import "Player"
import "Map"
local gfx <const> = playdate.graphics
local disp <const> = playdate.display
local font <const> = gfx.font.new("gfx/font")
gfx.setFont(font)
gfx.setBackgroundColor(gfx.kColorBlack)
local song1 <const> = playdate.sound.sampleplayer.new("sfx/song1")
song1:play(0, 1)
addMap("levels/level1.json")
addPlayer(50,50)
function playdate.update()
updatePlayer()
gfx.clear(gfx.kColorBlack)
gfx.sprite.update()
drawTiles()
end