コード例 #1
0
        public override void OnLoad()
        {
            map = new TMXTiledMap("assets/testmap.tmx");
            LInfo info = new LInfo(300, 300);

            info.SetLocation(5, 0);
            info.PutMessage("传说中的");
            Add(info);
        }
コード例 #2
0
ファイル: Game1.cs プロジェクト: zhwk022/LGame
        //GLRenderer renderer;

        public override void OnLoad()
        {
            //renderer = new GLRenderer();
            map = new TMXTiledMap("assets/testmap.tmx");
            LInfo info = new LInfo(300, 300);

            info.SetLocked(true);
            info.SetLocation(5, 0);
            info.PutMessage("传说中的");
            Add(info);
        }
コード例 #3
0
    static public TMXTiledMap createWithXML(ref String tmxString, ref String resourcePath)
    {
        TMXTiledMap ret = new TMXTiledMap();

        if (ret.initWithXML(tmxString, resourcePath))
        {
            return(ret);
        }

        return(null);
    }
コード例 #4
0
    static public TMXTiledMap create(ref String tmxFile)
    {
        TMXTiledMap ret = new TMXTiledMap();

        if (ret.initWithTMXFile(tmxFile))
        {
            return(ret);
        }

        return(null);
    }