Build and Run (Simulator).ps1
file if it's locked: open properties and click unlock in the bottom of the window.If you've installed Playdate SDK to the default path (Documents folder) then just run ADD_ENV_VARIABLE.cmd
to add env variables:
pdc
shortcut !!! If you've changed default path - edit 6th line in ADD_ENV_VARIABLE.cmd
, then run it.
set SDKPATH="YOUR CUSTOM SDK PATH HERE"
This should be done only once, you need to restart VSCode after this.
Code.exe
execatable (VSCode) to run with admin rights by default. You can find this file if you input this path to your explorer: %appdata%\..\Local\Programs\Microsoft VS Code
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
into PowerShell then hit Y
.Lua
, Lua Plus
. Then restart VSCode. Tasks: Run Build Task
(I've changed to F5) main.lua
file inside Source
folder. Press your "Run Build Task" button, you should see "Template" text in playdate simulator.dvd.lua
and all dvd-related lines from main.lua
(marked -- DEMO
)Source/pdxinfo
: "bundleID", "name", "author", "description". Read more about pdxinfo here. It's critical to change your game bundleID, so there will be no collisions with other games, installed via sideload.build_and_run.sh
executable by running the following command:
chmod +x build_and_run.sh
PLAYDATE_SDK_PATH
to your .bashrc
/.zshrc
or equivalent, and source it; check it with: env | grep -i playdate
Source/pdxinfo
: "bundleID", "name", "author", "description". Read more about pdxinfo here. It's critical to change your game bundleID, so there will be no collisions with other games, installed via sideload.