ラベル haxe の投稿を表示しています。 すべての投稿を表示
ラベル haxe の投稿を表示しています。 すべての投稿を表示

2016年3月17日木曜日

openfl away3d

    $ haxelib list
    actuate: [1.8.6]
    away3d-examples: [1.1.0]
    away3d: 1.1.0 [1.2.0]
    box2d: [1.2.3]
    format: [3.2.1]
    hxcpp: [3.2.205]
    layout: [1.2.1]
    lime-samples: [2.6.0]
    lime: [2.9.0]
    openfl-samples: [3.3.1]
    openfl: 2.2.4 [3.6.0]
    swf: [2.2.0]


    HTML5書き出ししてみたら動くサンプルもあった...だたしPCのChromeのみでAndroidのChromeでは真っ白
    PCでもfirefoxはNG? Chromeは動くものもある

    $ lime create away3d
    You must specify a template when using the 'create' command.

     Usage: lime create away3d (directory)

      Available samples:

        * Basic_Fire
        * Basic_Load3DS
        * Basic_LoadAWD
        * Basic_LoadDAE
        * Basic_MipMapping
        * Basic_Particles
        * Basic_Shading
        * Basic_SkyBox
        * Basic_View
        * Intermediate_Lines
        * Intermediate_MD5Animation
        * Intermediate_MouseInteraction
        * Intermediate_ParticleExplosions
        * Intermediate_PerelithKnightMD2
        * __MACOSX

        
ちがう3Dライブラリもあるようだ http://babylonhx.gamestudiohx.com/

2014年9月30日火曜日

    Haxe 3 Migration - Haxe
    
        replace js.Lib.document with js.Browser.document
        replace js.Lib.window with js.Browser.window
        replace js.XMLHttpRequest with js.html.XMLHttpRequest or js.Browser.createXMLHttpRequest
        replace js.Storage with js.Browser.getLocalStorage/getSessionStorage
        replace unknown types previously in js.Dom with their equivalent in js.html

2014年8月8日金曜日

    [Haxe] FDT で Haxe をはじめてみる | しゃけろぐ
    
    haxe sdk の選択で which haxe で出てくる /usr/bin/haxe を選択しようとしてもNGで
    /usr/lib/haxe を選択するととりあえず動いた

2014年7月30日水曜日

2014年6月16日月曜日

DisplayObjectContainer

DisplayObjectContainer - Adobe ActionScript® 3 (AS3 ) API Reference
package{

    import flash.display.Sprite;
    import flash.events.MouseEvent;

    public class DisplayObjectTest01 extends Sprite {

        public function DisplayObjectTest01 ():void{
            var container:Sprite = new Sprite();
            addChild(container);

            var circle1:Sprite = new Sprite();
            circle1.graphics.beginFill(0xFF0000);
            circle1.graphics.drawCircle(40, 40, 40);
            circle1.addEventListener(MouseEvent.CLICK, clicked);

            var circle2:Sprite = new Sprite();
            circle2.graphics.beginFill(0x00FF00);
            circle2.graphics.drawCircle(100, 40, 40);
            circle2.addEventListener(MouseEvent.CLICK, clicked);

            var circle3:Sprite = new Sprite();
            circle3.graphics.beginFill(0x0000FF);
            circle3.graphics.drawCircle(70, 80, 40);
            circle3.addEventListener(MouseEvent.CLICK, clicked);

            container.addChild(circle1);
            container.addChild(circle2);
            container.addChild(circle3);
            addChild(container);

            function clicked(event:MouseEvent):void {
                var circle:Sprite = Sprite(event.target);
                var topPosition:uint = container.numChildren - 1;
                container.setChildIndex(circle, topPosition);
            }
        }
    }

}
Link
package;

import flash.display.Sprite;
import flash.events.MouseEvent;

class Main extends Sprite
{

    var container : Sprite = new Sprite();

    public function new()
    {
        super();
        //var container : Sprite = new Sprite();
        addChild(container);

        var circle1 : Sprite = new Sprite();
        circle1.graphics.beginFill(0xFF0000);
        circle1.graphics.drawCircle(40, 40, 40);
        circle1.addEventListener(MouseEvent.CLICK, clicked);

        var circle2 : Sprite = new Sprite();
        circle2.graphics.beginFill(0x00FF00);
        circle2.graphics.drawCircle(100, 40, 40);
        circle2.addEventListener(MouseEvent.CLICK, clicked);

        var circle3 : Sprite = new Sprite();
        circle3.graphics.beginFill(0x0000FF);
        circle3.graphics.drawCircle(70, 80, 40);
        circle3.addEventListener(MouseEvent.CLICK, clicked);

        container.addChild(circle1);
        container.addChild(circle2);
        container.addChild(circle3);
        addChild(container);

    }
    function clicked(event : MouseEvent) : Void{
        var circle : Sprite = cast((event.target), Sprite);
        var topPosition : Int = container.numChildren - 1;
        container.setChildIndex(circle, topPosition);
    };
}
DisplayObjectTest01

