fysplane/entities/ground.lua

17 lines
455 B
Lua
Raw Normal View History

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)
end;
}