Jump to content

Search the Community

Showing results for tags 'phaser tilemap drawImage fail'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi, I've been trying to create a tilemap for a frogger-like game, and i have some trouble when i try to render the map. I've been following this example on the phaser website : http://phaser.io/examples/v2/loader/load-tilemap-json At first i used my own .json map created with Tiles along with my .png file, but i got this error in my chrome console: So i first though it was because i did something wrong in Tiled, so i downloaded the example's source files and replaced the old files in my project, but i still get the same error. I'm going to show you my code so far in my play.js state, i'm using the generator-phaser-official for Yeoman. 'use strict'; var map; var staticLayer; function Play() {} Play.prototype = { create: function() { this.game.stage.backgroundColor = '#ffffff'; this.map = this.game.add.tilemap('staticTile'); this.map.addTilesetImage('assets/super_mario.png', 'staticSet'); this.staticLayer = this.map.createLayer('World1'); }, update: function() { }, clickListener: function() { this.game.state.start('gameover'); } }; module.exports = Play;If anyone has any ideas or leads to guide me, that would be pretty nice
×
×
  • Create New...