level: added a couple rectangles

This commit is contained in:
Erkki Seppälä 2014-10-18 15:14:51 +03:00
parent 702f27dadc
commit 40e42854ec

View file

@ -1,4 +1,5 @@
Class = require 'hump.class'
require 'entities/rectangle'
require 'settings'
-- A level manages the level datastructure containing static blocks and level
@ -15,6 +16,9 @@ Level = Class{
self.backgroundColor = {135, 206, 250, 255}
self.world = love.physics.newWorld(GRAVITY_X, GRAVITY_Y, true)
Rectangle(100, 100, self, "dynamic", 0.1, 50, 50, 1, love.graphics.newImage("resources/graphics/box-50x50.png"))
Rectangle(70, 250, self, "static", 0.1, 50, 50, 1, love.graphics.newImage("resources/graphics/box-50x50.png"))
end;
delete = function(self)