Jump to content

Phaser is scaling to the Windows DPI settings?


a20eac1d
 Share

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 comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...