summaryrefslogtreecommitdiffhomepage
path: root/cloud.lua
blob: d825edaf7ea9b8178fdec523109d48a53ceb31b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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