Jump to content

game.add.tileSprite error


Recommended Posts

Hi guys,


Im getting this error:

     TypeError: Argument 1 of CanvasRenderingContext2D.createPattern could not be converted to any of: HTMLImageElement, HTMLCanvasElement, HTMLVideoElement.


I dont know why....


I've boot.js, preload.js, game.js, gameOver.js.


The line that throw this error is in create function in gameOver.js:

game.add.tileSprite(0,0,640, 480, 'space');

'space' is loaded in preload.js, like:

game.load.image('space', 'assets/blue.png');

Whats wrong?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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