Changeset 236 for trunk/samples

Show
Ignore:
Timestamp:
10/14/2007 23:10:52 (11 months ago)
Author:
why
Message:

* shoes/canvas.c: pass motion and click events to images.
* shoes/ruby.c: figure out coordinates of images for the above events.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/bounce.rb

    r186 r236  
    77 
    88  nostroke 
    9   @icon = image "static/shoes-icon.png", :left => 100, :top => 100 
     9  @icon = image "static/shoes-icon.png", :left => 100, :top => 100 do 
     10    alert "You're soooo quick." 
     11  end 
    1012 
    1113  x, y = self.width / 2, self.height / 2