added cursor
This commit is contained in:
parent
e26284910f
commit
13c714178c
|
@ -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
|
||||
|
|
Reference in a new issue