-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfloor.lua
36 lines (30 loc) · 1.05 KB
/
floor.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--[[
floor.lua
LoVE platformer
https://github.com/panzer-planet/love-platformer
Copyright 2013, Werner Roets
Licensed under GNU General Public License v3
Redistributions of files must retain the above copyright notice.
author: Werner Roets (cobolt.exe@gmail.com)
copyright: Copyright 2012, Werner Roets and the cobolt-gallery contributors
url: https://github.com/panzer-planet/love-platformer
version: 0.1alpha
license: GNU GPL v3 (http://www.gnu.org/copyleft/gpl.html)
]]
floor = {}
function floor.load(o)
floor.top = o
end
function floor.draw()
love.graphics.setColor(200,200,200)
love.graphics.rectangle(
"fill", --DrawMode mode - How to draw the rectangle.
0, --number x - The position of top-left corner along x-axis.
floor.top, --number y - The position of top-left corner along y-axis.
love.graphics.getWidth(), --number width - Width of the rectangle
love.graphics.getHeight() - floor.top --number height - Height of the rectangle
)
--love.graphics.setColor(bgcolor.r,bgcolor.g,bgcolor.b)
end
function floor.update(dt)
end