summaryrefslogtreecommitdiffhomepage
path: root/cloud.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-14 16:54:53 +0200
committerAki <nthirtyone@gmail.com>2016-05-14 16:54:53 +0200
commit20ed15b3a008fcc4f90c2bd32cc2e36e49072554 (patch)
tree2762ecf6944d1214bc48cccf83acf204e20491c8 /cloud.lua
parent3308a3d15e9b06529d5093d8551d4868e7fc7eff (diff)
downloadroflnauts-20ed15b3a008fcc4f90c2bd32cc2e36e49072554.zip
roflnauts-20ed15b3a008fcc4f90c2bd32cc2e36e49072554.tar.gz
roflnauts-20ed15b3a008fcc4f90c2bd32cc2e36e49072554.tar.bz2
Revert "Revert "Marked Issue #8""
This reverts commit 3308a3d15e9b06529d5093d8551d4868e7fc7eff.
Diffstat (limited to 'cloud.lua')
-rw-r--r--cloud.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/cloud.lua b/cloud.lua
new file mode 100644
index 0000000..d825eda
--- /dev/null
+++ b/cloud.lua
@@ -0,0 +1,21 @@
+-- `Cloud`
+-- That white thing moving in the background.
+
+-- WHOLE CODE HAS FLAG OF "need a cleanup"
+
+-- Metatable of `Cloud`
+Cloud = {
+ x = 0,
+ y = 0,
+ sprite = love.graphics.newImage("assets/clouds.png")
+}
+
+-- Constructor of `Cloud`
+function Cloud:new()
+ -- Meta
+ local o = {}
+ setmetatable(o, self)
+ self.__index = self
+ -- Misc
+ return o
+end \ No newline at end of file