Initial commit
This commit is contained in:
10
src/Makefile
Normal file
10
src/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
PLAYDATE_SDK_PATH := ~/playdate
|
||||
GAME := Crong
|
||||
|
||||
all: build
|
||||
|
||||
build: clean
|
||||
PLAYDATE_SDK_PATH=$(PLAYDATE_SDK_PATH) $(PLAYDATE_SDK_PATH)/bin/pdc -k main.lua ../$(GAME).pdx
|
||||
|
||||
clean:
|
||||
rm -rf ../$(GAME).pdx
|
19
src/main.lua
Normal file
19
src/main.lua
Normal file
@ -0,0 +1,19 @@
|
||||
import "CoreLibs/object"
|
||||
import "CoreLibs/graphics"
|
||||
import "CoreLibs/sprite"
|
||||
import "CoreLibs/timer"
|
||||
|
||||
local gfx <const> = playdate.graphics
|
||||
|
||||
function setup()
|
||||
|
||||
end
|
||||
|
||||
function playdate.update()
|
||||
|
||||
|
||||
playdate.timer.updateTimers()
|
||||
gfx.sprite.update()
|
||||
end
|
||||
|
||||
setup()
|
Reference in New Issue
Block a user