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

27 lines
No EOL
522 B
Lua

import "CoreLibs/graphics"
import "CoreLibs/sprites"
import "Player"
import "Map"
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)
addTiles("levels/level1.rocketbyte")
addPlayer(10,10)
function playdate.update()
updatePlayer()
gfx.clear(gfx.kColorBlack)
gfx.sprite.update()
drawTiles()
end