Sign in to follow this  
ttsmyd

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

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.