Skip to content

Instantly share code, notes, and snippets.

@tmskst
tmskst / 0.md
Created August 2, 2014 09:51
HaxeでStarlingとFeathersを使う

手順が複雑なのでバッチファイルを作った(build.bat)。

build.batの使い方

適当な新規ディレクトリを作成してbuild.batを保存。 同じ階層にplayerglobal14_0.swcを保存する。バッチファイルからplayerglobal14_0.swcを呼び出すのでリネームしないように。

要するに次のようになっていれば動くはず。

$ dir
@tmskst
tmskst / gist:19e22745459fc757fa81
Last active August 29, 2015 14:02
FlashCCが生成するスプライトシートのSubTexture.@nameをSymbolItem.nameに書き換える

例えばデータ形式をStarlingに設定したときの話。

C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\Sprite Sheet Plugins にある Starling.plugin.jsflframeExportメソッドを書き換える。

function frameExport(frame) {
	var frameId = frame.id;
	if (frame.symbol != null && frame.frameSource instanceof SymbolItem) {
		frameId = frame.frameSource.name;
		var frameNumber = ('0000' + frame.frameNumber).slice(-4);
@tmskst
tmskst / compile.hxml
Last active August 10, 2016 07:13
HaxeでStarlingを使う
-swf-lib ./lib/starling.swc
--macro patchTypes('starling.patch')