require 'gosu'
include Gosu
class Game < Gosu::Window
def initialize()
super 640, 480, false
end
def update()
end
def draw()
img = Gosu.record(self.width, self.height) do
Gosu.draw_line(150, 150, Color::WHITE, 250, 180, Color::WHITE)
end
img.draw(0, 0, 0)
end
end
Game.new.show
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill