~alect/jaydate

Janet bindings for the Playdate C SDK
update readme with ideal install and usage
initial commit.. definitly doesnt work yet

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~alect/jaydate
read/write
git@git.sr.ht:~alect/jaydate

You can also use your local clone with git send-email.

Janet bindings to the Playdate C SDK. The bindings are faithful to the original C API, but function names have been "lispified" (kebab case, question marks instead of the word "Is", etc.).

#Install

  1. You'll need the Playdate SDK installed, it can be found here. Be sure to go through the readme within the sdk download!
  2. [sudo] jpm install https://git.sr.ht/~alect/jaydate

#What Usage should look like

NOTE: THIS DOES NOT WORK YET!

  1. Create pdxinfo in your source dir, something like
name=Hello Janet
author=Alec T
description=Janet on the playdate, wwaaaatt?!
bundleID=com.alect.hellojanet
imagePath=
  1. create main.janet in your source dir
(use jaydate)

(var pd (dyn :pd))

(defn update []
  (gfx/clear pd :white)
  (gfx/draw-line pd 100 100 200 100 3 :black))
  1. use jpm run sim to run the project in the playdate simulator!