figma2cocos
Installation
SKILL.md
背景知识
figma中设计分辨率是w1080 h2340 figma中坐标都是以左上角为0,0 cocos中是以屏幕中心为0,0
一个例子 用户输入css 其实是某个figma节点的属性 width: 68; height: 68; top: 438px; left: 968px;
这个节点在cocos中的计算是 x = left - 1080/2 + 68/2 y = 2340/2 - top - 68/2
Related skills
More from 958877748/skills
bilibili-downloader
Download Bilibili videos. Extracts video and audio streams separately.
456cocos-build
Cocos Creator 2.x 项目编译技能 - 自动触发脚本编译并验证效果
63groq-stt
Transcribe audio files using Groq API (Whisper models). Use when user needs to transcribe audio to text.
61particle-modifier
Cocos Creator 2.4.x 粒子系统修饰器开发框架。用于创建、使用和调试自定义粒子修饰器,支持修改粒子位置、颜色、大小、旋转、速度等属性。当需要在 Cocos Creator 中实现复杂的粒子效果控制时使用此技能。
35gitreset
在用户输入gitreset时使用
30cocos2d-cli
用户提供 UI 截图并要求生成白盒预制体时,使用此技能
19