Jump to content

Centering text on middle and adding background that fit?


Html5Overview
 Share

Recommended Posts

Hi there,

I'm making a project and I have a few things that bother me for the last few days.

 

a.) How do I add background to this project.  Is there a way to add a background over css? If there already is a solution to do it over phaser 3 library, how to I add mobile phone background to fit on every screen?

b.) I want to center a text to an exact middle of a screen. Is there a function to do so or I'll need to add text to screen_width.middle then add padding to a text to center it?

c.) Why are my sprite images (Sword and shield) distorted is Chrome? If firefox they look fine, however, if they are sized down too much in Chrome they are distorted.

 

Here is vide preview(forgive me for double screen preview):

https://streamable.com/feba3

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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