Skip to content

Instantly share code, notes, and snippets.

View muzudho's full-sized avatar

むずでょ muzudho

View GitHub Profile
@muzudho
muzudho / file0.txt
Last active June 7, 2017 10:47
Unityエディターにメニューを追加してstaticメソッドを呼び出せるとか、早めに知っておきたかった基本操作少しまとめ ref: http://qiita.com/muzudho1/items/8fa08d0d2b4c205df49c
using UnityEditor;
using UnityEngine;
public class ToolMenu {
[MenuItem("Tool/Hello World")]
static void Hello()
{
Debug.Log("hello, world");
}
3. ユーザーは、本サービスを利用するに際し、以下のような本サービス利用上不適切な行為を行ってはなりません。
(1)宣伝や商用を目的とした広告・勧誘その他の行為。ただし、当社が本サービス上で別途定める場合はその限りではありません。
Assertion failed on expression: 'device.IsInsideFrame()'
@muzudho
muzudho / file0.txt
Last active June 4, 2017 15:15
Git Hub が Faild を出してきたらローカル・ディスクにファイルが多すぎる可能性がある ref: http://qiita.com/muzudho1/items/90e2ce5a6e24991dcd72
failed to sync this branch.
You might need to open a shell and debug the state of this repo.
OPEN SHELL CANCELL
@muzudho
muzudho / file0.txt
Last active June 3, 2017 04:16
ゲーム開発を受注しようぜ<その16> ref: http://qiita.com/muzudho1/items/2ee7396213de1e82fdea
/// <summary>
/// タイル番号を先頭から順にカンマ区切りで並べる
/// [区画番号0~2]
/// </summary>
[Multiline(10)]
[Tooltip("タイル番号を先頭から順にカンマ区切りで並べる")]
public string[] tileNumberCsv = new string[] { "0,1,2,3", "0,4,5,6", "0,7,8,9" };
/// <summary>
/// タイル番号を先頭から順に並べる
/// [区画][タイルの配列]
@muzudho
muzudho / file0.txt
Last active May 29, 2017 18:48
AviUtil をインストールしようぜ ref: http://qiita.com/muzudho1/items/a8080bee7b2cd05a67e4
.ogg=音声ファイル
@muzudho
muzudho / file0.txt
Last active May 29, 2017 08:54
ゲーム開発を受注しようぜ<その14> ref: http://qiita.com/muzudho1/items/6a8574d12e78cd2ba64f
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="30" height="51" tilewidth="32" tileheight="32" nextobjectid="3">
<tileset firstgid="1" name="各種詰め合わせ" tilewidth="32" tileheight="32" tilecount="1024" columns="32">
<image source="../画像/Stage_32x32.png" trans="000000" width="1024" height="1024"/>
</tileset>
<layer name="グリッド" width="30" height="51">
<data encoding="csv">
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
@muzudho
muzudho / file0.txt
Last active May 27, 2017 12:25
ゲーム開発を受注しようぜ<その13> ref: http://qiita.com/muzudho1/items/6bcba05fbb40a48ea2f2
// カメラは移動する
float range = Time.deltaTime * pixelsPerFrame_scroll;
//Debug.Log("カメラ range="+ range);
newPosition.Set(transform_camera.position.x, transform_camera.position.y + range, transform_camera.position.z);
transform_camera.position = newPosition;
@muzudho
muzudho / file0.txt
Last active May 26, 2017 12:16
ゲーム開発を受注しようぜ<その12> ref: http://qiita.com/muzudho1/items/16a9d848ad9e4ee81faa
/// <summary>
/// うそ枠
/// </summary>
GameObject usoFrame;
// Use this for initialization
void Start () {
usoFrame = GameObject.Find("UsoFrame");
}
@muzudho
muzudho / file0.txt
Last active May 25, 2017 12:11
ゲーム開発を受注しようぜ<その11> ref: http://qiita.com/muzudho1/items/0bbdad3442d122363a96
int y2 = y_src + height_srcDst;
for (int y=y_src; y<y2; y++)
{
Array.Copy(tile.pixels_cache, Common.pixels_horizontal, width_srcDst);
texture_dst.SetPixels(x_dst, y, width_srcDst, 1, Common.pixels_horizontal, ★長さは? );
}