When trying to render an Image I get this error, Gosu::Macro cannot be rendered as Gosu::Bitmap yet. The next line triggers it.
@image.save(world_path + "#{last_number}.png")
This section is where I create the image.
@image ||= record(1, 1) do
@time = Benchmark.realtime do
@world.draw_world
end
end
translate(@camera.x, @camera.y) do
@image.draw(740, 190, 1, @zoom_modes[@zoom], @zoom_modes[@zoom])
end
Is there any way I can save an image like this?
Loading...