commit 2341e8711fd803005df8f4c7afcce6f65bab31b2 Author: Anna Rose Date: Fri Sep 29 19:07:15 2023 +0000 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e00b594 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pdx diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cf18b5c --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +all: build + +build: + make -C src/ diff --git a/license.md b/license.md new file mode 100644 index 0000000..1e52f32 --- /dev/null +++ b/license.md @@ -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/ diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..153495a --- /dev/null +++ b/readme.md @@ -0,0 +1,12 @@ +# + + 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 `.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. diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..708b956 --- /dev/null +++ b/src/Makefile @@ -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 diff --git a/src/main.lua b/src/main.lua new file mode 100644 index 0000000..5199022 --- /dev/null +++ b/src/main.lua @@ -0,0 +1,19 @@ +import "CoreLibs/object" +import "CoreLibs/graphics" +import "CoreLibs/sprite" +import "CoreLibs/timer" + +local gfx = playdate.graphics + +function setup() + +end + +function playdate.update() + + + playdate.timer.updateTimers() + gfx.sprite.update() +end + +setup()