goplus / goplus/builder

支持项目画面模板与编辑器预览适配

Open
#3,452 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
69
Forks
59
Avg merge
1d 10h
Merged PRs (30d)
26

Description

目标

创建项目时提供横屏、竖屏等多个默认画面尺寸。编辑器根据项目的画面方向调整布局,保证横屏和竖屏项目都能获得合适的编辑与预览体验。

需求

  • 第一版提供横屏 16:9、横屏 4:3、竖屏 620 × 900 三种默认尺寸。
  • 编辑器适配横屏和竖屏项目,合理安排代码区、预览区及精灵/舞台面板。
  • 编辑器预览、运行和全屏均保持项目画面比例,精灵和背景不变形。
  • 支持拖动调整代码区域宽度,其他区域根据剩余空间自适应。
  • 可用宽度不足时,调整竖屏项目的面板排列,保证主要功能可用。

Demo

关联 PR #3480。先打开 PR 的 Vercel 预览环境,再在域名后添加 /docs/game-size-preview

Demo 项目仅用于体验验证,不会保存或分享给其他访客。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open PR #3480 and its Vercel preview, then visit /docs/game-size-preview to inspect the current editor behavior. Verify the three default sizes, portrait and landscape layouts, resizable code area, adaptive panels, and unchanged aspect ratios in preview, run, and fullscreen.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.