summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-12-03 17:27:36 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-12-03 17:27:36 -0300
commit1a9e17acb3a65a98305d19363f6b4e7185356c74 (patch)
tree99f452f72c7ca1f585e383063466513bce6e41fc /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua
parentcc5000abb51b03dbba8ac05ece193d5f197fcf71 (diff)
Keep the code more KISS - part 1
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua
new file mode 100644
index 0000000..edaad4c
--- /dev/null
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/draw.lua
@@ -0,0 +1,20 @@
+local drawModule = {}
+
+function drawModule.motion()
+ game = {}
+ game.draw = function(metaSprite, quad, character)
+ love.graphics.draw(
+ metaSprites.image,
+ quad,
+ character.position.x,
+ character.position.y,
+ character.orientation,
+ character.scale.x,
+ character.scale.y,
+ character.origin.x,
+ character.origin.y
+ )
+ end
+end
+
+return drawModule