Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 20, 2011
  1. @jacius
Commits on Feb 19, 2011
  1. @jacius

    Renamed get_key_state to pressed_keys, and improved it.

    jacius authored
    * Runs SDL.PumpEvents() to ensure key state is up to date.
    
    * The returned hash only has the keys that are pressed, non-pressed
      keys are omitted (instead of set to false). This is more
      lightweight, and easier to convert to a plain Array of the keys that
      are pressed.
    
    * Simplified code.
    
    * Rewrote docs.
  2. @jacius

    Moved Rubygame.get_key_state from main.rb to events.rb.

    jacius authored
    Also cleaned up credits/copyright info.
  3. @jacius
  4. @jacius

    Fixed Surface#flatten specs failing on Ruby 1.8.

    jacius authored
    Problem was a name collision with the "args" block arg.
  5. @jacius

    Surface methods can accept hex color string for colors.

    jacius authored
    Leading "#" is required, to disambiguate from a color name.
    If the hex color string is also an existing color name,
    the name takes precedence.
  6. @jacius
Commits on Feb 18, 2011
  1. @jacius
  2. @jacius
  3. @jacius
  4. @jacius

    Minor ImageFont docs tweaks.

    jacius authored
  5. @jacius
  6. @jacius

    Revamped ImageFont so that glyph strings can be any length.

    jacius authored
    This allows multi-byte chars on Ruby 1.8, ligatures, emoticons, etc.
  7. @jacius

    Added Rubygame::ImageFont class, with a nifty demo.

    jacius authored
    Intended as a replacement for Rubygame::SFont, which will be removed
    in Rubygame 3.0.
Commits on Feb 12, 2011
  1. @jacius
  2. @jacius

    Fixed some issues with the old Rect class.

    jacius authored
    Rect#size would return a Rect with only 2 elements, which would break
    Rect#to_s, Rect#inspect, and most methods that received the malformed
    Rect (e.g. Surface#blit).
Commits on Feb 11, 2011
  1. @jacius
  2. @jacius
  3. @jacius

    Added Surface#to_opengl method.

    jacius authored
    Returns a hash with pixel data and format information that
    you can use to create an OpenGL texture from this Surface.
Commits on Feb 9, 2011
  1. @jacius
  2. @jacius
  3. @jacius

    Surface.new raises TypeError on bad size or depth.

    jacius authored
    (Instead of ArgumentError.)
  4. @jacius
  5. @jacius
Commits on Feb 8, 2011
  1. @jacius

    Revamped Rubygame deprecation warnings.

    jacius authored
    Its behavior is influenced by the value of ENV["RUBYGAME_DEPRECATED"]:
    
    * (default): Print a warning with Kernel.warn the first time
                 each deprecated feature is used. Note that Kernel.warn
                 is silent unless warnings are enabled (e.g. -W flag).
    
    * "warn":    Print a warning on STDERR the first time each deprecated
                 feature is used.
    
    * "warn!":   Print a warning on STDERR every time a deprecated
                 feature is used.
    
    * "error":   Raise Rubygame::DeprecationError the first time each
                 deprecated feature is used.
    
    * "error!":  Raise Rubygame::DeprecationError every time a
                 deprecated feature is used.
    
    * "quiet":   Never warn when any deprecated feature is used.
  2. @jacius
  3. @jacius

    Revamped Surface#colorkey and #colorkey=.

    jacius authored
    * Surface#colorkey now sets the colorkey when given an arg.
    * The 'flags' arg to Surface#colorkey= is now DEPRECATED.
    * Surface#set_colorkey is now DEPRECATED.
  4. @jacius
  5. @jacius

    Typo in Surface#opacity docs.

    jacius authored
  6. @jacius
  7. @jacius
  8. @jacius
  9. @jacius
Commits on Feb 7, 2011
  1. @jacius
  2. @jacius
Something went wrong with that request. Please try again.