You would need exactly two functions here - one to report devicePixelRatio,Īnd one to change / Then open that file in extension's file directory via an external editor. (via context menu on Extensions section in GameMaker resource tree) and add a JS file to it. Making use of it in GameMaker is not very hard, and, in fact,Īlmost identical to the first code snippet on MDN.įirst you would want to create a new extension Variable exists for this purpose and reports the multiplier for page-to-screen pixels. This separates the concepts of "screen pixels" and "page pixels". To have existing pages behave largely-correctly by default. Higher-density screens will lie about screen dimensions and element sizes "the user may desire to be able to read text", It may eventually come to your attention that the gameĭoes not render at native resolution, depending on the device,įor reasons that can be promptly described as While developing HTML5 games using GameMaker Studio,
0 Comments
Leave a Reply. |