level: added a couple rectangles
This commit is contained in:
parent
702f27dadc
commit
40e42854ec
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue