# use .world files

**URL:** <https://phaser.discourse.group/t/use-world-files/11710>\
**Category:** Phaser 3\
**Created:** [May 16, 2022, 2:38pm UTC](https://phaser.discourse.group/t/use-world-files/11710 "2022-05-16T14:38:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![affmde](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@affmde](https://phaser.discourse.group/u/affmde)\
**Post date:** [May 16, 2022, 2:38pm UTC](https://phaser.discourse.group/t/use-world-files/11710/1 "2022-05-16T14:38:07Z")

</div>

Hi!

I created a world with Tiled and now I want to use it in Phaser. I can use tilemaps with the json, but the world from Tiled is exported as a.world file.  
How can I create my world game from this .world file?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [May 16, 2022, 2:55pm UTC](https://phaser.discourse.group/t/use-world-files/11710/2 "2022-05-16T14:55:03Z")

</div>

👋

You can load the world file as JSON and then read it, but I don’t know if there’s much useful information in it. Maybe the coordinates.

---

<div class="post-metadata">

**Author:** ![affmde](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@affmde](https://phaser.discourse.group/u/affmde)\
**Post date:** [May 18, 2022, 3:36pm UTC](https://phaser.discourse.group/t/use-world-files/11710/3 "2022-05-18T15:36:57Z")

</div>

So I changed the file.world to file.json and tried to replace this.load.tilemapTiledJSON(‘tilemap’, ‘assets/file.json’) with this.load.tilemapTiledJSON(‘tilemap’, ‘assets/file.json’) but i got the following error:  
Uncaught TypeError: Cannot read properties of undefined (reading ‘toLowerCase’);

How dos it work then?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [May 18, 2022, 3:53pm UTC](https://phaser.discourse.group/t/use-world-files/11710/4 "2022-05-18T15:53:05Z")

</div>

```javascript
function preload() {
  this.load.json("world", "world.json");
}

function create() {
  const world = this.cache.json.get("world");
}

```
