if object == ship then
# The ship is invincible
# TODO health and losing
+ ship.hit
else
object.destroy
end
world.objects.add bullet
world.bullets.add bullet
end
+
+ # Something hits the ship
+ fun hit do end
end
# Asteroid, the main obstacle in this game