added cursor

This commit is contained in:
Alexander Yakovlev 2012-12-21 20:08:31 +07:00
parent e26284910f
commit 13c714178c

View file

@ -38,10 +38,12 @@ class GameWindow < Gosu::Window
# Quit on ESC
def button_down(id)
close if id == Gosu::Button::KbEscape
if id == Gosu::Button::MsLeft then
if id == Gosu::MsLeft then
@emitter.spawn(self.mouse_x, self.mouse_y)
end
end
def needs_cursor?; true; end
end
# Create the gosu window