Initial commit

This commit is contained in:
Anna Rose 2023-09-29 19:07:15 +00:00
commit 2341e8711f
6 changed files with 70 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pdx

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
all: build
build:
make -C src/

24
license.md Normal file
View File

@ -0,0 +1,24 @@
Copyright 2023 Anna Rose Wiggins
⚠️ WARNING! ⚠️
☢️ 😱 DO NOT USE THIS PROGRAM. 😱 ☢️
This program is not a program of honor.
No highly esteemed function is executed here.
What is here is dangerous and repulsive to us.
The danger is still present, in your time, as it was in ours,
without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
This program is best shunned and left unused (but it is free software,
and you are welcome to redistribute it under certain conditions).
😱 ☢️ DO NOT USE THIS PROGRAM. ☢️ 😱
This program is licensed under the Sandia Message Public License,
sublicense Do What The Fuck You Want To Public License, Version 2.0.
This may be abbreviated as sandia-wtfpl.
You may obtain a copy of the License(s) at
https://github.com/cdanis/sandia-public-license/blob/main/LICENSE.md and
http://www.wtfpl.net/txt/copying/

12
readme.md Normal file
View File

@ -0,0 +1,12 @@
# <name>
<name> is a game for the [Playdate](https://play.date/) handheld console.
### Building
To build this code, install the [Playdate SDK](https://play.date/dev/) and run `make`. Update `PLAYDATE_SDK_PATH` in the Makefile if you have installed the SDK somewhere other than `~/playdate`.
`make` should produce a directory called `<Name>.pdx`. You can open this in the Playdate Simulator and sideload it onto your Playdate from there.
The Makefile is designed to be run under Linux and is untested on other platforms.

10
src/Makefile Normal file
View 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
View 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()