While developing HTML5 games using GameMaker Studio, it may eventually come to your attention that the game does not render at native resolution, depending on the device, looking variously blurry as result. This extension fixes that.

Read the blog post for additional explanation.

StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(3 total ratings)
AuthorYellowAfterlife
Made withGameMaker
TagsGameMaker, html5
ContentNo generative AI was used

Download

Download NowName your own price

Click download now to get access to the following files:

browser_hdpi.yymp 2.1 kB
browser_hdpi.yyz 171 kB

Comments

Log in with itch.io to leave a comment.

Your project is amazing and has helped me a lot with something I don't understand very well. However, I've run into something quite curious. If I create a button hitbox using point_in_rectangle together with device_mouse_x_to_gui(0) and device_mouse_y_to_gui(0) to detect clicks or touches, everything adjusts as expected when I open the browser's Developer Tools (F12) and switch to mobile view. The problem is that clicks/touches within that area are no longer detected by the hitbox. I've tried many different approaches but haven't been able to solve it. Could you give me a hint or point me in the right direction?

As I mention in my replies on the blog, depending on exact functions, you may have to account for your canvas scale when taking in coordinates – ideally someone should send a PR to the GM HTML5 runtime but there’s a bunch of places where something happens at canvas/page scale.

Hey thanks, I had to fiddle around a bit - but this was a total lifesaver!

(+2)

I was able to modify this to solve a problem that has been plaguing me for three years! Thank you thank you, Vidam! You're a godsend...

Looks nice, would it work with GMS1.4?

For that you will have to follow the instructions on the blog post to assemble the extension yourself.

Sweet!

Love this, thanks YAL!

(+1)

Awesome extension, keeping an eye on your great work!