gaesekiputo Posted April 13, 2015 Share Posted April 13, 2015 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'); } Link to comment Share on other sites More sharing options...
kriket Posted July 20, 2015 Share Posted July 20, 2015 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. Link to comment Share on other sites More sharing options...
drhayes Posted July 21, 2015 Share Posted July 21, 2015 What does the error console in your browser say? In Chrome it's called the JavaScript Console and might be displaying some errors. Link to comment Share on other sites More sharing options...
Recommended Posts