游戏组件
预览实时游戏用的输入映射和可复现的种子随机数
2 个类别,共 22 个节点
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 支持等级
- 第 3 级(拟定)
- 所属包
- Glaze 实时
Glaze 实时
主要面向二维图形的实时交互媒体框架:提供绘制循环、精灵、输入映射等,适用于游戏与模拟。
输入映射
输入映射绑定Make a key mean an intent.指定位置的绑定One of the keys that mean this intent, in the order they were bound.绑定数How many keys mean this intent.意图数How many intents have ever been named.指定位置的意图An intent by position, in the order they were first named.键对应的意图What this key means, or empty if it means nothing.是否已绑定Whether this intent has any key at all.是否按下Whether any key bound to this intent is being held.意图是否触发Whether this key currently means this intent.重新绑定Make this the ONLY key for an intent.释放Take one key away from whatever it meant.解除绑定Take every key away from an intent, leaving it bound to nothing.
种子随机数
种子随机数已抽取次数How many numbers have been drawn since the last SeededRandom.Restart.种子The seed this stream was made with.附近的下一个数One of two numbers, either side of a middle, by an even coin flip.区间内的下一个数A number between two bounds, including the lower and excluding the upper.按概率判定Whether a thing with this probability happened.下一个 0 到 1 之间的数A number from zero up to but not including one.下一个整数A whole number from the lower bound up to but not including the upper.重新开始Go back to the beginning of the stream.