Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/jacius/rubygame/w/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/jacius/rubygame/w/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722
Image viewer demo - Rubygame

Image viewer demo


Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/jacius/rubygame/w/includes/MagicWord.php on line 722
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