Link to home
Create AccountLog in
Computer Games

Computer Games

--

Questions

--

Followers

Top Experts

Avatar of James Hancock
James Hancock🇺🇸

How do I set the width of an image in JavaScript phaser?

Hi

For my Javascript Phaser game, I want to do the standard thing of

 

  1. showing company name fullscreen for 4 seconds then go to a game page or menu.

    I have the pics loaded in. How do I stretch them to look best - be the width of the screen / device?

Thanks

 

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


SOLUTION
Avatar of Shaun VermaakShaun Vermaak🇦🇺

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of James HancockJames Hancock🇺🇸

ASKER

Thanks

 

I'm sometimes lazy and might try and fit this all in my create method, game class.

 

It'd work, but should I make classes for intro, menu?

 


ASKER CERTIFIED SOLUTION
Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Computer Games

Computer Games

--

Questions

--

Followers

Top Experts

Computer games are video games played on a personal computer, mobile device or video game console. Their defining characteristics include a lack of any centralized controlling authority, a greater degree of user control over the video-gaming hardware and software used and a generally greater capacity in input, processing, and output.