Skip to content

Instantly share code, notes, and snippets.

@ippa
Created June 9, 2010 15:35
Show Gist options
  • Save ippa/431658 to your computer and use it in GitHub Desktop.
Save ippa/431658 to your computer and use it in GitHub Desktop.
require 'gosu'
require 'teplay'
class Window < Gosu::Window
def initialize
super(500, 500, false, 20)
@image = Gosu::Image.new(self, "map.png")
from_x = 1022
from_y = 0
to_x = 1022
to_y = 0
x2, y2, color = @image.line from_x, from_y, to_x, to_y, :trace => { :while_color => :red }, :color_mode => :gosu
p x2
p y2
p color
end
end
Window.new.show
@banister
Copy link

banister commented Jun 9, 2010

hey homie, try the new 0.2.940 gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment