Search the Community

Showing results for tags 'resolutions'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Platform
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. I've been trying without success to get a simple prototype (just a background) to scale on my mobile with Phaser using Typescript after reading this post I've asked both on the post and on IRC but I'm starting to feel that approaching this issue in TS is different from doing so in vanilla JS. So my question is: How can I: Detect 5 different screen sizes (small, normal, large, xlarge, xxlargge) and load assets accordingly.Scale my game in a way that works for PC (without it going 100% and looking blurry), Tablets and Mobile phones.Scale both horizontally (landscape) and vertically (portrait).Hide the address bar in as many devices as Typescript? I'm sorry if these are too many questions to ask at once but I feel that it would also be helpful to other newbies starting out with Typescript. While Typescript is very useful in the long term (and helps me to keep my code very tidy), learning the basics and trying to get tutorials or code snippets is a lot harder than with JS. The two tutorials posted on Photonstorm allowed me to create a couple of desktop-only prototypes, but they do not cover how to do it on Mobile. The structure I'm using for my TS projects contains the following core files: app.tsGame.tsBoot.tsPreloader.tsMenu.tsBaseLevel.tsThank you for reading!