From: Javier 12 Date: 2010-04-02T06:03:14+09:00 Subject: ruby-sdl problem Hi, I've been reading this introduction to rubysdl (http://www.oreillynet.com/pub/a/ruby/2007/12/04/creating-games-in-ruby.html) and wanted to try it. My problem is the following: irb(main):001:0> require "rubygems" => true irb(main):002:0> require "sdl" => true irb(main):004:0> SDL::init(SDL::INIT_VIDEO) => nil irb(main):005:0> screen = SDL::Screen.open(640,480,24,SDL::SWSURFACE) => # irb(main):006:0> image = SDL::Surface.load("humans.png") NoMethodError: private method `load' called for SDL::Surface:Class from (irb):5 How do I load an image? Documentation extract: SDL::Surface.load(filename) Load image into an surface and returns surface object. If image format supports transparent color, colorkey is set into new surfafe. Supoorted formats are BMP, PNM (PPM/PGM/PBM), XPM, XCF, PCX, GIF, JPEG, TIFF, TGA, PNG and LBM. Raises SDL::Error on failure You need SDL_image to use this method. ******************************* gem list --local rubysdl *** LOCAL GEMS *** rubysdl (2.1.1) -- Posted via http://www.ruby-forum.com/.