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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# ========================================= | |
# 使い方 | |
# ※あらかじめImageMagickをインストールしておく必要があります | |
# | |
# 1. このスクリプトがあるフォルダ内に "src.png" を配置 | |
# 2. src.png は 1024x1024のpngファイル | |
# 3. スクリプトを実行するとiconフォルダにアイコンが出力されます |
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
using UnityEngine; | |
using System.Collections; | |
/// キャラクター基底クラス. | |
/// SpriteRendererが必要. | |
[RequireComponent (typeof(SpriteRenderer))] | |
public class Token : MonoBehaviour | |
{ | |
/// プレハブ取得. | |
/// プレハブは必ず"Resources/Prefabs/"に配置すること. |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// Token管理クラス | |
public class TokenMgr<Type> where Type : Token { | |
int _size = 0; | |
GameObject _prefab = null; | |
List<Type> _pool = null; | |
/// Order in Layer |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// サウンド管理 | |
public class Sound { | |
/// SEチャンネル数 | |
const int SE_CHANNEL = 4; |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import json | |
import yaml | |
def usage(): | |
print "Usage: # python texpack.py [infile] [outfile]" |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import glob | |
dir = os.getcwd() | |
list = glob.glob(dir + '/src/*.png') | |
cmd = "/opt/local/bin/convert +append " | |
for fName in list: |
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
#!/usr/bun/ruby | |
# ■メモリから新規作成 | |
require 'rubygems' | |
require 'sqlite3' | |
# メモリから | |
db = SQLite3::Database::new(':memory:') | |
# SQL作成 |
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
#!ruby -Ks | |
#UTF-8の場合、 -Ku | |
require 'win32ole' | |
class Sheet | |
def initialize(sheet) | |
@sheet = sheet | |
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
# ■ボタン表示 | |
require 'rubygems' | |
require 'Qt' | |
# アプリケーション生成 | |
app = Qt::Application.new(ARGV) | |
# ウィジット生成 | |
window = Qt::Widget.new() |