public override void OnLoad() { map = new TMXTiledMap("assets/testmap.tmx"); LInfo info = new LInfo(300, 300); info.SetLocation(5, 0); info.PutMessage("传说中的"); Add(info); }
//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); }
static public TMXTiledMap createWithXML(ref String tmxString, ref String resourcePath) { TMXTiledMap ret = new TMXTiledMap(); if (ret.initWithXML(tmxString, resourcePath)) { return(ret); } return(null); }
static public TMXTiledMap create(ref String tmxFile) { TMXTiledMap ret = new TMXTiledMap(); if (ret.initWithTMXFile(tmxFile)) { return(ret); } return(null); }