@ combos- fun/ plugin- lander- text
@combos-fun/plugin-render-text——Combos Fun引擎单列车的一部分.
关键词 : text, (中文(简体) ), label, (中文(简体) ), font, (中文(简体) ), string, (中文(简体) ), 2d。 。 。 .
文档
- 每个包装剂/开发者注意:
agent-skill.md - 机器可读清单 :
combos-plugin.json(对schemas/combos-plugin.schema.json重置时 词根) - 进入技能(从事这项工作的人工智能人员唯一的真相来源)
单列波 :
skills/combos-engine-development/SKILL.md
食用npm时,表单和剂纸币暴露为: 稳定的子路径 :
import manifest from '@combos-fun/plugin-renderer-text/plugin-manifest';
// or fetch the markdown directly:
// require.resolve('@combos-fun/plugin-renderer-text/agent-skill')
复制
每个玩家相遇的字符串都是 text 模板:标题,按钮,HUD标签,菜单,土司. 只有随逻辑变化的值(分数、计数、计时器、名称)才会输入 replacements。 。 。 . sourceLocale 是这些模板的书面语言。 列出每个模板 sourceTexts,包括后期屏幕.
const textSystem = new TextSystem({
sourceLocale: 'zh-CN',
sourceTexts: [
'{player} 获得了 {score} 分',
'开始游戏',
'下一屏文案',
],
});
new Text({
text: '{player} 获得了 {score} 分',
replacements: {
player: 'Alice',
score: 100,
},
});
缺少替换者作为 {name} 占位符 。 选择 sourceLocale 保留源语言中的每个标签.
许可证
内部工作空间套件,是Combos Fun引擎单列波的一部分.