Jump to content

Phaser.tilemap


xeon826
 Share

Recommended Posts

I'm having trouble trying to load a tilemap that was created in tiled in its native tile width and height. In tiled it was 32x32 but upon loading it, it gets scaled down to 16x16, I'm not sure if it's a problem somewhere else in the code or a missing parameter. It wouldn't be a problem but a lot of tilesheets are 32x32 and scaling them down in gimp reduces image quality, doing it in the code causes odd behavior.

Things I've tried: Adding tileWidth and tileHeight parameters to the loading of the tilemap as well as the spritesheets

Removing min/max scaling

Scaling the layers to 2.0.

https://github.com/asmith9/god-dang-zombies/blob/master/js/Game.js

To be more clear: the problem is in the loading of 'spritesheet' and 'TILESET-04' which are natively 32x32 but appear 16x16

 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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