Rocket-Bytes/Source/Main.lua
2022-04-19 15:22:15 -06:00

32 lines
No EOL
604 B
Lua

local gfx <const> = playdate.graphics
local disp <const> = playdate.display
import "CoreLibs/object"
import "CoreLibs/graphics"
import "CoreLibs/sprites"
import "CoreLibs/math"
import "Player"
import "Tilemap"
-- Music
local song1 <const> = playdate.sound.sampleplayer.new("sfx/song1")
-- Font Setup
local font <const> = gfx.font.new("gfx/font")
gfx.setFont(font)
gfx.setBackgroundColor(gfx.kColorBlack)
song1:play(0, 1)
addTiles("levels/level1.rocketbyte")
addPlayer(10,10)
function playdate.update()
updatePlayer()
gfx.clear(gfx.kColorBlack)
gfx.sprite.update()
drawTiles()
end