summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-24 02:25:48 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-24 02:42:09 -0300
commit61803e6ea2e0ff2e19f2e74cc51dac521c214277 (patch)
tree06d31297566697398aac52b35d4d38183ee81b51 /src/gnu_and_bola_-_the_libre_beat_em_up_game
parentec2c885fe7eae2408c63169b97894927a67014c4 (diff)
Add draw.bola table from love.graphics.draw()
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua
index 393e447..0417221 100644
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua
@@ -54,15 +54,18 @@ function love.draw()
love.graphics.scale(windowProfile.scale.x, windowProfile.scale.y)
love.graphics.print('FPS: ' .. love.timer.getFPS(), 0, 0)
- love.graphics.draw(
- metaSprites.bola.image,
- quad.bola,
- character.bola.position.x,
- character.bola.position.y,
- character.bola.orientation,
- character.bola.scale.x,
- character.bola.scale.y,
- character.bola.origin.x,
- transform.bola.origin.y
- )
+
+ draw = {
+ bola = love.graphics.draw(
+ metaSprites.bola.image,
+ quad.bola,
+ character.bola.position.x,
+ character.bola.position.y,
+ character.bola.orientation,
+ character.bola.scale.x,
+ character.bola.scale.y,
+ character.bola.origin.x,
+ transform.bola.origin.y
+ )
+ }
end