Starting simple

From Rubygame

Jump to: navigation, search
m (Reverted edits by Irilorilu (Talk) to last version by Neil)
 
Line 27: Line 27:
      
      
# Use new style events so that this software will work with Rubygame 3.0
# Use new style events so that this software will work with Rubygame 3.0
-
@event_queue.enable_new_style_events  
+
@event_queue.enable_new_style_events
      
      
# Wait for an event
# Wait for an event
Line 33: Line 33:
      
      
   # Show the details of the event
   # Show the details of the event
-
   puts  event.inspect
+
   p event
      
      
   # Stop this program if the user closes the window
   # Stop this program if the user closes the window

Latest revision as of 04:01, 9 February 2011

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox