2014-10-20 19:20:58 +00:00
|
|
|
Class = require 'hump.class'
|
|
|
|
require 'entities/rectangle'
|
|
|
|
|
|
|
|
Ground = Class{
|
|
|
|
__includes = Rectangle,
|
|
|
|
|
|
|
|
init = function(self, level)
|
|
|
|
local groundImg = love.graphics.newImage('resources/graphics/ground.png')
|
|
|
|
Rectangle.init(self,
|
|
|
|
(love.window.getWidth() - 1600) / 2, love.window.getHeight(),
|
|
|
|
level, "static",
|
|
|
|
0, 1600, 20, 0, groundImg)
|
2014-10-20 19:55:32 +00:00
|
|
|
self.fixture:setRestitution(0)
|
|
|
|
self.fixture:setFriction(0.5)
|
2014-10-20 19:20:58 +00:00
|
|
|
end;
|
|
|
|
}
|