Sign in to follow this  

Having trouble installing plugins?

Recommended Posts

Hello, I've recently tried to install this plugin and it isn't working. I downloaded the phaser-tiled.js file, placed it in the same folder as phaser.min.js, wrote some code, and all i got was a blank canvas. Any advice? Here's my code.

<!doctype html> <html lang="en"> <head> 	<meta charset="UTF-8" />    <title>Practice</title>	<script src="js/phaser.min.js"></script>    <script src="js/phaser-tiled.js"></script>    <style type="text/css">        body {            margin: 0;        }    </style></head><body><script type="text/javascript">
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });function preload() {    game.add.plugin(Phaser.Plugin.Tiled);        game.load.pack('my-tiledmap', 'assets/tiles.json');        }
function create() {    var map = game.add.tiledmap('my-tiledmap');       }

Share this post

Link to post
Share on other sites

I am having the same problem. Nothing but blank screen. 


PS - I know the thread is a couple months old but I am having exactly the same problem and didnt wanna open another thread. 

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.