|
|
@ -77,7 +77,7 @@ GUI::GUI() : $game_map(GAME_MAP_X, GAME_MAP_Y), |
|
|
|
void GUI::create_renderer() { |
|
|
|
void GUI::create_renderer() { |
|
|
|
auto player = $world.get<Player>(); |
|
|
|
auto player = $world.get<Player>(); |
|
|
|
|
|
|
|
|
|
|
|
$map_view = Renderer([&, player] { |
|
|
|
$map_view = Renderer([&] { |
|
|
|
System::draw_map($world, $game_map, $canvas, VIEW_PORT_X, VIEW_PORT_Y); |
|
|
|
System::draw_map($world, $game_map, $canvas, VIEW_PORT_X, VIEW_PORT_Y); |
|
|
|
return canvas($canvas); |
|
|
|
return canvas($canvas); |
|
|
|
}); |
|
|
|
}); |
|
|
|