S
Smooth Operator
Guest
I've looked in a handful of places for how to scale pixel art perfectly a la Hyper Light Drifter, as in, while retaining a low resolution, scaling the pixels up without inconsistent pixel widths, and quantizing the use of pixels on screen so that there are no in-between pixel movements. Just like Hyper Light Drifter, I'll be using 480p resolution (640 x 480) and need the pixel art to look clean. So far I've used a couple fixes:
Any help with this issue would be appreciated. Thanks for your time.
- Using floor() on the position of camera and object movements so that there are no sub-pixel movements
- Using the following functions to enforce a resolution:
- surface_resize(application_surface,640,480);
- display_set_gui_size(640,480);
- Using this script; I'm not entirely sure about the individual components, but it solved the rest of my issues except one
-
Code:
[*]// Please note, all room VIEW and PORT need to be the same size. [*] [*]----- [*]Create Event: [*]----- [*] [*]application_surface_draw_enable(false); [*]surface_resize(application_surface, view_wview, view_hview); [*] [*]global.gameScale = 4; [*]global.gameFullscreen = 0; [*]if (global.gameFullscreen = 0) { [*] window_set_size(view_wview*global.gameScale, view_hview*global.gameScale); [*] alarm[0] = 1; [*] } else { [*] window_set_fullscreen(true); [*] } [*] [*]----- [*]ALARM[0] [*]----- [*]/// Center Window View [*]window_center(); [*] [*]----- [*]Post Draw [*]----- [*]/// Game Scaling Script [*] [*]draw_surface_ext(application_surface,(window_get_width()/2)-((view_wview*global.gameScale)/2),(window_get_height()/2)-((view_hview*global.gameScale)/2) ,global.gameScale,global.gameScale,0,c_white,1)
-
Any help with this issue would be appreciated. Thanks for your time.