playdate-dev
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePlaydate Dev
Playdate 开发
Overview
概述
Build and troubleshoot Playdate games in Lua with Playdate-specific constraints, input, and SDK workflows.
使用Lua开发并排查Playdate游戏问题,适配Playdate专属限制、输入方式与SDK工作流。
Quick Start Workflow
快速入门工作流
- Clarify the request scope (gameplay goal, target device vs simulator, SDK version, release vs prototype).
- Choose inputs and accessibility (buttons, crank, accelerometer; provide alternatives; respect reduce-flashing setting).
- Choose rendering approach (sprites vs immediate draw, image sizes, refresh rate, 1x vs 2x scale).
- Implement the core loop (define , update game state, call
playdate.update()andplaydate.graphics.sprite.update()when used).playdate.timer.updateTimers() - Add metadata and launcher assets (, buildNumber, launcher card and icon sizes).
pdxinfo - Test in the Simulator and on hardware (screen legibility, crank feel, audio balance, performance).
- 明确需求范围(玩法目标、目标设备/模拟器、SDK版本、正式发布/原型版本)。
- 选择输入方式与无障碍方案(按键、曲柄、加速度计;提供替代操作方案;遵循减少闪烁设置)。
- 选择渲染方案(精灵绘制/即时绘制、图片尺寸、刷新率、1x/2x缩放)。
- 实现核心循环(定义,更新游戏状态,使用相关能力时调用
playdate.update()和playdate.graphics.sprite.update())。playdate.timer.updateTimers() - 添加元数据与启动器资源(、构建号、启动卡片与图标尺寸)。
pdxinfo - 在模拟器和真机上测试(屏幕可读性、曲柄手感、音频平衡、性能)。
Starter Project
初始项目
- Copy into a new project folder.
assets/lua-starter - Keep and
Source/main.luain the source root.Source/pdxinfo - Replace placeholder values in and extend the update loop.
pdxinfo
- 将复制到新的项目文件夹中。
assets/lua-starter - 保留源码根目录下的和
Source/main.lua文件。Source/pdxinfo - 替换中的占位符值,扩展更新循环逻辑。
pdxinfo
Implementation Notes
实现注意事项
- Use for Lua API names, file layout, and workflow details.
references/inside-playdate-lua.md - Use for screen, text, input, audio, UI, and launcher guidance.
references/designing-for-playdate.md - Use Context7 to spot-check API changes, then confirm Lua behavior in the latest SDK docs.
/websites/sdk_play_date
- 查阅获取Lua API名称、文件结构与工作流详情。
references/inside-playdate-lua.md - 查阅获取屏幕、文本、输入、音频、UI与启动器相关规范。
references/designing-for-playdate.md - 使用Context7 核查API变更,再对照最新SDK文档确认Lua行为。
/websites/sdk_play_date
Resources
资源
references/designing-for-playdate.mdreferences/inside-playdate-lua.mdassets/lua-starter/
references/designing-for-playdate.mdreferences/inside-playdate-lua.mdassets/lua-starter/