Jump to content

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.

Link to post
Share on other sites
  • 2 weeks later...

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...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...