Image viewer demo

From Rubygame

Jump to: navigation, search
(Copied from samples/image_viewer.rb)
(Small changes to sync with the final version of the demo in 2.6)
 
Line 37: Line 37:
# Decide which image file to load.
# Decide which image file to load.
this_dir = File.dirname( __FILE__ )
this_dir = File.dirname( __FILE__ )
-
file = File.expand_path( "ruby.png", this_dir ) # default file
+
file = File.expand_path( "rubygame.png", this_dir ) # default file
if ARGV[0]
if ARGV[0]
   file = File.expand_path( ARGV[0], this_dir )
   file = File.expand_path( ARGV[0], this_dir )
else
else
-
   puts "You can pass an image to this file to load it."
+
   puts "You can pass an image to this script to load it."
end
end

Latest revision as of 22:43, 24 October 2009

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox