Totally a pile of garbage with a bunch of debug prints because I'm going to have to rewrite the renderer resizing to allow for any size image, not just the map. But this does display an image using averaged squares.

This commit is contained in:
Zed A. Shaw 2024-11-21 02:49:58 -05:00
parent 3bb3b654e7
commit 19b8bf1850
7 changed files with 262 additions and 98 deletions

View file

@ -49,7 +49,7 @@ GUI::GUI(DinkyECS::World &world, Map& game_map) :
}
void GUI::resize_map(int new_size) {
if($renderer.resize_map(new_size, $view_port)) {
if($renderer.resize_grid(new_size, $view_port)) {
// set canvas to best size
$canvas = Canvas($view_port.x * 2, $view_port.y * 4);
$map_view.resize($view_port.x, $view_port.y);