Jump to content

Problem using phaser debug module

Crystal Noir

Recommended Posts

Hi everyone :) I am 37 years old and I have some experience with several language and makers but not javascript.


I am very new to Phaser and I try to learn Phaser and Javascript. I try to follow this tutorial : http://www.gamedevacademy.org/html5-phaser-tutorial-spacehipster-a-space-exploration-game/


And I would like to use the Phaser Debug Module, this one : https://github.com/englercj/phaser-debug


The problem is that I don't understand how to activate it. I add the <script></script> balise on my index.html file that's ok and after include the phaser.js file.

But I don't understand how to add this : game.add.plugin(Phaser.Plugin.Debug);


Regarding the tutorial I try to follow, we first create a SpaceHipster.game but when it seems that I don't understand how to implement this plugin. Could you help me understand what exactly I have to do with this to make it work with the tutorial ?


Thank you 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.

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.


  • Recently Browsing   0 members

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