examples/conway_sphero.rb in artoo-0.3.0 vs examples/conway_sphero.rb in artoo-0.4.0
- old
+ new
@@ -27,13 +27,13 @@
sphero.set_color :green
end
def death
puts "Death."
+ pause_work
@alive = false
sphero.set_color :red
sphero.stop
- terminate
end
def birthday
@age += 1
contacts = sphero.collisions.size