Created
June 9, 2010 15:35
-
-
Save ippa/431658 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey homie, try the new 0.2.940 gem