game goal

This commit is contained in:
Alexander Yakovlev 2013-05-19 10:52:10 +07:00
parent 4acb53fa60
commit 166290ad7a

View file

@ -30,6 +30,10 @@ class GameWindow < Gosu::Window
def update
if self.button_down?(Gosu::MsLeft) then
@emitter.spawn(self.mouse_x, self.mouse_y)
if (@fountain.distance(self.mouse_x, self.mouse_y) <= 10) then
#fountain is found... do something?
close
end
end
@emitter.update
end