Math.randint()とMath.randfloat()が二重で定義されている。
ihoronir opened this issue · comments
- /src/core/math.js の101~132行目
- /src/util/random.js の120~125行目
上記の2つのファイルで、Math.randint()
とMath.randfloat()
が両方のファイルで定義されています。
ビルドされた状態では、/src/util/random.jsが後に来るため、こちらが優先されているはずです。
これだと、phina.util.Random.seed
の値がMath.randint()
とMath.randfloat()
の結果に関わってくるので、/src/util/random.js の120~125行目を削除したほうが良さそうです。
phina.util.Random.seed
がMath.randint()
とMath.randfloat()
に影響している様子→http://runstant.com/shioleap/projects/8c1dda07