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

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