Skip to content

Commit 5cfbb59

Browse files
author
Artur Ostręga
committed
Update example
1 parent ce01058 commit 5cfbb59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/src/things/duck.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def act(elapsed)
1818
puts "Quack!"
1919
space.color = rand, rand, rand
2020
end
21+
22+
if mouse.released? :left
23+
puts "*flap flap*"
24+
self.position = mouse.position
25+
end
2126
end
2227

2328
def speed

0 commit comments

Comments
 (0)