Skip to content

Instantly share code, notes, and snippets.

function logArray(arr) {
arr.forEach((value, index) => console.log(`${index.toString(2).padStart(Math.log2(arr.length), '0')}: ${value}`))
}
function newArray(len) {
if (typeof Uint8Array !== 'undefined') {
return new Uint8Array(len)
}
return new Array(len)
}
function logArray(arr) {
arr.forEach((value, index) => console.log(`${index.toString(2).padStart(Math.log2(arr.length), '0')}: ${value}`))
}
function newArray(len) {
if (typeof Uint8Array !== 'undefined') {
return new Uint8Array(len)
}
return new Array(len)
}
@webxoss
webxoss / 触发效果备忘.md
Last active May 29, 2017 15:45
WEBXOSS 逻辑备忘录

触发效果

发现已经看不懂自己以前写的逻辑了。。。😂
仔细看了一遍,这里做一下备忘📝。

把触发延迟到帧结束

「效果原型」注册在 timing 上,
timing.trigger() 的时候,把「效果原型」和对应的事件添加到 game.triggeringEffectsgame.triggeringEvents
帧结束时,才触发这些「效果原型」(effect.trigger())。

convert -strip -interlace Plane -sampling-factor 4:2:0 -define jpeg:dct-method=float -quality 80
@webxoss
webxoss / cheat.js
Last active September 3, 2017 16:52
{
// ======================
// 共鸣
// ======================
extraTexts: [
'[出現条件] 【メインフェイズ】 '
],
resonaPhase: 'mainPhase',
resonaCondition: function () {
// 注意 summonZone !