Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shoes.app :title => "Residuos" do
- @residuos = image "focos_ahorradores.jpg",
- :top => "50",
- :left => "50",
- :width => 50,
- :height => 50
- @basuras = image "funda_roja.jpg",
- :top => "100",
- :left => "100",
- :width => 50,
- :height => 50
- @residuos.click do
- @presionado=true
- @basuras.click do
- @presionado=false
- @residuos.clear
- end
- end
- motion do |left, top|
- @residuos.move(left, top) if @presionado
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement