Jump to content

lemondragon

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by lemondragon

  1. Thanks, that seemed to fix it! It seems counter intuitive, but it fixed it. If you don't mind I would like to use this opportunity, to ask an additional question. I'm currently in the process of splitting up my code to make a more structured project, but I'm having some issues. I'm running into a problem while splitting the code of my 'spawning tiles' functionality. Note: I'm using the Isometric plugin. My Start.js var Start = function(game){}; Start.prototype = { create: function(){ var isoGroup = this.add.group(); Map.createTiles(this.game, isoGroup); } } My Map.js
  2. Hey everyone, I am currently following the format of this tutorial to try to create a structured Phaser project, where the code is split up. Everything seems to go well, except from the fact that I can't seem to add the Isometric plugin I am using. This is the code I'm using: Main.js window.onload = function(){ var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-canvas', null, true, false); game.state.add('Boot', Boot); game.state.add('Preload', Preload); game.state.add('Menu', Menu); game.state.add('Start', Start); game.state.start('Boot'); } Preload.js
×
×
  • Create New...