Module: HasSprite
- Extended by:
- Forwardable
- Defined in:
- lib/rubysketch/solitaire/common/utils.rb
Instance Method Summary collapse
Instance Method Details
#hit?(x, y) ⇒ Boolean
99 100 101 102 |
# File 'lib/rubysketch/solitaire/common/utils.rb', line 99 def hit?(x, y) s = sprite s.x <= x && x < (s.x + s.w) && s.y <= y && y < (s.y + s.h) end |