Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

The same amount of screen space, regardless of amount tiles


Recommended Posts

Good afternoon, I am completely new in working with Phaser, but for a long time I tried unsuccessfully to find a solution myself :)

The concept of the game is a clone of Battle City (Tanks) from the NES, BUT with a player-generated map size and number of units, that reading from JSON.


My question is: how to make the game-location take up the same amount of screen space, regardless of its size (10x10 tiles, 100x100 tiles or something other)?

Should I somehow convert Tilemap, Tilelayer or use Camera methods? I heard, that Phaser 3 has svg-support, maybe I need to use it and change the size of tiles depending on the incoming value from JSON?


Thanks for help! And sorry for my language :D

Link to comment
Share on other sites


  • Recently Browsing   0 members

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