diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-14 16:54:31 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-14 16:54:31 +0200 |
commit | 88a7dd8e2e7793d86d2587547a6fa450fbf9acaa (patch) | |
tree | 2762ecf6944d1214bc48cccf83acf204e20491c8 /cloud.lua | |
parent | fa612a03410f36ac6351e40ac4d166ad731cc6b8 (diff) | |
download | roflnauts-88a7dd8e2e7793d86d2587547a6fa450fbf9acaa.zip roflnauts-88a7dd8e2e7793d86d2587547a6fa450fbf9acaa.tar.gz roflnauts-88a7dd8e2e7793d86d2587547a6fa450fbf9acaa.tar.bz2 |
Marked Issue #8
Diffstat (limited to 'cloud.lua')
-rw-r--r-- | cloud.lua | 21 |
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 |