Sha256: eb0c96269368744cc19df27cb3d156876a362388b2e0566bd777043a99775cf2

Contents?: true

Size: 404 Bytes

Versions: 10

Compression:

Stored size: 404 Bytes

Contents

class AuthorEngine
  module Support
    def window
      Window.instance
    end

    def code_editor
      CodeEditor.instance
    end

    def sprite_editor
      SpriteEditor.instance
    end

    def mouse_over?(object)
      if window.mouse_x.between?(object.x, object.x + object.width) &&
        window.mouse_y.between?( object.y, object.y + object.height)
        true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
author_engine-0.9.0 lib/author_engine/support.rb
author_engine-0.8.0 lib/author_engine/support.rb
author_engine-0.7.0 lib/author_engine/support.rb
author_engine-0.6.1 lib/author_engine/support.rb
author_engine-0.6.0 lib/author_engine/support.rb
author_engine-0.5.0 lib/author_engine/support.rb
author_engine-0.4.0 lib/author_engine/support.rb
author_engine-0.3.1 lib/author_engine/support.rb
author_engine-0.3.0 lib/author_engine/support.rb
author_engine-0.1.0 lib/author_engine/support.rb