27 lines
No EOL
522 B
Lua
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 |