2014年6月7日土曜日

    ERROR: The following files have xml notation that will need porting. See http://haxe.org/doc/advanced/xml_fast
    
    as3hxでasファイル変換しようとしたら出たエラーメッセージ
    
    xml関連よーわからん

    Using haxe.xml.Fast - Haxe

2014年6月5日木曜日

OOPについて説明してみる。 haXeで。 | djakarta-trap

createjs で、もぐらたたきテスト

    
LINK toolkit for createjs書き出しでテスト ノートPCではどうにかクリックできるがandroidタブレットだとまともにクリックというかタッチできない clickイベントじゃNGなのかな 203shでも見てみたらタップすると拡大しちゃう時があるのでやっぱおかしい あとandroidタブレットだとマスクが掛からない時がある
    Haxe Int to String - Stack Overflow
    
    var i = 1;
    var s = "" + i; // s is now "1"

    こんな書き方でいいのだろうか
    X-LABO: Haxe 産 ゲームZombieDelivery 公開 & OpenFL 開発メモ
    ZombieDelivery ゾンビデリバリー

2014年5月26日月曜日

Install Haxe
    haxeのインストーラ
    前はこのshでインストールできたけどなんかエラー出るようになった
    haxeのサイトも更新されてなんか変わってしまったのか
    haxeのwgetの部分コメントアウトしてとりあえず回避...
    しかしタイミング悪い時にOSの調子悪くなるもんだ...トホホ

Building Haxe on Ubuntu / Debian - Haxe
Download - Haxe

Downloadしたhaxe-3.1.3-linux64.tar.gzを解凍しようとすると
これは tar アーカイブではないようです
と出る...

nautilusで展開すると解凍できるんだけど...わからん

Linuxコマンド逆引き大全 - 【 ファイルを圧縮・展開する(拡張子.gz,.tar.gz) 】:ITpro

2014年5月13日火曜日

外部ライブラリの利用法 - Haxe
Haxe/JavaScriptチュートリアル — Haxe/JavaScript tutorial 0.2 documentation
Haxeのfor文を正しく理解する。 - Qiita
Haxe/JSの練習のためにスライドショーっぽいものを作る - spiffieldLabs
HaxeとTypeScriptで同じコンテンツを作って比較してみた。 | KnockKnock
HaxeでjavascriptのDOMの型をキャストする時 - Qiita
[haXe][js] haXe で jQuery を使う方法 | romatica : Blog : Archive
fukuokahaxe / Haxe勉強会 / wiki / Haxe資料 / 標準ライブラリ / Date — Bitbucket
Haxe Advent Calendar 2013 - Qiita
Haxe基礎文法最速マスター | Web系男子の備忘録
Tips on haXe



同じリンク何度も書いてるような...blogの使い方間違ってる
Haxe コンパイラ - Haxe
Getting started with Haxe/JS - Haxe

Warning:(6, 7) haxe: Class not found : createjs.easeljs.Stage

compile.hxmlに-lib createjs が無かったり
canvas id="canvas" をdiv id="canvas" と書いたりでerror出て戸惑った

ちょっとしたことで時間食う

変数名に$を使ってるjsサンプルをhexeにコピペしたら
Warning:(14, 13) haxe: Field names starting with a dollar are not allowed 
と出た

haxe jquery bootstrap

    HaxeでjQuery。 - Qiita
7つのサンプルでjQueryを学ぼう!「jQueryが全く分からない人のため」の超初級者向け入門講座 | OZPAの表4
HaxeでjQueryとTwitterBootstrapのJavaScript-Pluginを使う - reanのひとりごと HTML5 × CSS3 × jQueryを真面目に勉強 – #8 jQueryプラグインの作り方について詳しく | Developers.IO

中古のthinkpad手に入れたらwin10だった

 win10久しぶりに使ってみたらwin11よりかは使い心地がよい、、、win11,msほんとどーなってんの?