Jump to content

Uncaught TypeError: Cannot read property 'TILED_JSON' of undefined - Phaser 3


spadletskys
 Share

Recommended Posts

Hey guys, I'm pretty new to the Phaser 3 framework and I followed a tutorial about making a phaser 3 game. Now, I wanted to load my tilemap into my game. But the browser console gives me this error :

Uncaught TypeError: Cannot read property 'TILED_JSON' of undefined
preload() {
    this.load.spritesheet(
      "charactYellowR",
      "https://cdn.glitch.com/7d2d6955-7277-4e96-807c-25649d73ba29%2FYellowWalkL.png?v=1603766562142",
      { frameWidth: 17, frameHeight: 25 }
    );
    this.load.tilemap(
      "map",
      "https://cdn.glitch.com/7d2d6955-7277-4e96-807c-25649d73ba29%2FspaceBG.json?v=1603882479054",
      null,
      Phaser.Tilemap.TILED_JSON
    );
    this.load.spritesheet(
      "tileset",
      "https://cdn.glitch.com/7d2d6955-7277-4e96-807c-25649d73ba29%2FspaceBg.jpg?v=1603882472713",
      16,
      16
    );
  }

Please respond to my question... Thanks in advance!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...