素材のフォルダ分けについて

minakou
記事: 7
登録日時: 2017年5月19日(金) 14:25

素材のフォルダ分けについて

投稿記事by minakou » 2017年6月10日(土) 18:38

いつも参考にさせて頂いております。

現在ピクチャのアニメーションを複数の画像で表現しているのですが、
($gameScreen.showPicture使用)
今後枚数が膨大になり、管理が困難になることが目に見えています。

そこで、素材フォルダを
img/pictures/anime1
img/pictures/anime2
のように分けて読み込むようにしたいのです。
(日本語フォルダを認識出来ると嬉しいです)

プラグイン、又はjsファイルの書き換えでも構いませんので
よろしくお願い致します。

--追記--------------------------
自力でrpg_managers.jsを以下のように書き換えたら機能させることが出来ましたが、
日本語は認識してくれませんでした。やはり仕様なので仕方ないのでしょうか...?

ImageManager.loadPicture = function(filename, hue) {
if ( filename.match(/BG/)) {
return this.loadBitmap('img/pictures/BG/', filename, hue, true);
}else if ( filename.match(/AK_te/)) {
return this.loadBitmap('img/pictures/AK_te/', filename, hue, true);
}else if ( filename.match(/DAY1_S1_EV/)) {
return this.loadBitmap('img/pictures/DAY1/S1/EV/', filename, hue, true);
}else if ( filename.match(/DAY1_S1_AK/)) {
return this.loadBitmap('img/pictures/DAY1/S1/AK/', filename, hue, true);
}else{
return this.loadBitmap('img/pictures/', filename, hue, true);
};
};

“MV:質問” へ戻る