This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MovingLightをスタジオで出したときに出るエラーを回避する | |
-- エラーが出るのは122行目ですが、そのエラー自体は116行目でget_currnet_value()で取得する共有変数の値が初期化されていないために起こる | |
-- pan_angle_nowの値がおかしいために122行のtransform.SetLocalRotation(Quarternion.Euler())の引数の数が合わなくなる | |
-- なので、ここの値がおかしいときに例外として0などのデフォルトになる数値を与えてやればとりあえず回避可能 | |
-- 修正箇所 基本はvci.state.Get()の部分でおかしな値を全部数値にしてやる必要 | |
-- 初期化されてないだけならnilが返ってくるのでとりあえずnilのとき0にする | |
-- 23行目から33行目のvci.state.Get()のあとに or 0をつければ0にはなる | |
-- 初期化時と同じ値を仮に与えておく | |
-- (pan_angle, tilt_angle, dimer_masterは角度と光度で初期値0, dimer_red, dimer_green, dimer_blueはRGB要素なので1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local filename = { "file01", "file02", "file03" } | |
functiono onUse(item) | |
vci.assets.sound._ALL_Play(filename[math.random(#filename)], 1.0, false) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 作者表示 | |
print("> pioTestScript by Pio") | |
print("> ver 2019-06-14 debug #001") | |
--- 2019-04-17 #001 新規作成 | |
SDEBUG = 1 --- デバッグモード 1以上 | |
_VA = vci.assets | |
_VM = vci.me | |
_DATE = vci.me.Time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_VA = vci.assets | |
sCount = 3 --- 音声ファイルの個数 | |
--- | |
function onUse(self) | |
--- グリップしたときに実行される | |
local num = math.random(sCount) --- 最大値がsCountの乱数発生 | |
_VA._ALL_PlayAudioFromIndex(num) --- num番目の音声を再生 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"panorama": { | |
"urls": [ | |
"https://i.imgur.com/xcMKYbK.png", | |
"https://i.imgur.com/9IHnkdW.png" | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 発音の例ですが選択したVTuberさんに深い意味はありません | |
// 一般名詞に比べて発音が大きく異なりそうなものを適当に見繕いました | |
キズナアイ き'ずな;あ'い | |
ミライアカリ み'らい/あかり' / み'らい;あか'+り | |
電脳少女シロ でんのーしょー'じょ;シ'ろ | |
輝夜月 か'ぐや;る'な | |
ねこます ねこまス | |
猫宮ひなた ねこ'みや;ひ'なた |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bullet count init | |
int bullet_count = 200; // 弾丸数 | |
int bul_rad[] = new int[200]; // int[bullet_count] | |
float bul_the[] = new float[200]; // float[bullet_count] | |
int bullet_interval = 15; // 発射間隔 | |
int pos_x = 200, pos_y = 200; // 砲台位置というか発射点 | |
int bullet_pnt = 5; // 弾丸の大きさ | |
int bul_speed = 3; // スピード | |
int bullet_ell = 1; // 最初に表示される弾丸数みたいなアレ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PFont f; | |
void setup() { | |
loop(); | |
size(320, 180); | |
background(0); | |
frameRate(30); | |
// Create the font | |
// printArray(PFont.list()); | |
f = createFont("Source Code Variable", 36); |