summaryrefslogtreecommitdiffhomepage
path: root/cloud.lua
diff options
context:
space:
mode:
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