Jump to content

Search the Community

Showing results for tags 'parse'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 4 results

  1. Hi, what king of tool can allow me to manage a text dataBase in Json or javascript ? What the good practice and best way to manage this easily. Example in javascript , it little hard to read and find a message text reference. ! I am open to any suggestion and different approach. I thought I might be looking at Excel and with a JSON converter written in VBA maybe ? class _texts{ constructor(localisation) { localisation = localisation || 'frCa'; this.Conv_Q0I5a_0000 = { frCa:[ ], enUS:[ ], frFR:[ ], ru:[ ], }; this.Conv_Q0I5a_0001 = { frCa:[ ], enUS:[ ], frFR:[ ], ru:[ ], }; }; };
  2. Hello I cannot load the map (made using Tiled Map Editor) using Phaser. Phonegap Desktop console shows this messages: In function "preload" i have this code: game.load.tilemap('map', 'assets/mapas2.json', null, Phaser.Tilemap.TILED_JSON); game.load.image('tiles', 'assets/tmw_desert_spacing.png'); In function "create" i have this code: map = game.add.tilemap('map'); // Now add in the tileset map.addTilesetImage('tiles', 32, 32); // Create our layer layer = map.createLayer(0); // Resize the world layer.resizeWorld(); mapas2.json: { "height":16, "layers":[ { "data":[30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 25, 26, 26, 26, 26, 26, 26, 27, 30, 30, 33, 36, 42, 42, 42, 42, 37, 35, 30, 30, 33, 35, 25, 26, 26, 27, 33, 35, 30, 30, 33, 35, 33, 36, 37, 35, 33, 44, 27, 30, 33, 35, 33, 35, 33, 35, 41, 37, 35, 30, 33, 35, 33, 35, 33, 44, 26, 45, 35, 30, 33, 35, 33, 35, 41, 42, 42, 42, 43, 30, 33, 35, 33, 35, 25, 26, 26, 27, 30, 30, 33, 35, 33, 35, 33, 36, 37, 35, 30, 30, 33, 35, 33, 35, 33, 35, 33, 44, 26, 27, 33, 35, 33, 44, 45, 35, 41, 42, 37, 35, 33, 35, 41, 42, 42, 43, 30, 30, 33, 35, 33, 44, 26, 26, 26, 26, 26, 26, 45, 35, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], "height":16, "name":"Capa1", "opacity":1, "type":"tilelayer", "visible":true, "width":10, "x":0, "y":0 }], "nextobjectid":1, "orientation":"orthogonal", "renderorder":"right-down", "tileheight":32, "tilesets":[ { "firstgid":1, "source":"\/tmw_desert_spacing.tsx" }], "tilewidth":32, "version":1, "width":10 } Here I leave you 2 files just if you want to try it. Tank you very much! tmw_desert_spacing.tsx
  3. If you specify texture customType = "BABYLON.HDRCubeTexture" and the other HDRCubeTexture properties... With .hdr as the name... It will still try to use as regular CubeTexure and look for _px and _nx cube texture files: I think babylon.texture.ts Parse function: now is : if (parsedTexture.isCube) { return CubeTexture.Parse(parsedTexture, scene, rootUrl); } and should be something like: if (parsedTexture.isCube) { if (parsedTexture.customType === "BABYLON.HDRCubeTexture") return HDRCubeTexture.Parse(parsedTexture, scene, rootUrl); else return CubeTexture.Parse(parsedTexture, scene, rootUrl); } OR IS THERE MORE to make HDRCubeTextures load from serialized .babylon file instead of only hand coding?
  4. When Phaser parses a CSV file it creates an extra tile with an index of NaN at the end of each row except the last one. I believe this is because of the trailing commas at the end of each row, except the last. I noticed the parser uses .split() to parse each row of tiles so that might explain it. My CSV data is structured like so (also how Tiled Map Editor exports the data): 0,0,0, 0,1,0, 0,0,0 I may just be doing something wrong though. Any ideas?
×
×
  • Create New...