遊戲元件
預覽即時遊戲用的輸入對映和可復現的種子隨機數
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.