module AuthorEngine::Support

Public Instance Methods

code_editor() click to toggle source
# File lib/author_engine/support.rb, line 7
def code_editor
  CodeEditor.instance
end
mouse_over?(object) click to toggle source
# File lib/author_engine/support.rb, line 15
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
sprite_editor() click to toggle source
# File lib/author_engine/support.rb, line 11
def sprite_editor
  SpriteEditor.instance
end
window() click to toggle source
# File lib/author_engine/support.rb, line 3
def window
  Window.instance
end