diff options
| author | jussi | 2022-03-10 17:53:43 +0200 |
|---|---|---|
| committer | jussi | 2022-03-10 17:53:43 +0200 |
| commit | 26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a (patch) | |
| tree | b6fc68889bf5df58ba3455e6d64da6b2f78d38de /examples/bunnymark | |
| parent | debe4baa8c208458f847dd4c89c17f7cc39be559 (diff) | |
| download | reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.tar.gz reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.tar.bz2 reilua-enhanced-26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a.zip | |
Measure text.
Diffstat (limited to 'examples/bunnymark')
| -rw-r--r-- | examples/bunnymark/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/bunnymark/main.lua b/examples/bunnymark/main.lua index 50b8f11..8672887 100644 --- a/examples/bunnymark/main.lua +++ b/examples/bunnymark/main.lua @@ -10,7 +10,7 @@ Bunny.__index = Bunny function Bunny:new( pos, spd, col ) local bunny = {} - setmetatable( bunny,Bunny ) + setmetatable( bunny, Bunny ) bunny.position = pos bunny.speed = spd bunny.color = col @@ -24,7 +24,7 @@ local texSize = { 0, 0 } local texBunny = -1 local bunnies = {} -function Bunny:update( texture ) +function Bunny:update() self.position[1] = self.position[1] + self.speed[1] self.position[2] = self.position[2] + self.speed[2] @@ -65,7 +65,7 @@ function process( delta ) end -- Update bunnies for i = 1, #bunnies do - bunnies[i]:update( texBunny ) + bunnies[i]:update() end end |
