Sign in to follow this  
a20eac1d

Phaser is scaling to the Windows DPI settings?

Recommended Posts

Hey there!

I am using the latest Phaser.js from the official website. I am creating a game that is supposed to be 640x480 in size.

var game = new Phaser.Game(640, 480, Phaser.AUTO, '', { preload: preload, create: create, update: update });

But the final canvas that is being rendered is 800x600 in size, which would be correct according to my Windows DPI settings of 125% (640*1.25=800, 480*1.25=600).

A resolution of 1280x720 will get scaled up to 1600x900 and as a result, everything will look blurred.

The website itself is not zoomed in or enlarged in any way using Chrome.

How do I disable this "feature"? I want to be able to control the size of the game.

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.