We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5746574 commit 74b8859Copy full SHA for 74b8859
example/src/things/cloud.rb
@@ -4,7 +4,7 @@ class Cloud < Yeah::Thing #
4
#class Cloud < Thing
5
self.look = CloudLook #
6
7
- def act(input, space)
8
- self.x -= 1
+ def act(input, space, elapsed)
+ self.x -= 10 * elapsed
9
end
10
example/src/things/duck.rb
@@ -5,8 +5,7 @@ class Duck < Yeah::Thing #
#class Duck < Thing
self.look = DuckLook #
- self.x += 3
- puts "Quack" if rand > 0.5
+ self.x += 30 * elapsed
11
12
0 commit comments