Sign in to follow this  
supersushi

Game dimensions in Typescript

Recommended Posts

Hi!

I have been looking for 2 days how to get the full width and height of the game in Typescript. For example, I want to place a gameobject randomly but within the visible bounds.

In javascript I have seen solutions mentioning  `this.game.width`, or `this.game.scale.width` etc. But nothing in TS.

Thanks for your help,

 

A super-novice

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.