Get Started
Need help getting started?
πΊ Check out these video tutorials on YouTube.
π€ Or chat with the Panels Partner custom GPT.
Requirements
- Playdate SDK
- Playdate Console (optional)
Setup
From Template Project
- Clone the Panels Project Template. This is a Template Repo. Click βUse this templateβ to create your own fresh repo with all the contents of the project template.
-
The template project includes the Panels framework as a git submodule. Be sure to properly initialize the submodule when cloning the repo.
In most cases the easiest way to this will be to clone with the
recurse-submodules
option:
git clone --recurse-submodules https://github.com/cadin/panels-project-template.git
- Start editing table in
myComicData.lua
.
Manual Setup
- Clone the Panels repo into your project, preferrably into a
libraries/panels
folder. - Inside your
main.lua
file import Panels. - Create or import your
comicData
table. - Start Panels with your
comicData
table as the sole argument.
Example main.lua
File:
import 'libraries/panels/Panels'
local comicData = {
-- comic data goes here...
}
Panels.start(comicData)
Project Structure
Panels expects to be placed in a folder called libraries
within your project source folder.
π MyProjectSource βββ π main.lua βββ π audio βββ π images βββ π libraries βββ π panels
If you need to place Panels somewhere else in your project, youβll need to update the path
setting before starting Panels:
Panels.Settings.path = "frameworks/panels/"
Panels.start(comicData)
Images and Audio
Panels will attempt to load images and audio files from the images
and audio
folders respectively. These folders can also be changed by altering settings before calling start()
.